diff options
Diffstat (limited to 'landing')
| -rw-r--r-- | landing/index.cn.md | 33 | ||||
| -rw-r--r-- | landing/index.md | 33 |
2 files changed, 58 insertions, 8 deletions
diff --git a/landing/index.cn.md b/landing/index.cn.md index c8b50250..ce8fc0aa 100644 --- a/landing/index.cn.md +++ b/landing/index.cn.md @@ -81,10 +81,35 @@ $ xmake run -d console ## 内置插件 -* 宏记录脚本和回放插件 -* 加载自定义lua脚本插件 -* 生成IDE工程文件插件(makefile, vs2002 - vs2017, ...) -* 生成doxygen文档插件 +#### 宏记录脚本和回放插件 + +```bash +$ xmake m -b # 开始记录 +$ xmake f -p iphoneos -m debug +$ xmake +$ xmake m -e # 结束记录 +$ xmake m . # 回放命令 +``` + +#### 加载自定义lua脚本插件 + +```bash +$ xmake l ./test.lua +$ xmake l -c "print('hello xmake!')" +$ xmake l lib.detect.find_tool gcc +``` + +#### 生成IDE工程文件插件(makefile, vs2002 - vs2017, ...) + +```bash +$ xmake project -k vs2017 -m "debug,release" +``` + +#### 生成doxygen文档插件 + +```bash +$ xmake doxygen [srcdir] +``` ## 更多插件 diff --git a/landing/index.md b/landing/index.md index cdb1001e..5ede48ca 100644 --- a/landing/index.md +++ b/landing/index.md @@ -81,10 +81,35 @@ $ xmake run -d console ## Builtin Plugins -* Macros script plugin -* Run the custom lua script plugin -* Generate IDE project file plugin(makefile, vs2002 - vs2017 .. ) -* Generate doxygen document plugin +#### Macros script plugin + +```bash +$ xmake m -b # start to record +$ xmake f -p iphoneos -m debug +$ xmake +$ xmake m -e # stop to record +$ xmake m . # palyback commands +``` + +#### Run the custom lua script plugin + +```bash +$ xmake l ./test.lua +$ xmake l -c "print('hello xmake!')" +$ xmake l lib.detect.find_tool gcc +``` + +#### Generate IDE project file plugin(makefile, vs2002 - vs2017 .. ) + +```bash +$ xmake project -k vs2017 -m "debug,release" +``` + +#### Generate doxygen document plugin + +```bash +$ xmake doxygen [srcdir] +``` ## More Plugins |
