Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add document for Nodejs module #195

Merged
merged 1 commit into from
Dec 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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