summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2024-12-19 10:27:28 +0800
committerGitHub <[email protected]>2024-12-19 10:27:28 +0800
commit323eb11b3977f8d41848c2fea566738c9a91bdec (patch)
tree5a59aabee229bc0872b5e4073f0cbb277a544d96
parentccc7bfee44c60e90d4ac1f5468b22a7a1ec6d51e (diff)
parentc7b406d725ff69c22c9f50f18f3faf60152e9e61 (diff)
Merge pull request #5985 from Freed-Wu/dev
Fix typos about lua.native-objects
-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