From 3bfb2da43ac4b89bc0adf96990c86d45aa110532 Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 12 Oct 2018 22:50:12 +0800 Subject: update index --- cn/index.html | 7 +++++++ landing.html | 7 +++++++ landing/index.cn.md | 7 +++++++ landing/index.md | 7 +++++++ 4 files changed, 28 insertions(+) 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 @@

+

官方的xmake包管理仓库: xmake-repo

+

构建工程

$ xmake
@@ -157,6 +159,8 @@
 
 
$ 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 .                         # 回放命令
@@ -220,6 +224,9 @@
 target("console")
     set_kind("binary")
     add_files("src/*.c") 
+    if is_plat("windows", "mingw") then
+        add_defines("XXX")
+    end
 
diff --git a/landing.html b/landing.html index a10d2405..7b235f97 100644 --- a/landing.html +++ b/landing.html @@ -77,6 +77,8 @@

+

An official xmake package repository: xmake-repo

+

Build project

$ xmake
@@ -157,6 +159,8 @@
 
 
$ 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
@@ -220,6 +224,9 @@
 target("console")
     set_kind("binary")
     add_files("src/*.c") 
+    if is_plat("windows", "mingw") then
+        add_defines("XXX")
+    end
 
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 +官方的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 +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: -- cgit v1.2.3