diff options
| author | ruki <waruqi@gmail.com> | 2018-10-12 22:50:12 +0800 |
|---|---|---|
| committer | ruki <waruqi@gmail.com> | 2018-10-12 11:01:17 +0800 |
| commit | 3bfb2da43ac4b89bc0adf96990c86d45aa110532 (patch) | |
| tree | 82e590a36d037e91929ba339fff0a5be87860b19 | |
| parent | 7d0111e60889fcebd22b789622e1afc68b28592f (diff) | |
| download | xmake-docs-3bfb2da43ac4b89bc0adf96990c86d45aa110532.tar.gz xmake-docs-3bfb2da43ac4b89bc0adf96990c86d45aa110532.zip | |
update index
| -rw-r--r-- | cn/index.html | 7 | ||||
| -rw-r--r-- | landing.html | 7 | ||||
| -rw-r--r-- | landing/index.cn.md | 7 | ||||
| -rw-r--r-- | landing/index.md | 7 |
4 files changed, 28 insertions, 0 deletions
diff --git a/cn/index.html b/cn/index.html index 5e4adcd4..bcd06854 100644 --- a/cn/index.html +++ b/cn/index.html @@ -77,6 +77,8 @@ <p><img src="/assets/img/index/add_require.png" width="70%" /></p> +<p>官方的xmake包管理仓库: <a href="https://github.com/tboox/xmake-repo">xmake-repo</a></p> + <h2 id="section-3">构建工程</h2> <div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>xmake @@ -157,6 +159,8 @@ <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 f -p android --ndk<span class="o">=</span>~/files/android-ndk-r16b <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> @@ -220,6 +224,9 @@ <span class="n">target</span><span class="p">(</span><span class="s2">"console"</span><span class="p">)</span> <span class="n">set_kind</span><span class="p">(</span><span class="s2">"binary"</span><span class="p">)</span> <span class="n">add_files</span><span class="p">(</span><span class="s2">"src/*.c"</span><span class="p">)</span> + <span class="k">if</span> <span class="n">is_plat</span><span class="p">(</span><span class="s2">"windows"</span><span class="p">,</span> <span class="s2">"mingw"</span><span class="p">)</span> <span class="k">then</span> + <span class="n">add_defines</span><span class="p">(</span><span class="s2">"XXX"</span><span class="p">)</span> + <span class="k">end</span> </code></pre> </div> diff --git a/landing.html b/landing.html index a10d2405..7b235f97 100644 --- a/landing.html +++ b/landing.html @@ -77,6 +77,8 @@ <p><img src="/assets/img/index/add_require.png" width="70%" /></p> +<p>An official xmake package repository: <a href="https://github.com/tboox/xmake-repo">xmake-repo</a></p> + <h2 id="build-project">Build project</h2> <div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>xmake @@ -157,6 +159,8 @@ <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 f -p android --ndk<span class="o">=</span>~/files/android-ndk-r16b <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"># playback commands</span> @@ -220,6 +224,9 @@ <span class="n">target</span><span class="p">(</span><span class="s2">"console"</span><span class="p">)</span> <span class="n">set_kind</span><span class="p">(</span><span class="s2">"binary"</span><span class="p">)</span> <span class="n">add_files</span><span class="p">(</span><span class="s2">"src/*.c"</span><span class="p">)</span> + <span class="k">if</span> <span class="n">is_plat</span><span class="p">(</span><span class="s2">"windows"</span><span class="p">,</span> <span class="s2">"mingw"</span><span class="p">)</span> <span class="k">then</span> + <span class="n">add_defines</span><span class="p">(</span><span class="s2">"XXX"</span><span class="p">)</span> + <span class="k">end</span> </code></pre> </div> diff --git a/landing/index.cn.md b/landing/index.cn.md index 34fa6bbf..9daa56e8 100644 --- a/landing/index.cn.md +++ b/landing/index.cn.md @@ -31,6 +31,8 @@ Invoke-Expression (Invoke-Webrequest 'https://raw.githubusercontent.com/tboox/xm <img src="/assets/img/index/add_require.png" width="70%" /> +官方的xmake包管理仓库: [xmake-repo](https://github.com/tboox/xmake-repo) + ## 构建工程 ```bash @@ -106,6 +108,8 @@ $ xmake f --menu ```bash $ xmake m -b # 开始记录 $ xmake f -p iphoneos -m debug +$ xmake +$ xmake f -p android --ndk=~/files/android-ndk-r16b $ xmake $ xmake m -e # 结束记录 $ xmake m . # 回放命令 @@ -161,6 +165,9 @@ add_rules("mode.debug", "mode.release") target("console") set_kind("binary") add_files("src/*.c") + if is_plat("windows", "mingw") then + add_defines("XXX") + end ``` 自定义脚本: diff --git a/landing/index.md b/landing/index.md index 1a84c62f..453ae5a5 100644 --- a/landing/index.md +++ b/landing/index.md @@ -31,6 +31,8 @@ Invoke-Expression (Invoke-Webrequest 'https://raw.githubusercontent.com/tboox/xm <img src="/assets/img/index/add_require.png" width="70%" /> +An official xmake package repository: [xmake-repo](https://github.com/tboox/xmake-repo) + ## Build project ```bash @@ -106,6 +108,8 @@ $ xmake f --menu ```bash $ xmake m -b # start to record $ xmake f -p iphoneos -m debug +$ xmake +$ xmake f -p android --ndk=~/files/android-ndk-r16b $ xmake $ xmake m -e # stop to record $ xmake m . # playback commands @@ -161,6 +165,9 @@ add_rules("mode.debug", "mode.release") target("console") set_kind("binary") add_files("src/*.c") + if is_plat("windows", "mingw") then + add_defines("XXX") + end ``` Custom script: |
