summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/rules/lua/native-objects/xmake.lua (renamed from xmake/rules/lua/native-object/xmake.lua)8
1 files changed, 4 insertions, 4 deletions
diff --git a/xmake/rules/lua/native-object/xmake.lua b/xmake/rules/lua/native-objects/xmake.lua
index 2aa9aa0fe..6ca3cf1b8 100644
--- a/xmake/rules/lua/native-object/xmake.lua
+++ b/xmake/rules/lua/native-objects/xmake.lua
@@ -22,14 +22,14 @@
--
-- target("foo")
-- do
--- add_rules("luarocks.module", "lua-native-object", "c")
+-- add_rules("luarocks.module", "lua-native-objects", "c")
-- add_files("*.nobj.lua")
-- end
-rule("lua.native-object")
+rule("lua.native-objects")
set_extensions(".nobj.lua")
before_buildcmd_file(function(target, batchcmds, sourcefile, opt)
- -- get c source file for lua-native-object
- local dirname = path.join(target:autogendir(), "rules", "lua-native-object")
+ -- get c source file for 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