diff options
| author | ruki <waruqi@gmail.com> | 2018-01-25 23:15:51 +0800 |
|---|---|---|
| committer | ruki <waruqi@gmail.com> | 2018-01-25 13:35:10 +0800 |
| commit | 6f24755452324086e5b6841357f0e1e40a490c30 (patch) | |
| tree | 32c9835c14bd71be082e940de70a531ee93f7d62 /landing.html | |
| parent | 7c4d4b782e964ff2faed61fc6653f15459009794 (diff) | |
| download | xmake-docs-6f24755452324086e5b6841357f0e1e40a490c30.tar.gz xmake-docs-6f24755452324086e5b6841357f0e1e40a490c30.zip | |
add plugin examples
Diffstat (limited to 'landing.html')
| -rw-r--r-- | landing.html | 35 |
1 files changed, 29 insertions, 6 deletions
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> |
