diff options
Diffstat (limited to 'xmake/rules/cuda/xmake.lua')
| -rw-r--r-- | xmake/rules/cuda/xmake.lua | 31 |
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) - |
