diff --git a/guide/project_examples.md b/guide/project_examples.md index 5c64892a..2eeaae85 100644 --- a/guide/project_examples.md +++ b/guide/project_examples.md @@ -1811,6 +1811,13 @@ target("hello") add_files("src/main.c") ``` +## Lua module + +Refer + +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). + ## 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. diff --git a/zh-cn/guide/project_examples.md b/zh-cn/guide/project_examples.md index 0c5d184c..462432e1 100644 --- a/zh-cn/guide/project_examples.md +++ b/zh-cn/guide/project_examples.md @@ -1811,6 +1811,14 @@ target("hello") add_files("src/main.c") ``` +## Lua 模块 + +参考 +如果你的 lua 模块含有 C 代码,你可以使用 [LuaNativeObjects](https://github.com/Neopallium/LuaNativeObjects) 去从 lua 代码生成 C 代码。 +参考[例子](https://github.com/Freed-Wu/rime.nvim/blob/main/xmake.lua)。 + +## Lua + ## Linux 内核驱动模块 v2.6.2 版本,xmake 完整支持了 Linux 内核驱动模块的构建,这也许首个也是唯一一个支持编译 Linux 内核驱动的第三方构建工具了。