Browse Source

update index

ruki 7 years ago
parent
commit
3bfb2da43a
4 changed files with 28 additions and 0 deletions
  1. 7 0
      cn/index.html
  2. 7 0
      landing.html
  3. 7 0
      landing/index.cn.md
  4. 7 0
      landing/index.md

+ 7 - 0
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>
 

+ 7 - 0
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>
 

+ 7 - 0
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
 ```
 
 自定义脚本:

+ 7 - 0
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: