Skip to content

Commit

Permalink
Add document for Nodejs module (#195)
Browse files Browse the repository at this point in the history
  • Loading branch information
Freed-Wu authored Dec 30, 2024
1 parent 705d08b commit 939affe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions guide/project_examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -1818,6 +1818,10 @@ Refer <https://github.com/xmake-io/luarocks-build-xmake>
If your lua module contains C code, you can use [LuaNativeObjects](https://github.com/Neopallium/LuaNativeObjects) to generate C code from lua code.
Refer [example](https://github.com/Freed-Wu/rime.nvim/blob/main/xmake.lua).
## Nodejs module
Refer [example](https://github.com/tonyfettes/coc-rime/blob/master/xmake.lua).
## Linux kernel driver module
In version v2.6.2, xmake fully supports the construction of Linux kernel driver modules. This may be the first and only third-party build tool that supports compiling Linux kernel drivers.
Expand Down
4 changes: 3 additions & 1 deletion zh-cn/guide/project_examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -1817,7 +1817,9 @@ target("hello")
如果你的 lua 模块含有 C 代码,你可以使用 [LuaNativeObjects](https://github.com/Neopallium/LuaNativeObjects) 去从 lua 代码生成 C 代码。
参考[例子](https://github.com/Freed-Wu/rime.nvim/blob/main/xmake.lua)。
## Lua
## Nodejs 模块
参考[例子](https://github.com/tonyfettes/coc-rime/blob/master/xmake.lua)。
## Linux 内核驱动模块
Expand Down

0 comments on commit 939affe

Please sign in to comment.