summaryrefslogtreecommitdiff
path: root/xmake/rules/module/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2024-04-02 00:56:45 +0800
committerruki <[email protected]>2024-04-02 00:56:45 +0800
commitf5d208c3aba4759bf2246d91a26d19d00603d2d1 (patch)
tree4a22c64c3b23015a7576d0d88bd28826572d68ad /xmake/rules/module/xmake.lua
parentcc60126eb206617dc69e6aa96c21ad13c1731f8c (diff)
add module.binary/shared rules
Diffstat (limited to 'xmake/rules/module/xmake.lua')
-rw-r--r--xmake/rules/module/xmake.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/xmake/rules/module/xmake.lua b/xmake/rules/module/xmake.lua
index a5c3a1d3b..a3bc9b54f 100644
--- a/xmake/rules/module/xmake.lua
+++ b/xmake/rules/module/xmake.lua
@@ -20,11 +20,15 @@
rule("module.binary")
on_load(function (target)
+ import("core.project.config")
target:set("kind", "binary")
+ target:set("targetdir", config.buildir())
end)
rule("module.shared")
on_load(function (target)
+ import("core.project.config")
target:set("kind", "shared")
+ target:set("targetdir", config.buildir())
end)