Skip to content

Commit

Permalink
Merge pull request #5985 from Freed-Wu/dev
Browse files Browse the repository at this point in the history
Fix typos about lua.native-objects
  • Loading branch information
waruqi authored Dec 19, 2024
2 parents ccc7bfe + c7b406d commit 323eb11
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 323eb11

Please sign in to comment.