From 5cfe53af96cca38e58b4f8492eb389b36adce6c9 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 22 Aug 2019 22:34:14 +0800 Subject: update plugin docs --- plugin/builtin_plugins.md | 12 ++++++++++++ zh-cn/plugin/builtin_plugins.md | 12 ++++++++++++ 2 files changed, 24 insertions(+) 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,编辑器,静态分析工具进行交互。 -- cgit v1.2.3