From 9078c01303c065fbf6e6cefbddcb462adede7bfb Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 31 Aug 2017 09:08:38 +0800 Subject: first commit --- cn/index.html | 237 +++++++++++++++++++++++++++++++++++++++++++++++++ cn/pages/donation.html | 119 +++++++++++++++++++++++++ 2 files changed, 356 insertions(+) create mode 100644 cn/index.html create mode 100644 cn/pages/donation.html (limited to 'cn') diff --git a/cn/index.html b/cn/index.html new file mode 100644 index 00000000..4b0cd2de --- /dev/null +++ b/cn/index.html @@ -0,0 +1,237 @@ + + + + + + xmake + + + + + + + + + + + + + + + + + + + +
+ +

安装

+ +

使用curl

+ +
bash <(curl -fsSL https://raw.githubusercontent.com/tboox/xmake/master/scripts/get.sh)
+
+
+ +

使用wget

+ +
bash <(wget https://raw.githubusercontent.com/tboox/xmake/master/scripts/get.sh -O -)
+
+
+ +

使用powershell

+ +
Invoke-Expression (Invoke-Webrequest 'https://raw.githubusercontent.com/tboox/xmake/master/scripts/get.ps1' -UseBasicParsing).Content
+
+
+ +

简单的工程描述

+ +
target("console")
+    set_kind("binary")
+    add_files("src/*.c") 
+
+
+ +

构建工程

+ +
$ xmake
+
+
+ +

运行目标

+ +
$ xmake run console
+
+
+ +

调试程序

+ +
$ xmake run -d console
+
+
+ +

支持特性

+ + + +

支持平台

+ + + +

支持语言

+ + + +

内置插件

+ + + +

更多插件

+ +

请到插件仓库进行下载安装: xmake-plugins.

+ +

更多例子

+ +

Debug和Release模式:

+ +
if is_mode("debug") then
+    set_symbols("debug")
+    set_optimize("none")
+end
+
+if is_mode("release") then
+    set_symbols("hidden")
+    set_optimize("fastest")
+    set_strip("all")
+end
+
+target("console")
+    set_kind("binary")
+    add_files("src/*.c") 
+
+
+ +

自定义脚本:

+ +
target("test")
+    set_kind("static")
+    add_files("src/*.cpp")
+    after_build(function (target)
+        print("build %s ok!", target:targetfile())
+    end)
+
+
+ +

使用扩展模块:

+ +
target("test")
+    set_kind("shared")
+    add_files("src/*.c")
+    on_load(function (target)
+        import("lib.detect.find_package")
+        target:add(find_package("zlib"))
+    end)
+
+
+ +

项目例子

+ +

一些使用xmake的项目:

+ + + +

演示视频

+ +

asciicast

+ +

联系方式

+ + + + + + + + +
+ + + diff --git a/cn/pages/donation.html b/cn/pages/donation.html new file mode 100644 index 00000000..05ddca97 --- /dev/null +++ b/cn/pages/donation.html @@ -0,0 +1,119 @@ + + + + + + xmake + + + + + + + + + + + + + + + + + + + +
+ + + +

xmake项目属于个人开源项目,它的发展需要您的帮助,如果您愿意支持xmake项目的开发,欢迎为其捐赠,支持它的发展。

+ +

支付宝

+ +

alipay

+ +

账号:waruqi@gmail.com

+ +

微信

+ +

weixin

+ +

Paypal

+ +

Paypal Me

+ +

支持者

+ +

+ + + + + + + + + + +
2016.11.10lc-softoschina¥10
+ +

赞助者

+ +

通过赞助支持此项目,您的logo和网站链接将显示在这里。[赞助此项目]

+ +

+ + + + + + + + +

+ + + + + + +
+ + + -- cgit v1.2.3