diff options
| -rw-r--r-- | plugin/builtin_plugins.md | 12 | ||||
| -rw-r--r-- | zh-cn/plugin/builtin_plugins.md | 12 |
2 files changed, 24 insertions, 0 deletions
diff --git a/plugin/builtin_plugins.md b/plugin/builtin_plugins.md index dbf39c5e..c0eb430b 100644 --- a/plugin/builtin_plugins.md +++ b/plugin/builtin_plugins.md @@ -324,6 +324,18 @@ If you want to cancel multiline input, please input character `q`, for example: $ xmake project -k makefile ``` +### Generate CMakelists.txt + +```console +$ xmake project -k cmakelists +``` + +### Generate compiler_flags + +```console +$ xmake project -k compiler_flags +``` + ### Generate compiler_commands We can export the compilation commands info of all source files and it is JSON compilation database format. diff --git a/zh-cn/plugin/builtin_plugins.md b/zh-cn/plugin/builtin_plugins.md index 0fce2448..ea81ec29 100644 --- a/zh-cn/plugin/builtin_plugins.md +++ b/zh-cn/plugin/builtin_plugins.md @@ -354,6 +354,18 @@ XMake跟`cmake`, `premake`等其他一些构建工具的区别在于: $ xmake project -k makefile ``` +### 生成CMakelists.txt + +```console +$ xmake project -k cmakelists +``` + +### 生成compiler_flags + +```console +$ xmake project -k compiler_flags +``` + ### 生成compiler_commands 导出每个源文件的编译信息,生成基于clang的编译数据库文件,json格式,可用于跟ide,编辑器,静态分析工具进行交互。 |
