diff options
| author | ruki <waruqi@gmail.com> | 2019-08-22 22:34:14 +0800 |
|---|---|---|
| committer | ruki <waruqi@gmail.com> | 2019-08-22 09:25:25 +0800 |
| commit | 5cfe53af96cca38e58b4f8492eb389b36adce6c9 (patch) | |
| tree | 403c830fd40976d08714047534a95480231acd27 | |
| parent | 9d3d8d4307e0112b27682736d8d0479a4bd4a3d0 (diff) | |
| download | xmake-docs-5cfe53af96cca38e58b4f8492eb389b36adce6c9.tar.gz xmake-docs-5cfe53af96cca38e58b4f8492eb389b36adce6c9.zip | |
update plugin docs
| -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,编辑器,静态分析工具进行交互。 |
