Skip to content

Commit 939affe

Browse files
authored
Add document for Nodejs module (#195)
1 parent 705d08b commit 939affe

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

guide/project_examples.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1818,6 +1818,10 @@ Refer <https://github.com/xmake-io/luarocks-build-xmake>
18181818
If your lua module contains C code, you can use [LuaNativeObjects](https://github.com/Neopallium/LuaNativeObjects) to generate C code from lua code.
18191819
Refer [example](https://github.com/Freed-Wu/rime.nvim/blob/main/xmake.lua).
18201820
1821+
## Nodejs module
1822+
1823+
Refer [example](https://github.com/tonyfettes/coc-rime/blob/master/xmake.lua).
1824+
18211825
## Linux kernel driver module
18221826
18231827
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.

zh-cn/guide/project_examples.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1817,7 +1817,9 @@ target("hello")
18171817
如果你的 lua 模块含有 C 代码,你可以使用 [LuaNativeObjects](https://github.com/Neopallium/LuaNativeObjects) 去从 lua 代码生成 C 代码。
18181818
参考[例子](https://github.com/Freed-Wu/rime.nvim/blob/main/xmake.lua)。
18191819
1820-
## Lua
1820+
## Nodejs 模块
1821+
1822+
参考[例子](https://github.com/tonyfettes/coc-rime/blob/master/xmake.lua)。
18211823
18221824
## Linux 内核驱动模块
18231825

0 commit comments

Comments
 (0)