diff options
| author | ruki <[email protected]> | 2017-02-04 16:23:59 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-02-04 16:23:59 +0800 |
| commit | 4811b6b1afd7b12658704ddeffb7a6beca05ac2a (patch) | |
| tree | 69559fcb9093a2eae27fa35427d9be65f949acb5 /docs | |
| parent | 6162f24b4c7a443e78ea68e5e0407ac60eb561fe (diff) | |
add docs
Diffstat (limited to 'docs')
49 files changed, 3218 insertions, 0 deletions
diff --git a/docs/.nojekyll b/docs/.nojekyll new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/docs/.nojekyll diff --git a/docs/README.md b/docs/README.md new file mode 100644 index 000000000..f71ff66e3 --- /dev/null +++ b/docs/README.md @@ -0,0 +1,236 @@ +--- +search: english +--- + +# A make-like build utility based on Lua + +[](https://travis-ci.org/tboox/xmake) [](https://ci.appveyor.com/project/waruqi/xmake/branch/master) [](https://gitter.im/waruqi/tboox?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [](http://xmake.io/pages/donation.html#donate) + +## Introduction ([中文](/README_zh.md)) + +xmake is a make-like build utility based on lua. + +The project focuses on making development and building easier and provides many features (.e.g package, install, plugin, macro, action, option, task ...), +so that any developer can quickly pick it up and enjoy the productivity boost when developing and building project. + +If you want to known more, please refer to: + +* [Documents](https://github.com/waruqi/xmake/wiki/%E7%9B%AE%E5%BD%95) +* [Github](https://github.com/waruqi/xmake) +* [HomePage](http://www.xmake.io) + +#### Features + +- Create projects and supports many project templates +- Support c/c++, objc/c++, swift and assembly language +- Automatically probe the host environment and configure project +- Provide some built-in actions (config, build, package, clean, install, uninstall and run) +- Provide some built-in plugins (doxygen, macro, project) +- Provide some built-in macros (batch packaging) +- Describe the project file using lua script, more flexible and simple +- Custom packages, platforms, plugins, templates, tasks, macros, options and actions +- Do not generate makefile and build project directly +- Support multitasking with argument: -j +- Check includes dependence automatically +- Run and debug the target program +- Generate IDE project file + +#### Actions + +- config: Configure project before building. +- global: Configure the global options for xmake. +- build: Build project. +- clean: Remove all binary and temporary files. +- create: Create a new project using template. +- package: Package the given target +- install: Install the project binary files. +- uninstall: Uninstall the project binary files. +- run: Run the project target. + +#### Plugins + +- The doxygen plugin: Make doxygen document from source codes +- The macro plugin: Record and playback commands +- The hello plugin: A simple plugin demo to show 'hello xmake!' +- The project plugin: Create the project file for IDE (.e.g makefile, vs2002 - vs2017) + +#### Languages + +- C/C++ +- Objc/Objc++ +- Swift +- Assembly + +#### Platforms + +- Windows (x86, x64, amd64, x86_amd64) +- Macosx (i386, x86_64) +- Linux (i386, x86_64, cross-toolchains ...) +- Android (armv5te, armv6, armv7-a, armv8-a, arm64-v8a) +- iPhoneos (armv7, armv7s, arm64, i386, x86_64) +- Watchos (armv7k, i386) +- Mingw (i386, x86_64) + +#### Todolist + +- Manage package and dependencies +- Download package automatically +- Create package repository for porting other third-party source codes, it's goal is that one people port it and many people shared. +- Implement more plugins(.e.g generate .deb, .rpm package) + +#### Examples + +[](http://www.xmake.io) + +Create a c++ console project: + +```bash + xmake create -l c++ -t 1 console + or xmake create --language=c++ --template=1 console +``` + +Project xmakefile: xmake.lua + +```lua +target("console") + set_kind("binary") + add_files("src/*.c") +``` + +Configure project: + +This is optional, if you compile the targets only for linux, macosx and windows and the default compilation mode is release. + +```bash + xmake f -p iphoneos -m debug +or xmake f --plat=macosx --arch=x86_64 +or xmake f -p windows +or xmake config --plat=iphoneos --mode=debug +or xmake config --plat=android --arch=armv7-a --ndk=xxxxx +or xmake config -p linux -a i386 +or xmake config -p mingw --cross=i386-mingw32- --toolchains=/xxx/bin +or xmake config -p mingw --sdk=/mingwsdk +or xmake config --help +``` + +Compile project: + +```bash + xmake +or xmake -r +or xmake --rebuild +``` + +Run target: + +```bash + xmake r console +or xmake run console +``` + +Debug target: + +```bash + xmake r -d console +or xmake run -d console +``` + +Package all: + +```bash + xmake p +or xmake package +or xmake package console +or xmake package -o /tmp +or xmake package --output=/tmp +``` + +Package all archs using macro: + +```bash + xmake m package +or xmake m package -p iphoneos +or xmake m package -p macosx -f "-m debug" -o /tmp/ +or xmake m package --help +``` + +Install targets: + +```bash + xmake i +or xmake install +or xmake install console +or xmake install -o /tmp +or xmake install --output=/tmp +``` + +If you need known more detailed usage,please refer to [documents](https://github.com/waruqi/xmake/wiki/documents) +or run: + +```bash + xmake -h +or xmake --help +or xmake config --help +or xmake package --help +or xmake macro --help +... +``` + +The simple xmake.lua file: + +```c +-- the debug mode +if is_mode("debug") then + + -- enable the debug symbols + set_symbols("debug") + + -- disable optimization + set_optimize("none") +end + +-- the release mode +if is_mode("release") then + + -- set the symbols visibility: hidden + set_symbols("hidden") + + -- enable fastest optimization + set_optimize("fastest") + + -- strip all symbols + set_strip("all") +end + +-- add target +target("test") + + -- set kind + set_kind("static") + + -- add files + add_files("src/*.c") +``` + +If you want to know more, please refer to: + +#### Documents + +* [Documents](https://github.com/waruqi/xmake/wiki/documents) +* [Codes](https://github.com/waruqi/xmake) + +#### Projects + +Some projects using xmake: + +* [tbox](https://github.com/waruqi/tbox) +* [gbox](https://github.com/waruqi/gbox) +* [libsvx](https://github.com/caikelun/libsvx) +* [more](https://github.com/waruqi/xmake/wiki/xmake-projects) + +#### Contacts + +* Email:[[email protected]](mailto:[email protected]) +* Homepage:[TBOOX Open Source Project](http://www.tboox.org/cn) +* Community:[TBOOX Open Source Community](http://www.tboox.org/forum) + diff --git a/docs/apis.md b/docs/apis.md new file mode 100644 index 000000000..616f7068c --- /dev/null +++ b/docs/apis.md @@ -0,0 +1,4 @@ +--- +search: english +--- + diff --git a/docs/baidu_verify_cuJ4VNoBuE.html b/docs/baidu_verify_cuJ4VNoBuE.html new file mode 100644 index 000000000..46cb113f2 --- /dev/null +++ b/docs/baidu_verify_cuJ4VNoBuE.html @@ -0,0 +1 @@ +cuJ4VNoBuE
\ No newline at end of file diff --git a/docs/config.js b/docs/config.js new file mode 100644 index 000000000..95f00ef23 --- /dev/null +++ b/docs/config.js @@ -0,0 +1,49 @@ +var langs = [ + {title: 'English', path: '/home'}, + {title: '中文', path: '/zh/'}, +] + +self.$config = { + landing: '/landing/_site/index.html', + repo: 'tboox/xmake', + twitter: 'waruqi', + url: 'http://xmake.io', + 'edit-link': 'https://github.com/tboox/xmake/blob/master/docs', + nav: { + default: [ + { + title: 'Home', path: '/home' + }, + { + title: 'Plugins', path: '/plugins' + }, + { + title: 'Api Manual', path: '/apis' + }, + { + title: '中文', type: 'dropdown', items: langs, exact: true + } + ], + 'zh': [ + { + title: '首页', path: '/zh/' + }, + { + title: '插件', path: '/zh/plugins' + }, + { + title: 'Api手册', path: '/zh/apis' + }, + { + title: 'English', type: 'dropdown', items: langs, exact: true + } + ] + }, + plugins: [ + docsearch({ + apiKey: '', + indexName: 'xmake', + tags: ['english', 'zh'] + }) + ] +} diff --git a/docs/favicon.ico b/docs/favicon.ico Binary files differnew file mode 100644 index 000000000..3a3fe3f52 --- /dev/null +++ b/docs/favicon.ico diff --git a/docs/index.html b/docs/index.html new file mode 100644 index 000000000..3286f59af --- /dev/null +++ b/docs/index.html @@ -0,0 +1,20 @@ +<!DOCTYPE html> +<html> +<head> + <meta charset="utf-8"> + <meta http-equiv="X-UA-Compatible" content="IE=edge" /> + <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0" /> + <title>xmake</title> + <link rel="stylesheet" href="https://unpkg.com/docute@2/dist/docute.css"> +</head> +<body> + <!-- don't remove this part start --> + <div id="app"></div> + <script src="https://unpkg.com/[email protected]/plugins/docsearch.js"></script> + <script src="./config.js"></script> + <script src="https://unpkg.com/docute@2/dist/docute.js"></script> + <!-- don't remove this part end --> + <script src="https://unpkg.com/[email protected]/components/prism-c.min.js"></script> + <script src="https://unpkg.com/[email protected]/components/prism-bash.min.js"></script> +</body> +</html> diff --git a/docs/landing/README.md b/docs/landing/README.md new file mode 100755 index 000000000..289c99539 --- /dev/null +++ b/docs/landing/README.md @@ -0,0 +1,24 @@ +# xmake.io + +This is a [Jekyll][1] theme for [@jasonlong][2]'s [Cayman theme][4] on [GitHub Pages][3]. + +# Developing + +Start a local server at localhost:4000: + +``` +$ jekyll serve +``` + +# Publishing site + +``` +$ ./build gh-pages +$ git commit -a -m "..." +$ git push origin gh-pages +$ git checkout sitesrc +``` + +For more details read about [Jekyll][1] on its web page. + + diff --git a/docs/landing/_config.yml b/docs/landing/_config.yml new file mode 100755 index 000000000..0a2174f79 --- /dev/null +++ b/docs/landing/_config.yml @@ -0,0 +1,21 @@ +# Setup +title: xmake +tagline: A make-like build utility based on Lua +tagline-cn: 一个基于Lua的轻量级自动构建工具 +keywords: make,makefile,build,lua,cross-compile,linux +keywords-cn: make,makefile,构建工具,编译工具,lua,跨平台,跨平台开发,linux,交叉编译 +baseurl: "/landing/_site" +paginate: 1 + +# About/contact +author: + name: waruqi + url: http://www.tboox.org + +#Others +markdown: kramdown + +# multiple-languages +gems: ['jekyll-paginate', 'jekyll-multiple-languages'] +languages: ['en', 'cn'] +language_default: 'en' diff --git a/docs/landing/_includes/head.cn.html b/docs/landing/_includes/head.cn.html new file mode 100755 index 000000000..1827c699a --- /dev/null +++ b/docs/landing/_includes/head.cn.html @@ -0,0 +1,23 @@ +<head> + <meta charset="UTF-8"> + <title>{{ site.title }}</title> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <meta name="theme-color" content="#157878"> + <meta name="description" content="{{site.tagline-cn}}"> + <meta name="keywords" content="{{site.keywords-cn}}" /> + + <link rel="stylesheet" href="{{ site.baseurl }}/css/normalize.css"> + <link rel='stylesheet' href="{{ site.baseurl }}/css/opensans.css" type='text/css'> + <link rel="stylesheet" href="{{ site.baseurl }}/css/cayman.css"> + + <!-- baidu stats --> + <script> + var _hmt = _hmt || []; + (function() { + var hm = document.createElement("script"); + hm.src = "//hm.baidu.com/hm.js?eb3c91c672a001d78a113bfb8e42017a"; + var s = document.getElementsByTagName("script")[0]; + s.parentNode.insertBefore(hm, s); + })(); + </script> +</head> diff --git a/docs/landing/_includes/head.html b/docs/landing/_includes/head.html new file mode 100755 index 000000000..9aef4601d --- /dev/null +++ b/docs/landing/_includes/head.html @@ -0,0 +1,23 @@ +<head> + <meta charset="UTF-8"> + <title>{{ site.title }}</title> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <meta name="theme-color" content="#157878"> + <meta name="description" content="{{site.tagline}}"> + <meta name="keywords" content="{{site.keywords}}" /> + + <link rel="stylesheet" href="{{ site.baseurl }}/css/normalize.css"> + <link rel='stylesheet' href="{{ site.baseurl }}/css/opensans.css" type='text/css'> + <link rel="stylesheet" href="{{ site.baseurl }}/css/cayman.css"> + + <!-- baidu stats --> + <script> + var _hmt = _hmt || []; + (function() { + var hm = document.createElement("script"); + hm.src = "//hm.baidu.com/hm.js?eb3c91c672a001d78a113bfb8e42017a"; + var s = document.getElementsByTagName("script")[0]; + s.parentNode.insertBefore(hm, s); + })(); + </script> +</head> diff --git a/docs/landing/_includes/page-footer.html b/docs/landing/_includes/page-footer.html new file mode 100755 index 000000000..d51fa080f --- /dev/null +++ b/docs/landing/_includes/page-footer.html @@ -0,0 +1,11 @@ +<footer class="site-footer"> + <span class="site-footer-owner">Copyright (c) 2016 <a href="{{ site.author.url }}">tboox.org</a>.</span> + <span class="site-footer-power"> + <span> + Site powered by <a href="https://jekyllrb.com/">Jekyll</a> & <a href="http://pages.coding.me">Coding Pages</a>. + </span> + <span> + Theme designed by <a href="https://github.com/pietromenna/jekyll-cayman-theme">cayman</a>. + </span> +</span> +</footer> diff --git a/docs/landing/_includes/page-header.cn.html b/docs/landing/_includes/page-header.cn.html new file mode 100755 index 000000000..bb8aa6552 --- /dev/null +++ b/docs/landing/_includes/page-header.cn.html @@ -0,0 +1,18 @@ +<section class="page-header"> + <h1 class="project-name">{{ site.title }}</h1> + <h2 class="project-tagline">{{ site.tagline-cn }}</h2> + <a href="/#/zh/" class="btn">开始使用</a> + <br><br> + <iframe src="https://ghbtns.com/github-btn.html?user=tboox&repo=xmake&type=star&count=true" frameborder="0" scrolling="0" width="110px" height="20px"></iframe> + <span class="donate" style="width: 86px"> + <img src="{{site.baseurl}}/img/patreon.png"> + <a href="{{site.baseurl}}/cn/pages/donation.html#donate">支持我们</a> + </span> + <br><br> +<ul id="translations"> + <li><a href="{{site.baseurl}}/cn/" class="nav-link">中文</a></li> + <li class="delimiter">|</li> + <li><a href="{{site.baseurl}}/" class="nav-link">English</a></li> + </ul> +</section> + diff --git a/docs/landing/_includes/page-header.html b/docs/landing/_includes/page-header.html new file mode 100755 index 000000000..2a2425a6a --- /dev/null +++ b/docs/landing/_includes/page-header.html @@ -0,0 +1,18 @@ +<section class="page-header"> + <h1 class="project-name">{{ site.title }}</h1> + <h2 class="project-tagline">{{ site.tagline }}</h2> + <a href="/#/home" class="btn">GET STARTED</a> + <br><br> + <iframe src="https://ghbtns.com/github-btn.html?user=tboox&repo=xmake&type=star&count=true" frameborder="0" scrolling="0" width="110px" height="20px"></iframe> + <span class="donate" style="width: 100px"> + <img src="{{site.baseurl}}/img/patreon.png"> + <a href="{{site.baseurl}}/pages/donation.html#donate">Support us</a> + </span> + <br><br> + <ul id="translations"> + <li><a href="{{site.baseurl}}/cn/" class="nav-link">中文</a></li> + <li class="delimiter">|</li> + <li><a href="{{site.baseurl}}/" class="nav-link">English</a></li> + </ul> +</section> + diff --git a/docs/landing/_layouts/default.cn.html b/docs/landing/_layouts/default.cn.html new file mode 100755 index 000000000..82da5f6cb --- /dev/null +++ b/docs/landing/_layouts/default.cn.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html lang="en-us"> + + {% include head.cn.html %} + + <body> + {% include page-header.cn.html %} + + <section class="main-content"> + + {{ content }} + + {% include page-footer.html %} + + </section> + + </body> +</html> diff --git a/docs/landing/_layouts/default.html b/docs/landing/_layouts/default.html new file mode 100755 index 000000000..8a21bd714 --- /dev/null +++ b/docs/landing/_layouts/default.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html lang="en-us"> + + {% include head.html %} + + <body> + {% include page-header.html %} + + <section class="main-content"> + + {{ content }} + + {% include page-footer.html %} + + </section> + + </body> +</html> diff --git a/docs/landing/_layouts/post.html b/docs/landing/_layouts/post.html new file mode 100755 index 000000000..5b12153c8 --- /dev/null +++ b/docs/landing/_layouts/post.html @@ -0,0 +1,7 @@ +--- +layout: default +--- +<h2>{{ page.title }}</h2> +<p class="meta">{{ page.date | date_to_string }}</p> + +{{ content }}
\ No newline at end of file diff --git a/docs/landing/_posts/donation.md b/docs/landing/_posts/donation.md new file mode 100755 index 000000000..c17f1d895 --- /dev/null +++ b/docs/landing/_posts/donation.md @@ -0,0 +1,6 @@ +--- +layout: default +title: {{ site.name }} +--- + +oasdad diff --git a/docs/landing/_site/README.md b/docs/landing/_site/README.md new file mode 100755 index 000000000..289c99539 --- /dev/null +++ b/docs/landing/_site/README.md @@ -0,0 +1,24 @@ +# xmake.io + +This is a [Jekyll][1] theme for [@jasonlong][2]'s [Cayman theme][4] on [GitHub Pages][3]. + +# Developing + +Start a local server at localhost:4000: + +``` +$ jekyll serve +``` + +# Publishing site + +``` +$ ./build gh-pages +$ git commit -a -m "..." +$ git push origin gh-pages +$ git checkout sitesrc +``` + +For more details read about [Jekyll][1] on its web page. + + diff --git a/docs/landing/_site/cn/index.html b/docs/landing/_site/cn/index.html new file mode 100644 index 000000000..fa9c0fffb --- /dev/null +++ b/docs/landing/_site/cn/index.html @@ -0,0 +1,152 @@ +<!DOCTYPE html> +<html lang="en-us"> + + <head> + <meta charset="UTF-8"> + <title>xmake</title> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <meta name="theme-color" content="#157878"> + <meta name="description" content="一个基于Lua的轻量级自动构建工具"> + <meta name="keywords" content="make,makefile,构建工具,编译工具,lua,跨平台,跨平台开发,linux,交叉编译" /> + + <link rel="stylesheet" href="/landing/_site/css/normalize.css"> + <link rel='stylesheet' href="/landing/_site/css/opensans.css" type='text/css'> + <link rel="stylesheet" href="/landing/_site/css/cayman.css"> + + <!-- baidu stats --> + <script> + var _hmt = _hmt || []; + (function() { + var hm = document.createElement("script"); + hm.src = "//hm.baidu.com/hm.js?eb3c91c672a001d78a113bfb8e42017a"; + var s = document.getElementsByTagName("script")[0]; + s.parentNode.insertBefore(hm, s); + })(); + </script> +</head> + + + <body> + <section class="page-header"> + <h1 class="project-name">xmake</h1> + <h2 class="project-tagline">一个基于Lua的轻量级自动构建工具</h2> + <a href="/#/zh/" class="btn">开始使用</a> + <br><br> + <iframe src="https://ghbtns.com/github-btn.html?user=tboox&repo=xmake&type=star&count=true" frameborder="0" scrolling="0" width="110px" height="20px"></iframe> + <span class="donate" style="width: 86px"> + <img src="/landing/_site/img/patreon.png"> + <a href="/landing/_site/cn/pages/donation.html#donate">支持我们</a> + </span> + <br><br> +<ul id="translations"> + <li><a href="/landing/_site/cn/" class="nav-link">中文</a></li> + <li class="delimiter">|</li> + <li><a href="/landing/_site/" class="nav-link">English</a></li> + </ul> +</section> + + + + <section class="main-content"> + + <h2 id="section">简单的工程描述</h2> + +<div class="language-lua highlighter-rouge"><pre class="highlight"><code><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> +</code></pre> +</div> + +<h2 id="section-1">构建工程</h2> + +<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>xmake +</code></pre> +</div> + +<h2 id="section-2">运行目标</h2> + +<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>xmake run console +</code></pre> +</div> + +<h2 id="section-3">调试程序</h2> + +<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>xmake run -d console +</code></pre> +</div> + +<h2 id="section-4">支持特性</h2> + +<ul> + <li>Tasks</li> + <li>Macros</li> + <li>Actions</li> + <li>Options</li> + <li>Plugins</li> + <li>Templates</li> +</ul> + +<h2 id="section-5">支持平台</h2> + +<ul> + <li>Windows (x86, x64, amd64, x86_amd64)</li> + <li>Macosx (i386, x86_64)</li> + <li>Linux (i386, x86_64, cross-toolchains …)</li> + <li>Android (armv5te, armv6, armv7-a, armv8-a, arm64-v8a)</li> + <li>iPhoneOS (armv7, armv7s, arm64, i386, x86_64)</li> + <li>WatchOS (armv7k, i386)</li> + <li>Mingw (i386, x86_64)</li> +</ul> + +<h2 id="section-6">支持语言</h2> + +<ul> + <li>C/C++</li> + <li>Objc/Objc++</li> + <li>Swift</li> + <li>Assembly</li> +</ul> + +<h2 id="section-7">内置插件</h2> + +<ul> + <li>宏记录脚本和回放插件</li> + <li>加载自定义lua脚本插件</li> + <li>生成IDE工程文件插件(makefile, vs2002 - vs2015, …)</li> + <li>生成doxygen文档插件</li> + <li>iOS app2ipa插件</li> +</ul> + +<h2 id="section-8">使用演示</h2> + +<p><a href="https://github.com/tboox/xmake"><img src="http://tboox.org/static/img/xmake/usage_demo.gif" alt="usage_demo" /></a></p> + +<h2 id="section-9">联系方式</h2> + +<ul> + <li>邮箱:<a href="mailto:[email protected]">[email protected]</a></li> + <li>主页:<a href="http://www.tboox.org/cn">TBOOX开源工程</a></li> + <li>社区:<a href="http://www.tboox.org/forum">TBOOX开源社区</a></li> + <li>聊天:<a href="https://gitter.im/waruqi/tboox?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge"><img src="https://badges.gitter.im/waruqi/tboox.svg" alt="Join the chat at https://gitter.im/waruqi/tboox" /></a></li> + <li>QQ群:343118190</li> + <li>微信公众号:tboox-os</li> +</ul> + + + <footer class="site-footer"> + <span class="site-footer-owner">Copyright (c) 2016 <a href="http://www.tboox.org">tboox.org</a>.</span> + <span class="site-footer-power"> + <span> + Site powered by <a href="https://jekyllrb.com/">Jekyll</a> & <a href="http://pages.coding.me">Coding Pages</a>. + </span> + <span> + Theme designed by <a href="https://github.com/pietromenna/jekyll-cayman-theme">cayman</a>. + </span> +</span> +</footer> + + + </section> + + </body> +</html> diff --git a/docs/landing/_site/cn/pages/donation.html b/docs/landing/_site/cn/pages/donation.html new file mode 100644 index 000000000..28516e6c4 --- /dev/null +++ b/docs/landing/_site/cn/pages/donation.html @@ -0,0 +1,96 @@ +<!DOCTYPE html> +<html lang="en-us"> + + <head> + <meta charset="UTF-8"> + <title>xmake</title> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <meta name="theme-color" content="#157878"> + <meta name="description" content="一个基于Lua的轻量级自动构建工具"> + <meta name="keywords" content="make,makefile,构建工具,编译工具,lua,跨平台,跨平台开发,linux,交叉编译" /> + + <link rel="stylesheet" href="/landing/_site/css/normalize.css"> + <link rel='stylesheet' href="/landing/_site/css/opensans.css" type='text/css'> + <link rel="stylesheet" href="/landing/_site/css/cayman.css"> + + <!-- baidu stats --> + <script> + var _hmt = _hmt || []; + (function() { + var hm = document.createElement("script"); + hm.src = "//hm.baidu.com/hm.js?eb3c91c672a001d78a113bfb8e42017a"; + var s = document.getElementsByTagName("script")[0]; + s.parentNode.insertBefore(hm, s); + })(); + </script> +</head> + + + <body> + <section class="page-header"> + <h1 class="project-name">xmake</h1> + <h2 class="project-tagline">一个基于Lua的轻量级自动构建工具</h2> + <a href="/#/zh/" class="btn">开始使用</a> + <br><br> + <iframe src="https://ghbtns.com/github-btn.html?user=tboox&repo=xmake&type=star&count=true" frameborder="0" scrolling="0" width="110px" height="20px"></iframe> + <span class="donate" style="width: 86px"> + <img src="/landing/_site/img/patreon.png"> + <a href="/landing/_site/cn/pages/donation.html#donate">支持我们</a> + </span> + <br><br> +<ul id="translations"> + <li><a href="/landing/_site/cn/" class="nav-link">中文</a></li> + <li class="delimiter">|</li> + <li><a href="/landing/_site/" class="nav-link">English</a></li> + </ul> +</section> + + + + <section class="main-content"> + + <div id="donate"></div> + +<p>xmake项目属于个人开源项目,它的发展需要您的帮助,如果您愿意支持xmake项目的开发,欢迎为其捐赠,支持它的发展。</p> + +<h2 id="section">支付宝</h2> + +<p><img src="/landing/_site/img/alipay.png" alt="alipay" width="256" height="256" /></p> + +<p>账号:[email protected]</p> + +<h2 id="section-1">微信</h2> + +<p><img src="/landing/_site/img/weixin.png" alt="weixin" width="218" height="218" /></p> + +<h2 id="paypal">Paypal</h2> + +<p><a href="http://paypal.me/tboox/5"><img src="/img/paypal.png" alt="Paypal Me" /></a></p> + +<h2 id="section-2">捐助者名单</h2> + +<p>2016.11.10</p> + +<ul> + <li><a href="https://github.com/lc-soft">lc-soft</a>: ¥10</li> +</ul> + + + + <footer class="site-footer"> + <span class="site-footer-owner">Copyright (c) 2016 <a href="http://www.tboox.org">tboox.org</a>.</span> + <span class="site-footer-power"> + <span> + Site powered by <a href="https://jekyllrb.com/">Jekyll</a> & <a href="http://pages.coding.me">Coding Pages</a>. + </span> + <span> + Theme designed by <a href="https://github.com/pietromenna/jekyll-cayman-theme">cayman</a>. + </span> +</span> +</footer> + + + </section> + + </body> +</html> diff --git a/docs/landing/_site/css/cayman.css b/docs/landing/_site/css/cayman.css new file mode 100755 index 000000000..b67d1e8fa --- /dev/null +++ b/docs/landing/_site/css/cayman.css @@ -0,0 +1,320 @@ +* { + box-sizing: border-box; } + +body { + padding: 0; + margin: 0; + font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; + font-size: 16px; + line-height: 1.5; + color: #606c71; } + +a { + color: #1e6bb8; + text-decoration: none; } + a:hover { + text-decoration: underline; } + +.btn { + display: inline-block; + margin-bottom: 1rem; + color: rgba(255, 255, 255, 0.7); + background-color: rgba(255, 255, 255, 0.08); + border-color: rgba(255, 255, 255, 0.2); + border-style: solid; + border-width: 1px; + border-radius: 0.3rem; + transition: color 0.2s, background-color 0.2s, border-color 0.2s; } + .btn:hover { + color: rgba(255, 255, 255, 0.8); + text-decoration: none; + background-color: rgba(255, 255, 255, 0.2); + border-color: rgba(255, 255, 255, 0.3); } + .btn + .btn { + margin-left: 1rem; } + @media screen and (min-width: 64em) { + .btn { + padding: 0.75rem 1rem; } } + @media screen and (min-width: 42em) and (max-width: 64em) { + .btn { + padding: 0.6rem 0.9rem; + font-size: 0.9rem; } } + @media screen and (max-width: 42em) { + .btn { + display: block; + width: 100%; + padding: 0.75rem; + font-size: 0.9rem; } + .btn + .btn { + margin-top: 1rem; + margin-left: 0; } } + +.page-header { + color: #fff; + text-align: center; + background-color: #159957; + background-image: linear-gradient(120deg, #155799, #159957); } + @media screen and (min-width: 64em) { + .page-header { + padding: 5rem 6rem; } } + @media screen and (min-width: 42em) and (max-width: 64em) { + .page-header { + padding: 3rem 4rem; } } + @media screen and (max-width: 42em) { + .page-header { + padding: 2rem 1rem; } } + +.project-name { + margin-top: 0; + margin-bottom: 0.1rem; } + @media screen and (min-width: 64em) { + .project-name { + font-size: 3.25rem; } } + @media screen and (min-width: 42em) and (max-width: 64em) { + .project-name { + font-size: 2.25rem; } } + @media screen and (max-width: 42em) { + .project-name { + font-size: 1.75rem; } } + +.project-tagline { + margin-bottom: 2rem; + font-weight: normal; + opacity: 0.7; } + @media screen and (min-width: 64em) { + .project-tagline { + font-size: 1.25rem; } } + @media screen and (min-width: 42em) and (max-width: 64em) { + .project-tagline { + font-size: 1.15rem; } } + @media screen and (max-width: 42em) { + .project-tagline { + font-size: 1rem; } } + +.main-content { + word-wrap: break-word; } + .main-content :first-child { + margin-top: 0; } + @media screen and (min-width: 64em) { + .main-content { + max-width: 64rem; + padding: 2rem 6rem; + margin: 0 auto; + font-size: 1.1rem; } } + @media screen and (min-width: 42em) and (max-width: 64em) { + .main-content { + padding: 2rem 4rem; + font-size: 1.1rem; } } + @media screen and (max-width: 42em) { + .main-content { + padding: 2rem 1rem; + font-size: 1rem; } } + .main-content img { + max-width: 100%; } + .main-content h1, + .main-content h2, + .main-content h3, + .main-content h4, + .main-content h5, + .main-content h6 { + margin-top: 2rem; + margin-bottom: 1rem; + font-weight: normal; + color: #159957; } + .main-content p { + margin-bottom: 1em; } + .main-content code { + padding: 2px 4px; + font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace; + font-size: 0.9rem; + color: #567482; + background-color: #f3f6fa; + border-radius: 0.3rem; } + .main-content pre { + padding: 0.8rem; + margin-top: 0; + margin-bottom: 1rem; + font: 1rem Consolas, "Liberation Mono", Menlo, Courier, monospace; + color: #567482; + word-wrap: normal; + background-color: #f3f6fa; + border: solid 1px #dce6f0; + border-radius: 0.3rem; } + .main-content pre > code { + padding: 0; + margin: 0; + font-size: 0.9rem; + color: #567482; + word-break: normal; + white-space: pre; + background: transparent; + border: 0; } + .main-content .highlight { + margin-bottom: 1rem; } + .main-content .highlight pre { + margin-bottom: 0; + word-break: normal; } + .main-content .highlight pre, + .main-content pre { + padding: 0.8rem; + overflow: auto; + font-size: 0.9rem; + line-height: 1.45; + border-radius: 0.3rem; + -webkit-overflow-scrolling: touch; } + .main-content pre code, + .main-content pre tt { + display: inline; + max-width: initial; + padding: 0; + margin: 0; + overflow: initial; + line-height: inherit; + word-wrap: normal; + background-color: transparent; + border: 0; } + .main-content pre code:before, .main-content pre code:after, + .main-content pre tt:before, + .main-content pre tt:after { + content: normal; } + .main-content ul, + .main-content ol { + margin-top: 0; } + .main-content blockquote { + padding: 0 1rem; + margin-left: 0; + color: #819198; + border-left: 0.3rem solid #dce6f0; } + .main-content blockquote > :first-child { + margin-top: 0; } + .main-content blockquote > :last-child { + margin-bottom: 0; } + .main-content table { + display: block; + width: 100%; + overflow: auto; + word-break: normal; + word-break: keep-all; + -webkit-overflow-scrolling: touch; } + .main-content table th { + font-weight: bold; } + .main-content table th, + .main-content table td { + padding: 0.5rem 1rem; + border: 1px solid #e9ebec; } + .main-content dl { + padding: 0; } + .main-content dl dt { + padding: 0; + margin-top: 1rem; + font-size: 1rem; + font-weight: bold; } + .main-content dl dd { + padding: 0; + margin-bottom: 1rem; } + .main-content hr { + height: 2px; + padding: 0; + margin: 1rem 0; + background-color: #eff0f1; + border: 0; } + +.site-footer { + padding-top: 2rem; + margin-top: 2rem; + border-top: solid 1px #eff0f1; } + @media screen and (min-width: 64em) { + .site-footer { + font-size: 1rem; } } + @media screen and (min-width: 42em) and (max-width: 64em) { + .site-footer { + font-size: 1rem; } } + @media screen and (max-width: 42em) { + .site-footer { + font-size: 0.9rem; } } + +.site-footer-owner { + display: block; + text-align:center; + font-weight: bold; } + +.site-footer-power { + display: block; + font-size: 0.6rem; + text-align:center;} + +.site-footer-credits { + color: #819198; } + +.donate { + vertical-align: top; + height: 20px; + border: 1px solid #d4d4d4; + display: inline-block; + box-sizing: border-box; + line-height: 16px; + border-radius: 3px; + cursor: pointer; + background-image: linear-gradient(to bottom, #fcfcfc 0, #eee 100%); + position: relative; + width: 72px; +} +.donate:hover { + border-color: #ccc; + background-image: linear-gradient(to bottom, #eee 0, #ddd 100%); +} +.donate img { + width: 14px; + height: 14px; + position: absolute; + top: 2px; + left: 5px; +} +.donate a { + font: 700 11px/14px 'Helvetica Neue', Helvetica, Arial, sans-serif; + color: #333; + text-shadow: 0 1px 0 #fff; + position: absolute; + top: 2px; + left: 24px; +} + +#nav, +#translations { + list-style-type: none; + text-align: center; + padding: 0; + margin: 0; +} +#nav li, +#translations li { + display: inline-block; + position: relative; + line-height: 40px; +} +#nav li:last-child .nav-link, +#translations li:last-child .nav-link { + margin-right: 0; +} +#translations { + margin-bottom: 0em; +} +#translations .delimiter { + color: #7f8c8d; + margin: 0 5px; +} +#translations .nav-link { + margin: 0; +} +.nav-link { + color: #7f8c8d; + padding-bottom: 3px; + margin: 0 1.5em; +} +.nav-link:first-child { + margin-left: 0; +} +.nav-link:hover, +.nav-link.current { + border-bottom: 3px solid #42b983; +} diff --git a/docs/landing/_site/css/normalize.css b/docs/landing/_site/css/normalize.css new file mode 100755 index 000000000..30366a6e9 --- /dev/null +++ b/docs/landing/_site/css/normalize.css @@ -0,0 +1,424 @@ +/*! normalize.css v3.0.2 | MIT License | git.io/normalize */ + +/** + * 1. Set default font family to sans-serif. + * 2. Prevent iOS text size adjust after orientation change, without disabling + * user zoom. + */ + +html { + font-family: sans-serif; /* 1 */ + -ms-text-size-adjust: 100%; /* 2 */ + -webkit-text-size-adjust: 100%; /* 2 */ +} + +/** + * Remove default margin. + */ + +body { + margin: 0; +} + +/* HTML5 display definitions + ========================================================================== */ + +/** + * Correct `block` display not defined for any HTML5 element in IE 8/9. + * Correct `block` display not defined for `details` or `summary` in IE 10/11 + * and Firefox. + * Correct `block` display not defined for `main` in IE 11. + */ + +article, +aside, +details, +figcaption, +figure, +footer, +header, +hgroup, +main, +menu, +nav, +section, +summary { + display: block; +} + +/** + * 1. Correct `inline-block` display not defined in IE 8/9. + * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera. + */ + +audio, +canvas, +progress, +video { + display: inline-block; /* 1 */ + vertical-align: baseline; /* 2 */ +} + +/** + * Prevent modern browsers from displaying `audio` without controls. + * Remove excess height in iOS 5 devices. + */ + +audio:not([controls]) { + display: none; + height: 0; +} + +/** + * Address `[hidden]` styling not present in IE 8/9/10. + * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22. + */ + +[hidden], +template { + display: none; +} + +/* Links + ========================================================================== */ + +/** + * Remove the gray background color from active links in IE 10. + */ + +a { + background-color: transparent; +} + +/** + * Improve readability when focused and also mouse hovered in all browsers. + */ + +a:active, +a:hover { + outline: 0; +} + +/* Text-level semantics + ========================================================================== */ + +/** + * Address styling not present in IE 8/9/10/11, Safari, and Chrome. + */ + +abbr[title] { + border-bottom: 1px dotted; +} + +/** + * Address style set to `bolder` in Firefox 4+, Safari, and Chrome. + */ + +b, +strong { + font-weight: bold; +} + +/** + * Address styling not present in Safari and Chrome. + */ + +dfn { + font-style: italic; +} + +/** + * Address variable `h1` font-size and margin within `section` and `article` + * contexts in Firefox 4+, Safari, and Chrome. + */ + +h1 { + font-size: 2em; + margin: 0.67em 0; +} + +/** + * Address styling not present in IE 8/9. + */ + +mark { + background: #ff0; + color: #000; +} + +/** + * Address inconsistent and variable font size in all browsers. + */ + +small { + font-size: 80%; +} + +/** + * Prevent `sub` and `sup` affecting `line-height` in all browsers. + */ + +sub, +sup { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; +} + +sup { + top: -0.5em; +} + +sub { + bottom: -0.25em; +} + +/* Embedded content + ========================================================================== */ + +/** + * Remove border when inside `a` element in IE 8/9/10. + */ + +img { + border: 0; +} + +/** + * Correct overflow not hidden in IE 9/10/11. + */ + +svg:not(:root) { + overflow: hidden; +} + +/* Grouping content + ========================================================================== */ + +/** + * Address margin not present in IE 8/9 and Safari. + */ + +figure { + margin: 1em 40px; +} + +/** + * Address differences between Firefox and other browsers. + */ + +hr { + box-sizing: content-box; + height: 0; +} + +/** + * Contain overflow in all browsers. + */ + +pre { + overflow: auto; +} + +/** + * Address odd `em`-unit font size rendering in all browsers. + */ + +code, +kbd, +pre, +samp { + font-family: monospace, monospace; + font-size: 1em; +} + +/* Forms + ========================================================================== */ + +/** + * Known limitation: by default, Chrome and Safari on OS X allow very limited + * styling of `select`, unless a `border` property is set. + */ + +/** + * 1. Correct color not being inherited. + * Known issue: affects color of disabled elements. + * 2. Correct font properties not being inherited. + * 3. Address margins set differently in Firefox 4+, Safari, and Chrome. + */ + +button, +input, +optgroup, +select, +textarea { + color: inherit; /* 1 */ + font: inherit; /* 2 */ + margin: 0; /* 3 */ +} + +/** + * Address `overflow` set to `hidden` in IE 8/9/10/11. + */ + +button { + overflow: visible; +} + +/** + * Address inconsistent `text-transform` inheritance for `button` and `select`. + * All other form control elements do not inherit `text-transform` values. + * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera. + * Correct `select` style inheritance in Firefox. + */ + +button, +select { + text-transform: none; +} + +/** + * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio` + * and `video` controls. + * 2. Correct inability to style clickable `input` types in iOS. + * 3. Improve usability and consistency of cursor style between image-type + * `input` and others. + */ + +button, +html input[type="button"], /* 1 */ +input[type="reset"], +input[type="submit"] { + -webkit-appearance: button; /* 2 */ + cursor: pointer; /* 3 */ +} + +/** + * Re-set default cursor for disabled elements. + */ + +button[disabled], +html input[disabled] { + cursor: default; +} + +/** + * Remove inner padding and border in Firefox 4+. + */ + +button::-moz-focus-inner, +input::-moz-focus-inner { + border: 0; + padding: 0; +} + +/** + * Address Firefox 4+ setting `line-height` on `input` using `!important` in + * the UA stylesheet. + */ + +input { + line-height: normal; +} + +/** + * It's recommended that you don't attempt to style these elements. + * Firefox's implementation doesn't respect box-sizing, padding, or width. + * + * 1. Address box sizing set to `content-box` in IE 8/9/10. + * 2. Remove excess padding in IE 8/9/10. + */ + +input[type="checkbox"], +input[type="radio"] { + box-sizing: border-box; /* 1 */ + padding: 0; /* 2 */ +} + +/** + * Fix the cursor style for Chrome's increment/decrement buttons. For certain + * `font-size` values of the `input`, it causes the cursor style of the + * decrement button to change from `default` to `text`. + */ + +input[type="number"]::-webkit-inner-spin-button, +input[type="number"]::-webkit-outer-spin-button { + height: auto; +} + +/** + * 1. Address `appearance` set to `searchfield` in Safari and Chrome. + * 2. Address `box-sizing` set to `border-box` in Safari and Chrome + * (include `-moz` to future-proof). + */ + +input[type="search"] { + -webkit-appearance: textfield; /* 1 */ /* 2 */ + box-sizing: content-box; +} + +/** + * Remove inner padding and search cancel button in Safari and Chrome on OS X. + * Safari (but not Chrome) clips the cancel button when the search input has + * padding (and `textfield` appearance). + */ + +input[type="search"]::-webkit-search-cancel-button, +input[type="search"]::-webkit-search-decoration { + -webkit-appearance: none; +} + +/** + * Define consistent border, margin, and padding. + */ + +fieldset { + border: 1px solid #c0c0c0; + margin: 0 2px; + padding: 0.35em 0.625em 0.75em; +} + +/** + * 1. Correct `color` not being inherited in IE 8/9/10/11. + * 2. Remove padding so people aren't caught out if they zero out fieldsets. + */ + +legend { + border: 0; /* 1 */ + padding: 0; /* 2 */ +} + +/** + * Remove default vertical scrollbar in IE 8/9/10/11. + */ + +textarea { + overflow: auto; +} + +/** + * Don't inherit the `font-weight` (applied by a rule above). + * NOTE: the default cannot safely be changed in Chrome and Safari on OS X. + */ + +optgroup { + font-weight: bold; +} + +/* Tables + ========================================================================== */ + +/** + * Remove most spacing between table cells. + */ + +table { + border-collapse: collapse; + border-spacing: 0; +} + +td, +th { + padding: 0; +} diff --git a/docs/landing/_site/css/opensans.css b/docs/landing/_site/css/opensans.css new file mode 100644 index 000000000..ebac7ce81 --- /dev/null +++ b/docs/landing/_site/css/opensans.css @@ -0,0 +1,112 @@ +/* cyrillic-ext */ +@font-face { + font-family: 'Open Sans'; + font-style: normal; + font-weight: 400; + src: local('Open Sans'), local('OpenSans'), url(https://fonts.gstatic.com/s/opensans/v13/K88pR3goAWT7BTt32Z01m4X0hVgzZQUfRDuZrPvH3D8.woff2) format('woff2'); + unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F; +} +/* cyrillic */ +@font-face { + font-family: 'Open Sans'; + font-style: normal; + font-weight: 400; + src: local('Open Sans'), local('OpenSans'), url(https://fonts.gstatic.com/s/opensans/v13/RjgO7rYTmqiVp7vzi-Q5UYX0hVgzZQUfRDuZrPvH3D8.woff2) format('woff2'); + unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; +} +/* greek-ext */ +@font-face { + font-family: 'Open Sans'; + font-style: normal; + font-weight: 400; + src: local('Open Sans'), local('OpenSans'), url(https://fonts.gstatic.com/s/opensans/v13/LWCjsQkB6EMdfHrEVqA1KYX0hVgzZQUfRDuZrPvH3D8.woff2) format('woff2'); + unicode-range: U+1F00-1FFF; +} +/* greek */ +@font-face { + font-family: 'Open Sans'; + font-style: normal; + font-weight: 400; + src: local('Open Sans'), local('OpenSans'), url(https://fonts.gstatic.com/s/opensans/v13/xozscpT2726on7jbcb_pAoX0hVgzZQUfRDuZrPvH3D8.woff2) format('woff2'); + unicode-range: U+0370-03FF; +} +/* vietnamese */ +@font-face { + font-family: 'Open Sans'; + font-style: normal; + font-weight: 400; + src: local('Open Sans'), local('OpenSans'), url(https://fonts.gstatic.com/s/opensans/v13/59ZRklaO5bWGqF5A9baEEYX0hVgzZQUfRDuZrPvH3D8.woff2) format('woff2'); + unicode-range: U+0102-0103, U+1EA0-1EF9, U+20AB; +} +/* latin-ext */ +@font-face { + font-family: 'Open Sans'; + font-style: normal; + font-weight: 400; + src: local('Open Sans'), local('OpenSans'), url(https://fonts.gstatic.com/s/opensans/v13/u-WUoqrET9fUeobQW7jkRYX0hVgzZQUfRDuZrPvH3D8.woff2) format('woff2'); + unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF; +} +/* latin */ +@font-face { + font-family: 'Open Sans'; + font-style: normal; + font-weight: 400; + src: local('Open Sans'), local('OpenSans'), url(https://fonts.gstatic.com/s/opensans/v13/cJZKeOuBrn4kERxqtaUH3ZBw1xU1rKptJj_0jans920.woff2) format('woff2'); + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215; +} +/* cyrillic-ext */ +@font-face { + font-family: 'Open Sans'; + font-style: normal; + font-weight: 700; + src: local('Open Sans Bold'), local('OpenSans-Bold'), url(https://fonts.gstatic.com/s/opensans/v13/k3k702ZOKiLJc3WVjuplzA7aC6SjiAOpAWOKfJDfVRY.woff2) format('woff2'); + unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F; +} +/* cyrillic */ +@font-face { + font-family: 'Open Sans'; + font-style: normal; + font-weight: 700; + src: local('Open Sans Bold'), local('OpenSans-Bold'), url(https://fonts.gstatic.com/s/opensans/v13/k3k702ZOKiLJc3WVjuplzBdwxCXfZpKo5kWAx_74bHs.woff2) format('woff2'); + unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; +} +/* greek-ext */ +@font-face { + font-family: 'Open Sans'; + font-style: normal; + font-weight: 700; + src: local('Open Sans Bold'), local('OpenSans-Bold'), url(https://fonts.gstatic.com/s/opensans/v13/k3k702ZOKiLJc3WVjuplzJ6vnaPZw6nYDxM4SVEMFKg.woff2) format('woff2'); + unicode-range: U+1F00-1FFF; +} +/* greek */ +@font-face { + font-family: 'Open Sans'; + font-style: normal; + font-weight: 700; + src: local('Open Sans Bold'), local('OpenSans-Bold'), url(https://fonts.gstatic.com/s/opensans/v13/k3k702ZOKiLJc3WVjuplzPy1_HTwRwgtl1cPga3Fy3Y.woff2) format('woff2'); + unicode-range: U+0370-03FF; +} +/* vietnamese */ +@font-face { + font-family: 'Open Sans'; + font-style: normal; + font-weight: 700; + src: local('Open Sans Bold'), local('OpenSans-Bold'), url(https://fonts.gstatic.com/s/opensans/v13/k3k702ZOKiLJc3WVjuplzPgrLsWo7Jk1KvZser0olKY.woff2) format('woff2'); + unicode-range: U+0102-0103, U+1EA0-1EF9, U+20AB; +} +/* latin-ext */ +@font-face { + font-family: 'Open Sans'; + font-style: normal; + font-weight: 700; + src: local('Open Sans Bold'), local('OpenSans-Bold'), url(https://fonts.gstatic.com/s/opensans/v13/k3k702ZOKiLJc3WVjuplzIjoYw3YTyktCCer_ilOlhE.woff2) format('woff2'); + unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF; +} +/* latin */ +@font-face { + font-family: 'Open Sans'; + font-style: normal; + font-weight: 700; + src: local('Open Sans Bold'), local('OpenSans-Bold'), url(https://fonts.gstatic.com/s/opensans/v13/k3k702ZOKiLJc3WVjuplzBampu5_7CjHW5spxoeN3Vs.woff2) format('woff2'); + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215; +} diff --git a/docs/landing/_site/favicon.ico b/docs/landing/_site/favicon.ico Binary files differnew file mode 100644 index 000000000..3a3fe3f52 --- /dev/null +++ b/docs/landing/_site/favicon.ico diff --git a/docs/landing/_site/img/alipay.png b/docs/landing/_site/img/alipay.png Binary files differnew file mode 100644 index 000000000..bc1088d0f --- /dev/null +++ b/docs/landing/_site/img/alipay.png diff --git a/docs/landing/_site/img/donate.gif b/docs/landing/_site/img/donate.gif Binary files differnew file mode 100644 index 000000000..d6df5107e --- /dev/null +++ b/docs/landing/_site/img/donate.gif diff --git a/docs/landing/_site/img/patreon.png b/docs/landing/_site/img/patreon.png Binary files differnew file mode 100644 index 000000000..aa0e4aee1 --- /dev/null +++ b/docs/landing/_site/img/patreon.png diff --git a/docs/landing/_site/img/paypal.png b/docs/landing/_site/img/paypal.png Binary files differnew file mode 100644 index 000000000..780c84f6c --- /dev/null +++ b/docs/landing/_site/img/paypal.png diff --git a/docs/landing/_site/img/weixin.png b/docs/landing/_site/img/weixin.png Binary files differnew file mode 100644 index 000000000..1b1880b94 --- /dev/null +++ b/docs/landing/_site/img/weixin.png diff --git a/docs/landing/_site/index.html b/docs/landing/_site/index.html new file mode 100644 index 000000000..be04da79a --- /dev/null +++ b/docs/landing/_site/index.html @@ -0,0 +1,150 @@ +<!DOCTYPE html> +<html lang="en-us"> + + <head> + <meta charset="UTF-8"> + <title>xmake</title> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <meta name="theme-color" content="#157878"> + <meta name="description" content="A make-like build utility based on Lua"> + <meta name="keywords" content="make,makefile,build,lua,cross-compile,linux" /> + + <link rel="stylesheet" href="/landing/_site/css/normalize.css"> + <link rel='stylesheet' href="/landing/_site/css/opensans.css" type='text/css'> + <link rel="stylesheet" href="/landing/_site/css/cayman.css"> + + <!-- baidu stats --> + <script> + var _hmt = _hmt || []; + (function() { + var hm = document.createElement("script"); + hm.src = "//hm.baidu.com/hm.js?eb3c91c672a001d78a113bfb8e42017a"; + var s = document.getElementsByTagName("script")[0]; + s.parentNode.insertBefore(hm, s); + })(); + </script> +</head> + + + <body> + <section class="page-header"> + <h1 class="project-name">xmake</h1> + <h2 class="project-tagline">A make-like build utility based on Lua</h2> + <a href="/#/home" class="btn">GET STARTED</a> + <br><br> + <iframe src="https://ghbtns.com/github-btn.html?user=tboox&repo=xmake&type=star&count=true" frameborder="0" scrolling="0" width="110px" height="20px"></iframe> + <span class="donate" style="width: 100px"> + <img src="/landing/_site/img/patreon.png"> + <a href="/landing/_site/pages/donation.html#donate">Support us</a> + </span> + <br><br> + <ul id="translations"> + <li><a href="/landing/_site/cn/" class="nav-link">中文</a></li> + <li class="delimiter">|</li> + <li><a href="/landing/_site/" class="nav-link">English</a></li> + </ul> +</section> + + + + <section class="main-content"> + + <h2 id="simple-description">Simple description</h2> + +<div class="language-lua highlighter-rouge"><pre class="highlight"><code><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> +</code></pre> +</div> + +<h2 id="build-project">Build project</h2> + +<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>xmake +</code></pre> +</div> + +<h2 id="run-target">Run target</h2> + +<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>xmake run console +</code></pre> +</div> + +<h2 id="debug-target">Debug target</h2> + +<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>xmake run -d console +</code></pre> +</div> + +<h2 id="support-features">Support features</h2> + +<ul> + <li>Tasks</li> + <li>Macros</li> + <li>Actions</li> + <li>Options</li> + <li>Plugins</li> + <li>Templates</li> +</ul> + +<h2 id="support-platforms">Support platforms</h2> + +<ul> + <li>Windows (x86, x64, amd64, x86_amd64)</li> + <li>Macosx (i386, x86_64)</li> + <li>Linux (i386, x86_64, cross-toolchains …)</li> + <li>Android (armv5te, armv6, armv7-a, armv8-a, arm64-v8a)</li> + <li>iPhoneOS (armv7, armv7s, arm64, i386, x86_64)</li> + <li>WatchOS (armv7k, i386)</li> + <li>Mingw (i386, x86_64)</li> +</ul> + +<h2 id="support-languages">Support Languages</h2> + +<ul> + <li>C/C++</li> + <li>Objc/Objc++</li> + <li>Swift</li> + <li>Assembly</li> +</ul> + +<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 - vs2015 .. )</li> + <li>Generate doxygen document plugin</li> + <li>Convert .app to .ipa plugin</li> +</ul> + +<h2 id="examples">Examples</h2> + +<p><a href="https://github.com/tboox/xmake"><img src="http://tboox.org/static/img/xmake/usage_demo.gif" alt="usage_demo" /></a></p> + +<h2 id="contacts">Contacts</h2> + +<ul> + <li>Email:<a href="mailto:[email protected]">[email protected]</a></li> + <li>Homepage:<a href="http://www.tboox.org/cn">TBOOX Open Source Project</a></li> + <li>Community:<a href="http://www.tboox.org/forum">TBOOX Open Source Community</a></li> + <li>ChatRoom:<a href="https://gitter.im/waruqi/tboox?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge"><img src="https://badges.gitter.im/waruqi/tboox.svg" alt="Join the chat at https://gitter.im/waruqi/tboox" /></a></li> +</ul> + + + <footer class="site-footer"> + <span class="site-footer-owner">Copyright (c) 2016 <a href="http://www.tboox.org">tboox.org</a>.</span> + <span class="site-footer-power"> + <span> + Site powered by <a href="https://jekyllrb.com/">Jekyll</a> & <a href="http://pages.coding.me">Coding Pages</a>. + </span> + <span> + Theme designed by <a href="https://github.com/pietromenna/jekyll-cayman-theme">cayman</a>. + </span> +</span> +</footer> + + + </section> + + </body> +</html> diff --git a/docs/landing/_site/pages/donation.html b/docs/landing/_site/pages/donation.html new file mode 100644 index 000000000..2476643fa --- /dev/null +++ b/docs/landing/_site/pages/donation.html @@ -0,0 +1,96 @@ +<!DOCTYPE html> +<html lang="en-us"> + + <head> + <meta charset="UTF-8"> + <title>xmake</title> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <meta name="theme-color" content="#157878"> + <meta name="description" content="A make-like build utility based on Lua"> + <meta name="keywords" content="make,makefile,build,lua,cross-compile,linux" /> + + <link rel="stylesheet" href="/landing/_site/css/normalize.css"> + <link rel='stylesheet' href="/landing/_site/css/opensans.css" type='text/css'> + <link rel="stylesheet" href="/landing/_site/css/cayman.css"> + + <!-- baidu stats --> + <script> + var _hmt = _hmt || []; + (function() { + var hm = document.createElement("script"); + hm.src = "//hm.baidu.com/hm.js?eb3c91c672a001d78a113bfb8e42017a"; + var s = document.getElementsByTagName("script")[0]; + s.parentNode.insertBefore(hm, s); + })(); + </script> +</head> + + + <body> + <section class="page-header"> + <h1 class="project-name">xmake</h1> + <h2 class="project-tagline">A make-like build utility based on Lua</h2> + <a href="/#/home" class="btn">GET STARTED</a> + <br><br> + <iframe src="https://ghbtns.com/github-btn.html?user=tboox&repo=xmake&type=star&count=true" frameborder="0" scrolling="0" width="110px" height="20px"></iframe> + <span class="donate" style="width: 100px"> + <img src="/landing/_site/img/patreon.png"> + <a href="/landing/_site/pages/donation.html#donate">Support us</a> + </span> + <br><br> + <ul id="translations"> + <li><a href="/landing/_site/cn/" class="nav-link">中文</a></li> + <li class="delimiter">|</li> + <li><a href="/landing/_site/" class="nav-link">English</a></li> + </ul> +</section> + + + + <section class="main-content"> + + <div id="donate"></div> + +<p>The xmake projects is a personal open source projects, their development need your help.</p> + +<p>If you would like to support the development of xmake, welcome to donate to us.</p> + +<h2 id="paypal">Paypal</h2> + +<p><a href="http://paypal.me/tboox/5"><img src="/img/paypal.png" alt="Paypal Me" /></a></p> + +<h2 id="alipay">Alipay</h2> + +<p><img src="/landing/_site/img/alipay.png" alt="alipay" width="256" height="256" /></p> + +<h2 id="weixin">Weixin</h2> + +<p><img src="/landing/_site/img/weixin.png" alt="weixin" width="218" height="218" /></p> + +<h2 id="supporters">Supporters</h2> + +<p>2016.11.10</p> + +<ul> + <li><a href="https://github.com/lc-soft">lc-soft</a>: ¥10</li> +</ul> + + + + <footer class="site-footer"> + <span class="site-footer-owner">Copyright (c) 2016 <a href="http://www.tboox.org">tboox.org</a>.</span> + <span class="site-footer-power"> + <span> + Site powered by <a href="https://jekyllrb.com/">Jekyll</a> & <a href="http://pages.coding.me">Coding Pages</a>. + </span> + <span> + Theme designed by <a href="https://github.com/pietromenna/jekyll-cayman-theme">cayman</a>. + </span> +</span> +</footer> + + + </section> + + </body> +</html> diff --git a/docs/landing/css/cayman.css b/docs/landing/css/cayman.css new file mode 100755 index 000000000..b67d1e8fa --- /dev/null +++ b/docs/landing/css/cayman.css @@ -0,0 +1,320 @@ +* { + box-sizing: border-box; } + +body { + padding: 0; + margin: 0; + font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; + font-size: 16px; + line-height: 1.5; + color: #606c71; } + +a { + color: #1e6bb8; + text-decoration: none; } + a:hover { + text-decoration: underline; } + +.btn { + display: inline-block; + margin-bottom: 1rem; + color: rgba(255, 255, 255, 0.7); + background-color: rgba(255, 255, 255, 0.08); + border-color: rgba(255, 255, 255, 0.2); + border-style: solid; + border-width: 1px; + border-radius: 0.3rem; + transition: color 0.2s, background-color 0.2s, border-color 0.2s; } + .btn:hover { + color: rgba(255, 255, 255, 0.8); + text-decoration: none; + background-color: rgba(255, 255, 255, 0.2); + border-color: rgba(255, 255, 255, 0.3); } + .btn + .btn { + margin-left: 1rem; } + @media screen and (min-width: 64em) { + .btn { + padding: 0.75rem 1rem; } } + @media screen and (min-width: 42em) and (max-width: 64em) { + .btn { + padding: 0.6rem 0.9rem; + font-size: 0.9rem; } } + @media screen and (max-width: 42em) { + .btn { + display: block; + width: 100%; + padding: 0.75rem; + font-size: 0.9rem; } + .btn + .btn { + margin-top: 1rem; + margin-left: 0; } } + +.page-header { + color: #fff; + text-align: center; + background-color: #159957; + background-image: linear-gradient(120deg, #155799, #159957); } + @media screen and (min-width: 64em) { + .page-header { + padding: 5rem 6rem; } } + @media screen and (min-width: 42em) and (max-width: 64em) { + .page-header { + padding: 3rem 4rem; } } + @media screen and (max-width: 42em) { + .page-header { + padding: 2rem 1rem; } } + +.project-name { + margin-top: 0; + margin-bottom: 0.1rem; } + @media screen and (min-width: 64em) { + .project-name { + font-size: 3.25rem; } } + @media screen and (min-width: 42em) and (max-width: 64em) { + .project-name { + font-size: 2.25rem; } } + @media screen and (max-width: 42em) { + .project-name { + font-size: 1.75rem; } } + +.project-tagline { + margin-bottom: 2rem; + font-weight: normal; + opacity: 0.7; } + @media screen and (min-width: 64em) { + .project-tagline { + font-size: 1.25rem; } } + @media screen and (min-width: 42em) and (max-width: 64em) { + .project-tagline { + font-size: 1.15rem; } } + @media screen and (max-width: 42em) { + .project-tagline { + font-size: 1rem; } } + +.main-content { + word-wrap: break-word; } + .main-content :first-child { + margin-top: 0; } + @media screen and (min-width: 64em) { + .main-content { + max-width: 64rem; + padding: 2rem 6rem; + margin: 0 auto; + font-size: 1.1rem; } } + @media screen and (min-width: 42em) and (max-width: 64em) { + .main-content { + padding: 2rem 4rem; + font-size: 1.1rem; } } + @media screen and (max-width: 42em) { + .main-content { + padding: 2rem 1rem; + font-size: 1rem; } } + .main-content img { + max-width: 100%; } + .main-content h1, + .main-content h2, + .main-content h3, + .main-content h4, + .main-content h5, + .main-content h6 { + margin-top: 2rem; + margin-bottom: 1rem; + font-weight: normal; + color: #159957; } + .main-content p { + margin-bottom: 1em; } + .main-content code { + padding: 2px 4px; + font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace; + font-size: 0.9rem; + color: #567482; + background-color: #f3f6fa; + border-radius: 0.3rem; } + .main-content pre { + padding: 0.8rem; + margin-top: 0; + margin-bottom: 1rem; + font: 1rem Consolas, "Liberation Mono", Menlo, Courier, monospace; + color: #567482; + word-wrap: normal; + background-color: #f3f6fa; + border: solid 1px #dce6f0; + border-radius: 0.3rem; } + .main-content pre > code { + padding: 0; + margin: 0; + font-size: 0.9rem; + color: #567482; + word-break: normal; + white-space: pre; + background: transparent; + border: 0; } + .main-content .highlight { + margin-bottom: 1rem; } + .main-content .highlight pre { + margin-bottom: 0; + word-break: normal; } + .main-content .highlight pre, + .main-content pre { + padding: 0.8rem; + overflow: auto; + font-size: 0.9rem; + line-height: 1.45; + border-radius: 0.3rem; + -webkit-overflow-scrolling: touch; } + .main-content pre code, + .main-content pre tt { + display: inline; + max-width: initial; + padding: 0; + margin: 0; + overflow: initial; + line-height: inherit; + word-wrap: normal; + background-color: transparent; + border: 0; } + .main-content pre code:before, .main-content pre code:after, + .main-content pre tt:before, + .main-content pre tt:after { + content: normal; } + .main-content ul, + .main-content ol { + margin-top: 0; } + .main-content blockquote { + padding: 0 1rem; + margin-left: 0; + color: #819198; + border-left: 0.3rem solid #dce6f0; } + .main-content blockquote > :first-child { + margin-top: 0; } + .main-content blockquote > :last-child { + margin-bottom: 0; } + .main-content table { + display: block; + width: 100%; + overflow: auto; + word-break: normal; + word-break: keep-all; + -webkit-overflow-scrolling: touch; } + .main-content table th { + font-weight: bold; } + .main-content table th, + .main-content table td { + padding: 0.5rem 1rem; + border: 1px solid #e9ebec; } + .main-content dl { + padding: 0; } + .main-content dl dt { + padding: 0; + margin-top: 1rem; + font-size: 1rem; + font-weight: bold; } + .main-content dl dd { + padding: 0; + margin-bottom: 1rem; } + .main-content hr { + height: 2px; + padding: 0; + margin: 1rem 0; + background-color: #eff0f1; + border: 0; } + +.site-footer { + padding-top: 2rem; + margin-top: 2rem; + border-top: solid 1px #eff0f1; } + @media screen and (min-width: 64em) { + .site-footer { + font-size: 1rem; } } + @media screen and (min-width: 42em) and (max-width: 64em) { + .site-footer { + font-size: 1rem; } } + @media screen and (max-width: 42em) { + .site-footer { + font-size: 0.9rem; } } + +.site-footer-owner { + display: block; + text-align:center; + font-weight: bold; } + +.site-footer-power { + display: block; + font-size: 0.6rem; + text-align:center;} + +.site-footer-credits { + color: #819198; } + +.donate { + vertical-align: top; + height: 20px; + border: 1px solid #d4d4d4; + display: inline-block; + box-sizing: border-box; + line-height: 16px; + border-radius: 3px; + cursor: pointer; + background-image: linear-gradient(to bottom, #fcfcfc 0, #eee 100%); + position: relative; + width: 72px; +} +.donate:hover { + border-color: #ccc; + background-image: linear-gradient(to bottom, #eee 0, #ddd 100%); +} +.donate img { + width: 14px; + height: 14px; + position: absolute; + top: 2px; + left: 5px; +} +.donate a { + font: 700 11px/14px 'Helvetica Neue', Helvetica, Arial, sans-serif; + color: #333; + text-shadow: 0 1px 0 #fff; + position: absolute; + top: 2px; + left: 24px; +} + +#nav, +#translations { + list-style-type: none; + text-align: center; + padding: 0; + margin: 0; +} +#nav li, +#translations li { + display: inline-block; + position: relative; + line-height: 40px; +} +#nav li:last-child .nav-link, +#translations li:last-child .nav-link { + margin-right: 0; +} +#translations { + margin-bottom: 0em; +} +#translations .delimiter { + color: #7f8c8d; + margin: 0 5px; +} +#translations .nav-link { + margin: 0; +} +.nav-link { + color: #7f8c8d; + padding-bottom: 3px; + margin: 0 1.5em; +} +.nav-link:first-child { + margin-left: 0; +} +.nav-link:hover, +.nav-link.current { + border-bottom: 3px solid #42b983; +} diff --git a/docs/landing/css/normalize.css b/docs/landing/css/normalize.css new file mode 100755 index 000000000..30366a6e9 --- /dev/null +++ b/docs/landing/css/normalize.css @@ -0,0 +1,424 @@ +/*! normalize.css v3.0.2 | MIT License | git.io/normalize */ + +/** + * 1. Set default font family to sans-serif. + * 2. Prevent iOS text size adjust after orientation change, without disabling + * user zoom. + */ + +html { + font-family: sans-serif; /* 1 */ + -ms-text-size-adjust: 100%; /* 2 */ + -webkit-text-size-adjust: 100%; /* 2 */ +} + +/** + * Remove default margin. + */ + +body { + margin: 0; +} + +/* HTML5 display definitions + ========================================================================== */ + +/** + * Correct `block` display not defined for any HTML5 element in IE 8/9. + * Correct `block` display not defined for `details` or `summary` in IE 10/11 + * and Firefox. + * Correct `block` display not defined for `main` in IE 11. + */ + +article, +aside, +details, +figcaption, +figure, +footer, +header, +hgroup, +main, +menu, +nav, +section, +summary { + display: block; +} + +/** + * 1. Correct `inline-block` display not defined in IE 8/9. + * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera. + */ + +audio, +canvas, +progress, +video { + display: inline-block; /* 1 */ + vertical-align: baseline; /* 2 */ +} + +/** + * Prevent modern browsers from displaying `audio` without controls. + * Remove excess height in iOS 5 devices. + */ + +audio:not([controls]) { + display: none; + height: 0; +} + +/** + * Address `[hidden]` styling not present in IE 8/9/10. + * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22. + */ + +[hidden], +template { + display: none; +} + +/* Links + ========================================================================== */ + +/** + * Remove the gray background color from active links in IE 10. + */ + +a { + background-color: transparent; +} + +/** + * Improve readability when focused and also mouse hovered in all browsers. + */ + +a:active, +a:hover { + outline: 0; +} + +/* Text-level semantics + ========================================================================== */ + +/** + * Address styling not present in IE 8/9/10/11, Safari, and Chrome. + */ + +abbr[title] { + border-bottom: 1px dotted; +} + +/** + * Address style set to `bolder` in Firefox 4+, Safari, and Chrome. + */ + +b, +strong { + font-weight: bold; +} + +/** + * Address styling not present in Safari and Chrome. + */ + +dfn { + font-style: italic; +} + +/** + * Address variable `h1` font-size and margin within `section` and `article` + * contexts in Firefox 4+, Safari, and Chrome. + */ + +h1 { + font-size: 2em; + margin: 0.67em 0; +} + +/** + * Address styling not present in IE 8/9. + */ + +mark { + background: #ff0; + color: #000; +} + +/** + * Address inconsistent and variable font size in all browsers. + */ + +small { + font-size: 80%; +} + +/** + * Prevent `sub` and `sup` affecting `line-height` in all browsers. + */ + +sub, +sup { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; +} + +sup { + top: -0.5em; +} + +sub { + bottom: -0.25em; +} + +/* Embedded content + ========================================================================== */ + +/** + * Remove border when inside `a` element in IE 8/9/10. + */ + +img { + border: 0; +} + +/** + * Correct overflow not hidden in IE 9/10/11. + */ + +svg:not(:root) { + overflow: hidden; +} + +/* Grouping content + ========================================================================== */ + +/** + * Address margin not present in IE 8/9 and Safari. + */ + +figure { + margin: 1em 40px; +} + +/** + * Address differences between Firefox and other browsers. + */ + +hr { + box-sizing: content-box; + height: 0; +} + +/** + * Contain overflow in all browsers. + */ + +pre { + overflow: auto; +} + +/** + * Address odd `em`-unit font size rendering in all browsers. + */ + +code, +kbd, +pre, +samp { + font-family: monospace, monospace; + font-size: 1em; +} + +/* Forms + ========================================================================== */ + +/** + * Known limitation: by default, Chrome and Safari on OS X allow very limited + * styling of `select`, unless a `border` property is set. + */ + +/** + * 1. Correct color not being inherited. + * Known issue: affects color of disabled elements. + * 2. Correct font properties not being inherited. + * 3. Address margins set differently in Firefox 4+, Safari, and Chrome. + */ + +button, +input, +optgroup, +select, +textarea { + color: inherit; /* 1 */ + font: inherit; /* 2 */ + margin: 0; /* 3 */ +} + +/** + * Address `overflow` set to `hidden` in IE 8/9/10/11. + */ + +button { + overflow: visible; +} + +/** + * Address inconsistent `text-transform` inheritance for `button` and `select`. + * All other form control elements do not inherit `text-transform` values. + * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera. + * Correct `select` style inheritance in Firefox. + */ + +button, +select { + text-transform: none; +} + +/** + * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio` + * and `video` controls. + * 2. Correct inability to style clickable `input` types in iOS. + * 3. Improve usability and consistency of cursor style between image-type + * `input` and others. + */ + +button, +html input[type="button"], /* 1 */ +input[type="reset"], +input[type="submit"] { + -webkit-appearance: button; /* 2 */ + cursor: pointer; /* 3 */ +} + +/** + * Re-set default cursor for disabled elements. + */ + +button[disabled], +html input[disabled] { + cursor: default; +} + +/** + * Remove inner padding and border in Firefox 4+. + */ + +button::-moz-focus-inner, +input::-moz-focus-inner { + border: 0; + padding: 0; +} + +/** + * Address Firefox 4+ setting `line-height` on `input` using `!important` in + * the UA stylesheet. + */ + +input { + line-height: normal; +} + +/** + * It's recommended that you don't attempt to style these elements. + * Firefox's implementation doesn't respect box-sizing, padding, or width. + * + * 1. Address box sizing set to `content-box` in IE 8/9/10. + * 2. Remove excess padding in IE 8/9/10. + */ + +input[type="checkbox"], +input[type="radio"] { + box-sizing: border-box; /* 1 */ + padding: 0; /* 2 */ +} + +/** + * Fix the cursor style for Chrome's increment/decrement buttons. For certain + * `font-size` values of the `input`, it causes the cursor style of the + * decrement button to change from `default` to `text`. + */ + +input[type="number"]::-webkit-inner-spin-button, +input[type="number"]::-webkit-outer-spin-button { + height: auto; +} + +/** + * 1. Address `appearance` set to `searchfield` in Safari and Chrome. + * 2. Address `box-sizing` set to `border-box` in Safari and Chrome + * (include `-moz` to future-proof). + */ + +input[type="search"] { + -webkit-appearance: textfield; /* 1 */ /* 2 */ + box-sizing: content-box; +} + +/** + * Remove inner padding and search cancel button in Safari and Chrome on OS X. + * Safari (but not Chrome) clips the cancel button when the search input has + * padding (and `textfield` appearance). + */ + +input[type="search"]::-webkit-search-cancel-button, +input[type="search"]::-webkit-search-decoration { + -webkit-appearance: none; +} + +/** + * Define consistent border, margin, and padding. + */ + +fieldset { + border: 1px solid #c0c0c0; + margin: 0 2px; + padding: 0.35em 0.625em 0.75em; +} + +/** + * 1. Correct `color` not being inherited in IE 8/9/10/11. + * 2. Remove padding so people aren't caught out if they zero out fieldsets. + */ + +legend { + border: 0; /* 1 */ + padding: 0; /* 2 */ +} + +/** + * Remove default vertical scrollbar in IE 8/9/10/11. + */ + +textarea { + overflow: auto; +} + +/** + * Don't inherit the `font-weight` (applied by a rule above). + * NOTE: the default cannot safely be changed in Chrome and Safari on OS X. + */ + +optgroup { + font-weight: bold; +} + +/* Tables + ========================================================================== */ + +/** + * Remove most spacing between table cells. + */ + +table { + border-collapse: collapse; + border-spacing: 0; +} + +td, +th { + padding: 0; +} diff --git a/docs/landing/css/opensans.css b/docs/landing/css/opensans.css new file mode 100644 index 000000000..ebac7ce81 --- /dev/null +++ b/docs/landing/css/opensans.css @@ -0,0 +1,112 @@ +/* cyrillic-ext */ +@font-face { + font-family: 'Open Sans'; + font-style: normal; + font-weight: 400; + src: local('Open Sans'), local('OpenSans'), url(https://fonts.gstatic.com/s/opensans/v13/K88pR3goAWT7BTt32Z01m4X0hVgzZQUfRDuZrPvH3D8.woff2) format('woff2'); + unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F; +} +/* cyrillic */ +@font-face { + font-family: 'Open Sans'; + font-style: normal; + font-weight: 400; + src: local('Open Sans'), local('OpenSans'), url(https://fonts.gstatic.com/s/opensans/v13/RjgO7rYTmqiVp7vzi-Q5UYX0hVgzZQUfRDuZrPvH3D8.woff2) format('woff2'); + unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; +} +/* greek-ext */ +@font-face { + font-family: 'Open Sans'; + font-style: normal; + font-weight: 400; + src: local('Open Sans'), local('OpenSans'), url(https://fonts.gstatic.com/s/opensans/v13/LWCjsQkB6EMdfHrEVqA1KYX0hVgzZQUfRDuZrPvH3D8.woff2) format('woff2'); + unicode-range: U+1F00-1FFF; +} +/* greek */ +@font-face { + font-family: 'Open Sans'; + font-style: normal; + font-weight: 400; + src: local('Open Sans'), local('OpenSans'), url(https://fonts.gstatic.com/s/opensans/v13/xozscpT2726on7jbcb_pAoX0hVgzZQUfRDuZrPvH3D8.woff2) format('woff2'); + unicode-range: U+0370-03FF; +} +/* vietnamese */ +@font-face { + font-family: 'Open Sans'; + font-style: normal; + font-weight: 400; + src: local('Open Sans'), local('OpenSans'), url(https://fonts.gstatic.com/s/opensans/v13/59ZRklaO5bWGqF5A9baEEYX0hVgzZQUfRDuZrPvH3D8.woff2) format('woff2'); + unicode-range: U+0102-0103, U+1EA0-1EF9, U+20AB; +} +/* latin-ext */ +@font-face { + font-family: 'Open Sans'; + font-style: normal; + font-weight: 400; + src: local('Open Sans'), local('OpenSans'), url(https://fonts.gstatic.com/s/opensans/v13/u-WUoqrET9fUeobQW7jkRYX0hVgzZQUfRDuZrPvH3D8.woff2) format('woff2'); + unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF; +} +/* latin */ +@font-face { + font-family: 'Open Sans'; + font-style: normal; + font-weight: 400; + src: local('Open Sans'), local('OpenSans'), url(https://fonts.gstatic.com/s/opensans/v13/cJZKeOuBrn4kERxqtaUH3ZBw1xU1rKptJj_0jans920.woff2) format('woff2'); + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215; +} +/* cyrillic-ext */ +@font-face { + font-family: 'Open Sans'; + font-style: normal; + font-weight: 700; + src: local('Open Sans Bold'), local('OpenSans-Bold'), url(https://fonts.gstatic.com/s/opensans/v13/k3k702ZOKiLJc3WVjuplzA7aC6SjiAOpAWOKfJDfVRY.woff2) format('woff2'); + unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F; +} +/* cyrillic */ +@font-face { + font-family: 'Open Sans'; + font-style: normal; + font-weight: 700; + src: local('Open Sans Bold'), local('OpenSans-Bold'), url(https://fonts.gstatic.com/s/opensans/v13/k3k702ZOKiLJc3WVjuplzBdwxCXfZpKo5kWAx_74bHs.woff2) format('woff2'); + unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; +} +/* greek-ext */ +@font-face { + font-family: 'Open Sans'; + font-style: normal; + font-weight: 700; + src: local('Open Sans Bold'), local('OpenSans-Bold'), url(https://fonts.gstatic.com/s/opensans/v13/k3k702ZOKiLJc3WVjuplzJ6vnaPZw6nYDxM4SVEMFKg.woff2) format('woff2'); + unicode-range: U+1F00-1FFF; +} +/* greek */ +@font-face { + font-family: 'Open Sans'; + font-style: normal; + font-weight: 700; + src: local('Open Sans Bold'), local('OpenSans-Bold'), url(https://fonts.gstatic.com/s/opensans/v13/k3k702ZOKiLJc3WVjuplzPy1_HTwRwgtl1cPga3Fy3Y.woff2) format('woff2'); + unicode-range: U+0370-03FF; +} +/* vietnamese */ +@font-face { + font-family: 'Open Sans'; + font-style: normal; + font-weight: 700; + src: local('Open Sans Bold'), local('OpenSans-Bold'), url(https://fonts.gstatic.com/s/opensans/v13/k3k702ZOKiLJc3WVjuplzPgrLsWo7Jk1KvZser0olKY.woff2) format('woff2'); + unicode-range: U+0102-0103, U+1EA0-1EF9, U+20AB; +} +/* latin-ext */ +@font-face { + font-family: 'Open Sans'; + font-style: normal; + font-weight: 700; + src: local('Open Sans Bold'), local('OpenSans-Bold'), url(https://fonts.gstatic.com/s/opensans/v13/k3k702ZOKiLJc3WVjuplzIjoYw3YTyktCCer_ilOlhE.woff2) format('woff2'); + unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF; +} +/* latin */ +@font-face { + font-family: 'Open Sans'; + font-style: normal; + font-weight: 700; + src: local('Open Sans Bold'), local('OpenSans-Bold'), url(https://fonts.gstatic.com/s/opensans/v13/k3k702ZOKiLJc3WVjuplzBampu5_7CjHW5spxoeN3Vs.woff2) format('woff2'); + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215; +} diff --git a/docs/landing/favicon.ico b/docs/landing/favicon.ico Binary files differnew file mode 100644 index 000000000..3a3fe3f52 --- /dev/null +++ b/docs/landing/favicon.ico diff --git a/docs/landing/img/alipay.png b/docs/landing/img/alipay.png Binary files differnew file mode 100644 index 000000000..bc1088d0f --- /dev/null +++ b/docs/landing/img/alipay.png diff --git a/docs/landing/img/donate.gif b/docs/landing/img/donate.gif Binary files differnew file mode 100644 index 000000000..d6df5107e --- /dev/null +++ b/docs/landing/img/donate.gif diff --git a/docs/landing/img/patreon.png b/docs/landing/img/patreon.png Binary files differnew file mode 100644 index 000000000..aa0e4aee1 --- /dev/null +++ b/docs/landing/img/patreon.png diff --git a/docs/landing/img/paypal.png b/docs/landing/img/paypal.png Binary files differnew file mode 100644 index 000000000..780c84f6c --- /dev/null +++ b/docs/landing/img/paypal.png diff --git a/docs/landing/img/weixin.png b/docs/landing/img/weixin.png Binary files differnew file mode 100644 index 000000000..1b1880b94 --- /dev/null +++ b/docs/landing/img/weixin.png diff --git a/docs/landing/index.cn.md b/docs/landing/index.cn.md new file mode 100755 index 000000000..9f2ede70d --- /dev/null +++ b/docs/landing/index.cn.md @@ -0,0 +1,77 @@ +--- +layout: default.cn +title: {{ site.name }} +--- + +## 简单的工程描述 + +```lua +target("console") + set_kind("binary") + add_files("src/*.c") +``` + +## 构建工程 + +```bash +$ xmake +``` + +## 运行目标 + +```bash +$ xmake run console +``` + +## 调试程序 + +```bash +$ xmake run -d console +``` + +## 支持特性 + +* Tasks +* Macros +* Actions +* Options +* Plugins +* Templates + +## 支持平台 + +* Windows (x86, x64, amd64, x86_amd64) +* Macosx (i386, x86_64) +* Linux (i386, x86_64, cross-toolchains ...) +* Android (armv5te, armv6, armv7-a, armv8-a, arm64-v8a) +* iPhoneOS (armv7, armv7s, arm64, i386, x86_64) +* WatchOS (armv7k, i386) +* Mingw (i386, x86_64) + +## 支持语言 + +* C/C++ +* Objc/Objc++ +* Swift +* Assembly + +## 内置插件 + +* 宏记录脚本和回放插件 +* 加载自定义lua脚本插件 +* 生成IDE工程文件插件(makefile, vs2002 - vs2015, ...) +* 生成doxygen文档插件 +* iOS app2ipa插件 + +## 使用演示 + +[](https://github.com/tboox/xmake) + +## 联系方式 + +* 邮箱:[[email protected]](mailto:[email protected]) +* 主页:[TBOOX开源工程](http://www.tboox.org/cn) +* 社区:[TBOOX开源社区](http://www.tboox.org/forum) +* 聊天:[](https://gitter.im/waruqi/tboox?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) +* QQ群:343118190 +* 微信公众号:tboox-os diff --git a/docs/landing/index.md b/docs/landing/index.md new file mode 100755 index 000000000..e2f474453 --- /dev/null +++ b/docs/landing/index.md @@ -0,0 +1,75 @@ +--- +layout: default +title: {{ site.name }} +--- + +## Simple description + +```lua +target("console") + set_kind("binary") + add_files("src/*.c") +``` + +## Build project + +```bash +$ xmake +``` + +## Run target + +```bash +$ xmake run console +``` + +## Debug target + +```bash +$ xmake run -d console +``` + +## Support features + +* Tasks +* Macros +* Actions +* Options +* Plugins +* Templates + +## Support platforms + +* Windows (x86, x64, amd64, x86_amd64) +* Macosx (i386, x86_64) +* Linux (i386, x86_64, cross-toolchains ...) +* Android (armv5te, armv6, armv7-a, armv8-a, arm64-v8a) +* iPhoneOS (armv7, armv7s, arm64, i386, x86_64) +* WatchOS (armv7k, i386) +* Mingw (i386, x86_64) + +## Support Languages + +* C/C++ +* Objc/Objc++ +* Swift +* Assembly + +## Builtin Plugins + +* Macros script plugin +* Run the custom lua script plugin +* Generate IDE project file plugin(makefile, vs2002 - vs2015 .. ) +* Generate doxygen document plugin +* Convert .app to .ipa plugin + +## Examples + +[](https://github.com/tboox/xmake) + +## Contacts + +* Email:[[email protected]](mailto:[email protected]) +* Homepage:[TBOOX Open Source Project](http://www.tboox.org/cn) +* Community:[TBOOX Open Source Community](http://www.tboox.org/forum) +* ChatRoom:[](https://gitter.im/waruqi/tboox?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) diff --git a/docs/landing/pages/donation.cn.md b/docs/landing/pages/donation.cn.md new file mode 100755 index 000000000..ec9e775f5 --- /dev/null +++ b/docs/landing/pages/donation.cn.md @@ -0,0 +1,29 @@ +--- +layout: default.cn +title: {{ site.name }} +--- + +<div id="donate"></div> + +xmake项目属于个人开源项目,它的发展需要您的帮助,如果您愿意支持xmake项目的开发,欢迎为其捐赠,支持它的发展。 + +## 支付宝 + +<img src="{{site.baseurl}}/img/alipay.png" alt="alipay" width="256" height="256"> + + +## 微信 + +<img src="{{site.baseurl}}/img/weixin.png" alt="weixin" width="218" height="218"> + +## Paypal + +[](http://paypal.me/tboox/5) + +## 捐助者名单 + +2016.11.10 + +* [lc-soft](https://github.com/lc-soft): ¥10 + diff --git a/docs/landing/pages/donation.md b/docs/landing/pages/donation.md new file mode 100755 index 000000000..ff0d58468 --- /dev/null +++ b/docs/landing/pages/donation.md @@ -0,0 +1,29 @@ +--- +layout: default +title: {{ site.name }} +--- + +<div id="donate"></div> + +The xmake projects is a personal open source projects, their development need your help. + +If you would like to support the development of xmake, welcome to donate to us. + +## Paypal + +[](http://paypal.me/tboox/5) + +## Alipay + +<img src="{{site.baseurl}}/img/alipay.png" alt="alipay" width="256" height="256"> + +## Weixin + +<img src="{{site.baseurl}}/img/weixin.png" alt="weixin" width="218" height="218"> + +## Supporters + +2016.11.10 + +* [lc-soft](https://github.com/lc-soft): ¥10 + diff --git a/docs/plugins.md b/docs/plugins.md new file mode 100644 index 000000000..616f7068c --- /dev/null +++ b/docs/plugins.md @@ -0,0 +1,4 @@ +--- +search: english +--- + diff --git a/docs/zh/README.md b/docs/zh/README.md new file mode 100755 index 000000000..eb9003947 --- /dev/null +++ b/docs/zh/README.md @@ -0,0 +1,267 @@ +--- +nav: zh +search: zh +--- + +# 一个基于Lua的轻量级跨平台自动构建工具 + +[](https://travis-ci.org/tboox/xmake) [](https://ci.appveyor.com/project/waruqi/xmake/branch/master) [](https://gitter.im/waruqi/tboox?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [](http://xmake.io/pages/donation.html#donate) + +## 简介 + +XMake是一个基于Lua的轻量级跨平台自动构建工具,支持在各种主流平台上构建项目 + +xmake的目标是开发者更加关注于项目本身开发,简化项目的描述和构建,并且提供平台无关性,使得一次编写,随处构建 + +它跟cmake、automake、premake有点类似,但是机制不同,它默认不会去生成IDE相关的工程文件,采用直接编译,并且更加的方便易用 +采用lua的工程描述语法更简洁直观,支持在大部分常用平台上进行构建,以及交叉编译 + +并且xmake提供了创建、配置、编译、打包、安装、卸载、运行等一些actions,使得开发和构建更加的方便和流程化。 + +不仅如此,它还提供了许多更加高级的特性,例如插件扩展、脚本宏记录、批量打包、自动文档生成等等。。 + +如果你想要了解更多,请参考: + +* [在线文档](https://github.com/waruqi/xmake/wiki/%E7%9B%AE%E5%BD%95) +* [在线源码](https://github.com/waruqi/xmake) +* [项目主页](http://www.xmake.io/cn) + +#### 支持特性 + +- 支持windows、mac、linux、ios、android等平台,自动检测不同平台上的编译工具链(也可手动配置) + 编译windows项目采用原生vs的工具链,不需要使用cygwin、mingw(当然这些也支持) + +- 支持自定义平台编译配置,可以很方便的扩展第三方平台支持 + +- 采用lua脚本语法描述项目,描述规则简单高效,逻辑规则可灵活修改,并且不会生成相关平台的工程文件,是工程更加简单明了 + +- 支持创建模板工程、配置项目、编译项目、运行、打包、安装和卸载等常用功能(后续还会增加:自动生成文档、调试等模块) + +- 支持编译c/c++/objc/swift成静态库、动态库、命令行可执行程序 + +- 提供丰富的工程描述api,使用简单灵活,例如添加编译文件只需(还支持过滤排除): + + `add_files("src/*.c", "src/asm/**.S", "src/*.m")` + +- 支持头文件、接口、链接库依赖、类型的自动检测,并可自动生成配置头文件config.h + +- 支持自定义编译配置开关,例如如果在工程描述文件中增加了`enable_xxx`的开关,那么配置编译的时候就可以手动进行配置来启用它: + + `xmake config --enable_xxx=y` + +- 提供一键打包功能,不管在哪个平台上进行打包,都只需要执行一条相同的命令,非常的方便 + +- 支持全局配置,一些常用的项目配置,例如工具链、规则描述等等,都可以进行全局配置,这样就不需要每次编译不同工程,都去配置一遍 + +- 除了可以自动检测依赖模块,也支持手动强制配置模块,还有各种编译flags。 + +- 支持插件扩展、平台扩展、模板扩展、选项自定义等高级功能 + +- 提供一些内置的常用插件(例如:自动生成doxygen文档插件,宏脚本记录和运行插件) + +- 宏记录插件里面提供了一些内置的宏脚本(例如:批量打包一个平台的所有archs等),也可以在命令行中手动记录宏并回放执行 + +- 提供强大的task任务机制 + +- 不依赖makefile和make,实现直接编译,内置自动多任务加速编译, xmake是一个真正的构架工具,而不仅仅是一个工程文件生成器 + +- 自动检测ccache,进行自动缓存提升构建速度 + +- 自动检测头文件依赖,并且快速自动构建修改的文件 + +- 调试器支持,实现直接加载运行调试 + +- 提供产生IDE工程文件的插件(支持vs2002 - vs2017) + +#### 常用Actions + +- config: 构建之前的编译参数配置 +- global: 配置一些全局参数 +- build: 构建项目 +- clean: 清理一些二进制文件、临时文件 +- create: 使用模板创建新工程 +- package: 打包指定目标 +- install: 安装编译后的目标文件 +- uninstall: 卸载安装的所有文件 +- run: 运行可执行的项目目标 + +#### 一些内置插件 + +- doxygen文档生成插件: 从指定源码目录生成doxygen文档 +- 宏记录脚本插件: 记录和回放宏脚本,简化重复的命令操作(例如:批量打包。。) +- hello插件: 插件开发demo +- 工程文件生成插件: 创建IDE的工程文件 (目前支持:makefile, vs2002 - vs2017,后续支持:xcode等等) +- iOS app2ipa插件 + +#### 支持编译语言 + +- C/C++ +- Objc/Objc++ +- Swift +- Assembly + +#### 支持的构建平台 + +- Windows (x86, x64, amd64, x86_amd64) +- Macosx (i386, x86_64) +- Linux (i386, x86_64, cross-toolchains ...) +- Android (armv5te, armv6, armv7-a, armv8-a, arm64-v8a) +- iPhoneos (armv7, armv7s, arm64, i386, x86_64) +- Watchos (armv7k, i386) +- Mingw (i386, x86_64) + +#### 后续任务 + +- 自动包依赖管理和下载 +- 创建移植仓库,实现`一人移植,多人共享` +- 更多的插件开发(例如:Xcode工程生成,生成.deb, .rpm的安装包) + +#### 简单例子 + +[](http://www.xmake.io/cn) + +创建一个c++ console项目: + +```bash + xmake create -l c++ -t 1 console +or xmake create --language=c++ --template=1 console +``` + +工程描述文件:xmake.lua + +```lua +target("console") + set_kind("binary") + add_files("src/*.c") +``` + +配置工程: + + 这个是可选的步骤,如果只想编译当前主机平台的项目,是可以不用配置的,默认编译release版本。 + +```bash + xmake f -p iphoneos -m debug +or xmake f --plat=macosx --arch=x86_64 +or xmake f -p windows +or xmake config --plat=iphoneos --mode=debug +or xmake config --plat=android --arch=armv7-a --ndk=xxxxx +or xmake config -p linux -a i386 +or xmake config -p mingw --cross=i386-mingw32- --toolchains=/xxx/bin +or xmake config -p mingw --sdk=/mingwsdk +or xmake config --help +``` + +编译工程: + +```bash + xmake +or xmake -r +or xmake --rebuild +``` + +运行目标: + +```bash + xmake r console +or xmake run console +``` + +调试目标: + +```bash + xmake r -d console +or xmake run -d console +``` + +打包所有: + +```bash + xmake p +or xmake package +or xmake package console +or xmake package -o /tmp +or xmake package --output=/tmp +``` + +通过宏脚本打包所有架构: + +```bash + xmake m package +or xmake m package -p iphoneos +or xmake m package -p macosx -f "-m debug" -o /tmp/ +or xmake m package --help +``` + +安装目标: + +```bash + xmake i +or xmake install +or xmake install console +or xmake install -o /tmp +or xmake install --output=/tmp +``` + +详细使用方式和参数说明,请参考[文档](https://github.com/waruqi/xmake/wiki/%E7%9B%AE%E5%BD%95) +或者运行: + +```bash + xmake -h +or xmake --help +or xmake config --help +or xmake package --help +or xmake macro --help +... +``` + +#### 一些使用xmake的项目: + +* [tbox](https://github.com/waruqi/tbox) +* [gbox](https://github.com/waruqi/gbox) +* [libsvx](https://github.com/caikelun/libsvx) +* [更多项目](https://github.com/waruqi/xmake/wiki/%E4%BD%BF%E7%94%A8xmake%E7%9A%84%E5%BC%80%E6%BA%90%E5%BA%93) + +#### 简单例子 + +```c +-- the debug mode +if is_mode("debug") then + + -- enable the debug symbols + set_symbols("debug") + + -- disable optimization + set_optimize("none") +end + +-- the release mode +if is_mode("release") then + + -- set the symbols visibility: hidden + set_symbols("hidden") + + -- enable fastest optimization + set_optimize("fastest") + + -- strip all symbols + set_strip("all") +end + +-- add target +target("test") + + -- set kind + set_kind("static") + + -- add files + add_files("src/*.c") +``` + +#### 联系方式 + +* 邮箱:[[email protected]](mailto:[email protected]) +* 主页:[TBOOX开源工程](http://www.tboox.org/cn) +* 社区:[TBOOX开源社区](http://www.tboox.org/forum) +* QQ群:343118190 +* 微信公众号:tboox-os + diff --git a/docs/zh/apis.md b/docs/zh/apis.md new file mode 100755 index 000000000..5f50a7401 --- /dev/null +++ b/docs/zh/apis.md @@ -0,0 +1,5 @@ +--- +nav: zh +search: zh +--- + diff --git a/docs/zh/plugins.md b/docs/zh/plugins.md new file mode 100755 index 000000000..5f50a7401 --- /dev/null +++ b/docs/zh/plugins.md @@ -0,0 +1,5 @@ +--- +nav: zh +search: zh +--- + |
