Skip to content

Commit

Permalink
Update usage of rule lua.native-objects, nodejs.module
Browse files Browse the repository at this point in the history
  • Loading branch information
Freed-Wu committed Jan 12, 2025
1 parent 5bc5ce5 commit 61df613
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion xmake/rules/lua/native-objects/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
--
-- 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")
Expand Down
4 changes: 2 additions & 2 deletions xmake/rules/nodejs/module/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@

-- usage:
--
-- npm add -D node-addon-api node-api-headers
-- add_requires("node-addon-api")
--
-- target("foo")
-- do
-- set_languages("cxx17")
-- add_rules("nodejs.module")
-- add_includedirs("node_modules/node-addon-api", "node_modules/node-api-headers/include")
-- add_packages("node-addon-api")
-- add_files("*.cc")
-- end
rule("nodejs.module")
Expand Down

0 comments on commit 61df613

Please sign in to comment.