summaryrefslogtreecommitdiff
path: root/xmake/rules/lua/native-objects/xmake.lua
diff options
context:
space:
mode:
authorWu, Zhenyu <[email protected]>2025-01-12 14:24:07 +0800
committerWu, Zhenyu <[email protected]>2025-01-12 14:36:16 +0800
commitaf01d22ccda93ac33fde00115ba2282bb76f4fa0 (patch)
tree797592cca26785114fe2243654db02b3216100f6 /xmake/rules/lua/native-objects/xmake.lua
parent5bc5ce579fe5af900fc5dd653dfde7be486ea9a1 (diff)
Update usage of rule lua.native-objects, nodejs.module
Diffstat (limited to 'xmake/rules/lua/native-objects/xmake.lua')
-rw-r--r--xmake/rules/lua/native-objects/xmake.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/rules/lua/native-objects/xmake.lua b/xmake/rules/lua/native-objects/xmake.lua
index 7954310dd..74ce19b38 100644
--- a/xmake/rules/lua/native-objects/xmake.lua
+++ b/xmake/rules/lua/native-objects/xmake.lua
@@ -22,14 +22,14 @@
--
-- target("foo")
-- do
--- add_rules("luarocks.module", "lua-native-objects", "c")
+-- add_rules("lua.module", "lua.native-objects", "c")
-- add_files("*.nobj.lua")
-- end
rule("lua.native-objects")
set_extensions(".nobj.lua")
before_buildcmd_file(function(target, batchcmds, sourcefile, opt)
-- get c source file for lua.native-objects
- local dirname = path.join(target:autogendir(), "rules", "lua-native-objects")
+ local dirname = path.join(target:autogendir(), "rules", "lua", "native-objects")
local sourcefile_c = path.join(dirname, path.basename(sourcefile) .. ".c")
-- add objectfile