summaryrefslogtreecommitdiff
path: root/xmake/rules/cuda/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-06-10 22:32:56 +0800
committerruki <[email protected]>2019-06-10 09:17:36 +0800
commitc5fed632a287c2aedd335ba4e41f4347d2fe1956 (patch)
treeb3a703d66cb85f58353565345640b6eab35505a7 /xmake/rules/cuda/xmake.lua
parente368bcfdb1e8326579a2ffb56e57ec6b316a29f0 (diff)
add builtin rule for language
Diffstat (limited to 'xmake/rules/cuda/xmake.lua')
-rw-r--r--xmake/rules/cuda/xmake.lua31
1 files changed, 2 insertions, 29 deletions
diff --git a/xmake/rules/cuda/xmake.lua b/xmake/rules/cuda/xmake.lua
index 2f3564f63..0ec1ddaee 100644
--- a/xmake/rules/cuda/xmake.lua
+++ b/xmake/rules/cuda/xmake.lua
@@ -18,36 +18,9 @@
-- @file xmake.lua
--
--- define rule: cuda static library
-rule("cuda.static")
+-- define rule: cuda
+rule("cuda")
-- add rules
add_deps("cuda.device_link", "cuda.gencodes")
- -- we must set kind before target.on_load(), may we will use target in on_load()
- before_load(function (target)
- target:set("kind", "static")
- end)
-
--- define rule: cuda shared library
-rule("cuda.shared")
-
- -- add rules
- add_deps("cuda.device_link", "cuda.gencodes")
-
- -- we must set kind before target.on_load(), may we will use target in on_load()
- before_load(function (target)
- target:set("kind", "shared")
- end)
-
--- define rule: cuda console
-rule("cuda.console")
-
- -- add rules
- add_deps("cuda.device_link", "cuda.gencodes")
-
- -- we must set kind before target.on_load(), may we will use target in on_load()
- before_load(function (target)
- target:set("kind", "binary")
- end)
-