Browse Source

Add document for Nodejs module (#195)

wzy 1 year ago
parent
commit
939affe415
2 changed files with 7 additions and 1 deletions
  1. 4 0
      guide/project_examples.md
  2. 3 1
      zh-cn/guide/project_examples.md

+ 4 - 0
guide/project_examples.md

@@ -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.

+ 3 - 1
zh-cn/guide/project_examples.md

@@ -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 内核驱动模块