diff options
| -rw-r--r-- | cn/index.html | 45 | ||||
| -rw-r--r-- | landing.html | 35 | ||||
| -rw-r--r-- | landing/index.cn.md | 33 | ||||
| -rw-r--r-- | landing/index.md | 33 |
4 files changed, 121 insertions, 25 deletions
diff --git a/cn/index.html b/cn/index.html index de5dbc19..c39c18a6 100644 --- a/cn/index.html +++ b/cn/index.html @@ -133,14 +133,37 @@ <h2 id="section-8">内置插件</h2> -<ul> - <li>宏记录脚本和回放插件</li> - <li>加载自定义lua脚本插件</li> - <li>生成IDE工程文件插件(makefile, vs2002 - vs2017, …)</li> - <li>生成doxygen文档插件</li> -</ul> +<h4 id="section-9">宏记录脚本和回放插件</h4> + +<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>xmake m -b <span class="c"># 开始记录</span> +<span class="gp">$ </span>xmake f -p iphoneos -m debug +<span class="gp">$ </span>xmake +<span class="gp">$ </span>xmake m -e <span class="c"># 结束记录</span> +<span class="gp">$ </span>xmake m . <span class="c"># 回放命令</span> +</code></pre> +</div> + +<h4 id="lua">加载自定义lua脚本插件</h4> + +<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>xmake l ./test.lua +<span class="gp">$ </span>xmake l -c <span class="s2">"print('hello xmake!')"</span> +<span class="gp">$ </span>xmake l lib.detect.find_tool gcc +</code></pre> +</div> + +<h4 id="idemakefile-vs2002---vs2017-">生成IDE工程文件插件(makefile, vs2002 - vs2017, …)</h4> + +<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>xmake project -k vs2017 -m <span class="s2">"debug,release"</span> +</code></pre> +</div> + +<h4 id="doxygen">生成doxygen文档插件</h4> + +<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>xmake doxygen <span class="o">[</span>srcdir] +</code></pre> +</div> -<h2 id="section-9">更多插件</h2> +<h2 id="section-10">更多插件</h2> <p>请到插件仓库进行下载安装: <a href="https://github.com/tboox/xmake-plugins">xmake-plugins</a>.</p> @@ -168,7 +191,7 @@ <li><a href="https://github.com/luzhlon/xmake.vim">xmake.vim</a> (third-party, thanks <a href="https://github.com/luzhlon">@luzhlon</a>)</li> </ul> -<h2 id="section-10">更多例子</h2> +<h2 id="section-11">更多例子</h2> <p>Debug和Release模式:</p> @@ -212,7 +235,7 @@ </code></pre> </div> -<h2 id="section-11">项目例子</h2> +<h2 id="section-12">项目例子</h2> <p>一些使用xmake的项目:</p> @@ -223,11 +246,11 @@ <li><a href="https://github.com/vm86/xmake/wiki/%E4%BD%BF%E7%94%A8xmake%E7%9A%84%E5%BC%80%E6%BA%90%E5%BA%93">更多</a></li> </ul> -<h2 id="section-12">演示视频</h2> +<h2 id="section-13">演示视频</h2> <p><a href="https://asciinema.org/a/133693"><img src="https://asciinema.org/a/133693.png" alt="asciicast" /></a></p> -<h2 id="section-13">联系方式</h2> +<h2 id="section-14">联系方式</h2> <ul> <li>邮箱:<a href="mailto:waruqi@gmail.com">waruqi@gmail.com</a></li> diff --git a/landing.html b/landing.html index 5d00084b..281f314b 100644 --- a/landing.html +++ b/landing.html @@ -133,12 +133,35 @@ <h2 id="builtin-plugins">Builtin Plugins</h2> -<ul> - <li>Macros script plugin</li> - <li>Run the custom lua script plugin</li> - <li>Generate IDE project file plugin(makefile, vs2002 - vs2017 .. )</li> - <li>Generate doxygen document plugin</li> -</ul> +<h4 id="macros-script-plugin">Macros script plugin</h4> + +<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>xmake m -b <span class="c"># start to record</span> +<span class="gp">$ </span>xmake f -p iphoneos -m debug +<span class="gp">$ </span>xmake +<span class="gp">$ </span>xmake m -e <span class="c"># stop to record</span> +<span class="gp">$ </span>xmake m . <span class="c"># palyback commands</span> +</code></pre> +</div> + +<h4 id="run-the-custom-lua-script-plugin">Run the custom lua script plugin</h4> + +<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>xmake l ./test.lua +<span class="gp">$ </span>xmake l -c <span class="s2">"print('hello xmake!')"</span> +<span class="gp">$ </span>xmake l lib.detect.find_tool gcc +</code></pre> +</div> + +<h4 id="generate-ide-project-file-pluginmakefile-vs2002---vs2017--">Generate IDE project file plugin(makefile, vs2002 - vs2017 .. )</h4> + +<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>xmake project -k vs2017 -m <span class="s2">"debug,release"</span> +</code></pre> +</div> + +<h4 id="generate-doxygen-document-plugin">Generate doxygen document plugin</h4> + +<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>xmake doxygen <span class="o">[</span>srcdir] +</code></pre> +</div> <h2 id="more-plugins">More Plugins</h2> 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 |
