aboutsummaryrefslogtreecommitdiff
path: root/cn
diff options
context:
space:
mode:
authorruki <waruqi@gmail.com>2019-06-21 22:32:41 +0800
committerruki <waruqi@gmail.com>2019-06-21 09:16:11 +0800
commit1587e4a8f2f04ae73ed770ee53b58d480b68f747 (patch)
treecb11b88fa416bcd5ac0902dd32099de1991ddbcf /cn
parent1e3bf498456a76a11592c30d8952d11277def5ac (diff)
downloadxmake-docs-1587e4a8f2f04ae73ed770ee53b58d480b68f747.tar.gz
xmake-docs-1587e4a8f2f04ae73ed770ee53b58d480b68f747.zip
init for docsify
Diffstat (limited to 'cn')
-rw-r--r--cn/index.html305
-rw-r--r--cn/pages/donation.html204
2 files changed, 0 insertions, 509 deletions
diff --git a/cn/index.html b/cn/index.html
deleted file mode 100644
index fdeddb90..00000000
--- a/cn/index.html
+++ /dev/null
@@ -1,305 +0,0 @@
-<!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="/assets/css/normalize.css">
- <link rel='stylesheet' href="/assets/css/opensans.css" type='text/css'>
- <link rel="stylesheet" href="/assets/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="/assets/img/patreon.png">
- <a href="/cn/pages/donation.html#donate">支持我们</a>
- </span>
- <br><br>
-<ul id="translations">
- <li><a href="/cn/" class="nav-link">中文</a></li>
- <li class="delimiter">|</li>
- <li><a href="/" class="nav-link">English</a></li>
- </ul>
-</section>
-
-
-
- <section class="main-content">
-
- <h2 id="section">安装</h2>
-
-<h4 id="curl">使用curl</h4>
-
-<div class="language-bash highlighter-rouge"><pre class="highlight"><code>bash &lt;<span class="o">(</span>curl -fsSL https://raw.githubusercontent.com/tboox/xmake/master/scripts/get.sh<span class="o">)</span>
-</code></pre>
-</div>
-
-<h4 id="wget">使用wget</h4>
-
-<div class="language-bash highlighter-rouge"><pre class="highlight"><code>bash &lt;<span class="o">(</span>wget https://raw.githubusercontent.com/tboox/xmake/master/scripts/get.sh -O -<span class="o">)</span>
-</code></pre>
-</div>
-
-<h4 id="powershell">使用powershell</h4>
-
-<div class="language-bash highlighter-rouge"><pre class="highlight"><code>Invoke-Expression <span class="o">(</span>Invoke-Webrequest <span class="s1">'https://raw.githubusercontent.com/tboox/xmake/master/scripts/get.ps1'</span> -UseBasicParsing<span class="o">)</span>.Content
-</code></pre>
-</div>
-
-<h2 id="section-1">简单的工程描述</h2>
-
-<p><img src="/assets/img/index/showcode1.png" width="40%" /></p>
-
-<h2 id="section-2">包依赖描述</h2>
-
-<p><img src="/assets/img/index/add_require.png" width="70%" /></p>
-
-<p>官方的xmake包管理仓库: <a href="https://github.com/xmake-io/xmake-repo">xmake-repo</a></p>
-
-<h2 id="section-3">构建工程</h2>
-
-<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>xmake
-</code></pre>
-</div>
-
-<h2 id="section-4">运行目标</h2>
-
-<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>xmake run console
-</code></pre>
-</div>
-
-<h2 id="section-5">调试程序</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-6">配置平台</h2>
-
-<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>xmake f -p <span class="o">[</span>windows|linux|macosx|android|iphoneos ..] -a <span class="o">[</span>x86|arm64 ..] -m <span class="o">[</span>debug|release]
-<span class="gp">$ </span>xmake
-</code></pre>
-</div>
-
-<h2 id="section-7">图形化菜单配置</h2>
-
-<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>xmake f --menu
-</code></pre>
-</div>
-
-<p><img src="/assets/img/index/menuconf.png" width="80%" /></p>
-
-<h2 id="section-8">包依赖管理</h2>
-
-<p><img src="/assets/img/index/package_manage.png" width="80%" /></p>
-
-<h2 id="section-9">支持平台</h2>
-
-<ul>
- <li>Windows (x86, x64)</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-10">支持语言</h2>
-
-<ul>
- <li>C/C++</li>
- <li>Objc/Objc++</li>
- <li>Swift</li>
- <li>Assembly</li>
- <li>Golang</li>
- <li>Rust</li>
- <li>Dlang</li>
- <li>Cuda</li>
-</ul>
-
-<h2 id="section-11">工程类型</h2>
-
-<ul>
- <li>静态库程序</li>
- <li>动态库类型</li>
- <li>控制台程序</li>
- <li>Cuda程序</li>
- <li>Qt应用程序</li>
- <li>WDK驱动程序</li>
- <li>WinSDK应用程序</li>
-</ul>
-
-<h2 id="section-12">内置插件</h2>
-
-<h4 id="section-13">宏记录脚本和回放插件</h4>
-
-<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>xmake m -b <span class="c"># 开始记录</span>
-<span class="gp">$ </span>xmake f -p iphoneos -m debug
-<span class="gp">$ </span>xmake
-<span class="gp">$ </span>xmake f -p android --ndk<span class="o">=</span>~/files/android-ndk-r16b
-<span class="gp">$ </span>xmake
-<span class="gp">$ </span>xmake m -e <span class="c"># 结束记录</span>
-<span class="gp">$ </span>xmake m . <span class="c"># 回放命令</span>
-</code></pre>
-</div>
-
-<h4 id="lua">加载自定义lua脚本插件</h4>
-
-<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>xmake l ./test.lua
-<span class="gp">$ </span>xmake l -c <span class="s2">"print('hello xmake!')"</span>
-<span class="gp">$ </span>xmake l lib.detect.find_tool gcc
-</code></pre>
-</div>
-
-<h4 id="idemakefile-vs2002---vs2017-">生成IDE工程文件插件(makefile, vs2002 - vs2017, …)</h4>
-
-<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>xmake project -k vs2017 -m <span class="s2">"debug,release"</span>
-</code></pre>
-</div>
-
-<h4 id="doxygen">生成doxygen文档插件</h4>
-
-<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>xmake doxygen <span class="o">[</span>srcdir]
-</code></pre>
-</div>
-
-<h2 id="section-14">更多插件</h2>
-
-<p>请到插件仓库进行下载安装: <a href="https://github.com/xmake-io/xmake-plugins">xmake-plugins</a>.</p>
-
-<h2 id="ide">IDE和编辑器插件</h2>
-
-<ul>
- <li><a href="https://github.com/xmake-io/xmake-vscode">xmake-vscode</a></li>
-</ul>
-
-<p><img src="https://raw.githubusercontent.com/tboox/xmake-vscode/master/res/problem.gif" width="60%" /></p>
-
-<ul>
- <li><a href="https://github.com/xmake-io/xmake-sublime">xmake-sublime</a></li>
-</ul>
-
-<p><img src="https://raw.githubusercontent.com/tboox/xmake-sublime/master/res/problem.gif" width="60%" /></p>
-
-<ul>
- <li><a href="https://github.com/xmake-io/xmake-idea">xmake-idea</a></li>
-</ul>
-
-<p><img src="https://raw.githubusercontent.com/tboox/xmake-idea/master/res/problem.gif" width="60%" /></p>
-
-<ul>
- <li><a href="https://github.com/luzhlon/xmake.vim">xmake.vim</a> (third-party, thanks <a href="https://github.com/luzhlon">@luzhlon</a>)</li>
-</ul>
-
-<h2 id="section-15">更多例子</h2>
-
-<p>Debug和Release模式:</p>
-
-<div class="language-lua highlighter-rouge"><pre class="highlight"><code><span class="n">add_rules</span><span class="p">(</span><span class="s2">"mode.debug"</span><span class="p">,</span> <span class="s2">"mode.release"</span><span class="p">)</span>
-
-<span class="n">target</span><span class="p">(</span><span class="s2">"console"</span><span class="p">)</span>
- <span class="n">set_kind</span><span class="p">(</span><span class="s2">"binary"</span><span class="p">)</span>
- <span class="n">add_files</span><span class="p">(</span><span class="s2">"src/*.c"</span><span class="p">)</span>
- <span class="k">if</span> <span class="n">is_mode</span><span class="p">(</span><span class="s2">"debug"</span><span class="p">)</span> <span class="k">then</span>
- <span class="n">add_defines</span><span class="p">(</span><span class="s2">"DEBUG"</span><span class="p">)</span>
- <span class="k">end</span>
-</code></pre>
-</div>
-
-<p>下载和使用远程依赖包:</p>
-
-<div class="language-lua highlighter-rouge"><pre class="highlight"><code><span class="n">add_requires</span><span class="p">(</span><span class="s2">"libuv master"</span><span class="p">,</span> <span class="s2">"ffmpeg"</span><span class="p">,</span> <span class="s2">"zlib 1.20.*"</span><span class="p">)</span>
-<span class="n">add_requires</span><span class="p">(</span><span class="s2">"tbox &gt;1.6.1"</span><span class="p">,</span> <span class="p">{</span><span class="n">optional</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span> <span class="n">debug</span> <span class="o">=</span> <span class="kc">true</span><span class="p">})</span>
-<span class="n">target</span><span class="p">(</span><span class="s2">"test"</span><span class="p">)</span>
- <span class="n">set_kind</span><span class="p">(</span><span class="s2">"shared"</span><span class="p">)</span>
- <span class="n">add_files</span><span class="p">(</span><span class="s2">"src/*.c"</span><span class="p">)</span>
- <span class="n">add_packages</span><span class="p">(</span><span class="s2">"libuv"</span><span class="p">,</span> <span class="s2">"ffmpeg"</span><span class="p">,</span> <span class="s2">"tbox"</span><span class="p">,</span> <span class="s2">"zlib"</span><span class="p">)</span>
-</code></pre>
-</div>
-
-<p>查找和使用本地已安装的包:</p>
-
-<div class="language-lua highlighter-rouge"><pre class="highlight"><code><span class="n">target</span><span class="p">(</span><span class="s2">"test"</span><span class="p">)</span>
- <span class="n">set_kind</span><span class="p">(</span><span class="s2">"shared"</span><span class="p">)</span>
- <span class="n">add_files</span><span class="p">(</span><span class="s2">"src/*.c"</span><span class="p">)</span>
- <span class="n">on_load</span><span class="p">(</span><span class="k">function</span> <span class="p">(</span><span class="n">target</span><span class="p">)</span>
- <span class="n">import</span><span class="p">(</span><span class="s2">"lib.detect.find_package"</span><span class="p">)</span>
- <span class="n">target</span><span class="p">:</span><span class="n">add</span><span class="p">(</span><span class="n">find_package</span><span class="p">(</span><span class="s2">"zlib"</span><span class="p">))</span>
- <span class="n">target</span><span class="p">:</span><span class="n">add</span><span class="p">(</span><span class="n">find_package</span><span class="p">(</span><span class="s2">"openssl"</span><span class="p">))</span>
- <span class="k">end</span><span class="p">)</span>
-</code></pre>
-</div>
-
-<h2 id="section-16">项目例子</h2>
-
-<p>一些使用xmake的项目:</p>
-
-<ul>
- <li><a href="https://github.com/tboox/tbox">tbox</a></li>
- <li><a href="https://github.com/tboox/gbox">gbox</a></li>
- <li><a href="https://github.com/tboox/vm86">vm86</a></li>
- <li><a href="https://github.com/tboox/awesome-xmake">更多</a></li>
-</ul>
-
-<h2 id="section-17">演示视频</h2>
-
-<p><a href="https://asciinema.org/a/133693">
-<img src="https://asciinema.org/a/133693.png" width="60%" />
-</a></p>
-
-<h2 id="section-18">联系方式</h2>
-
-<ul>
- <li>邮箱:<a href="mailto:waruqi@gmail.com">waruqi@gmail.com</a></li>
- <li>主页:<a href="https://tboox.org/cn">tboox.org</a></li>
- <li>社区:<a href="https://www.reddit.com/r/tboox/">Reddit论坛</a></li>
- <li>聊天:<a href="https://t.me/tbooxorg">Telegram群组</a>, <a href="https://gitter.im/tboox/tboox?utm_source=badge&amp;utm_medium=badge&amp;utm_campaign=pr-badge&amp;utm_content=badge">Gitter聊天室</a></li>
- <li>源码:<a href="https://github.com/xmake-io/xmake">Github</a>, <a href="https://gitee.com/tboox/xmake">Gitee</a></li>
- <li>QQ群:343118190</li>
- <li>微信公众号:tboox-os</li>
-</ul>
-
-
-
- <footer class="site-footer">
- <span class="site-footer-owner">Copyright (c) 2015-2018 <a href="https://tboox.org">tboox.org</a>.</span>
- <span class="site-footer-power">
- <span>
- <!--Site powered by <a href="https://jekyllrb.com/">Jekyll</a> & <a href="https://pages.coding.me">Coding Pages</a>.-->
- Site powered by <a href="https://jekyllrb.com/">Jekyll</a> & <a href="https://pages.github.com/">Github 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/cn/pages/donation.html b/cn/pages/donation.html
deleted file mode 100644
index 5bb55369..00000000
--- a/cn/pages/donation.html
+++ /dev/null
@@ -1,204 +0,0 @@
-<!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="/assets/css/normalize.css">
- <link rel='stylesheet' href="/assets/css/opensans.css" type='text/css'>
- <link rel="stylesheet" href="/assets/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="/assets/img/patreon.png">
- <a href="/cn/pages/donation.html#donate">支持我们</a>
- </span>
- <br><br>
-<ul id="translations">
- <li><a href="/cn/" class="nav-link">中文</a></li>
- <li class="delimiter">|</li>
- <li><a href="/" 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="/assets/img/alipay.png" alt="alipay" width="256" height="256" /></p>
-
-<p>账号:waruqi@gmail.com</p>
-
-<h2 id="section-1">微信</h2>
-
-<p><img src="/assets/img/weixin.png" alt="weixin" width="218" height="218" /></p>
-
-<h2 id="paypal">Paypal</h2>
-
-<p><a href="https://paypal.me/tboox/5"><img src="/assets/img/paypal.png" alt="Paypal Me" /></a></p>
-
-<h2 id="section-2">支持者</h2>
-
-<p><a href="https://opencollective.com/xmake#backers" target="_blank"><img src="https://opencollective.com/xmake/backers.svg?width=890" /></a></p>
-
-<table>
- <tbody>
- <tr>
- <td>2019.06.19</td>
- <td>匿名</td>
- <td>微信</td>
- <td>¥10</td>
- <td>比cmake好用</td>
- </tr>
- <tr>
- <td>2018.11.16</td>
- <td>孙果</td>
- <td>微信</td>
- <td>¥10</td>
- <td>xmake很好用,加油!</td>
- </tr>
- <tr>
- <td>2018.10.17</td>
- <td>红红</td>
- <td>微信</td>
- <td>¥100</td>
- <td> </td>
- </tr>
- <tr>
- <td>2018.10.15</td>
- <td>xtvjxk</td>
- <td>支付宝</td>
- <td>¥10</td>
- <td>希望越来越好用</td>
- </tr>
- <tr>
- <td>2018.08.07</td>
- <td>fasiondog</td>
- <td>gitee</td>
- <td>¥50</td>
- <td>感谢您的开源项目!</td>
- </tr>
- <tr>
- <td>2018.06.27</td>
- <td>Kellygod</td>
- <td>支付宝</td>
- <td>¥30</td>
- <td>拥抱xmake</td>
- </tr>
- <tr>
- <td>2018.05.17</td>
- <td>匿名</td>
- <td>微信</td>
- <td>¥10</td>
- <td>加油xmake</td>
- </tr>
- <tr>
- <td>2018.04.29</td>
- <td>清春</td>
- <td>支付宝</td>
- <td>¥180</td>
- <td> </td>
- </tr>
- <tr>
- <td>2018.02.18</td>
- <td>氧烷</td>
- <td>支付宝</td>
- <td>¥16.66</td>
- <td>xmake,赞👍</td>
- </tr>
- <tr>
- <td>2017.11.19</td>
- <td>sytru</td>
- <td>支付宝</td>
- <td>¥10</td>
- <td>感谢作者,让写c/c++有了写脚本的感觉。非常愉悦的使用体验,希望不要消失。</td>
- </tr>
- <tr>
- <td>2017.11.16</td>
- <td>琪峻</td>
- <td>支付宝</td>
- <td>¥15</td>
- <td>感谢好用的xmake</td>
- </tr>
- <tr>
- <td>2017.10.26</td>
- <td>Welthy</td>
- <td>支付宝</td>
- <td>¥5</td>
- <td>xmake很好用啊</td>
- </tr>
- <tr>
- <td>2016.11.10</td>
- <td><a href="https://github.com/lc-soft">lc-soft</a></td>
- <td>oschina</td>
- <td>¥10</td>
- <td> </td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="section-3">赞助者</h2>
-
-<p>通过赞助支持此项目,您的logo和网站链接将显示在这里。[<a href="https://opencollective.com/xmake#sponsor">赞助此项目</a>]</p>
-
-<p><a href="https://opencollective.com/xmake/sponsor/0/website" target="_blank"><img src="https://opencollective.com/xmake/sponsor/0/avatar.svg" /></a>
-<a href="https://opencollective.com/xmake/sponsor/1/website" target="_blank"><img src="https://opencollective.com/xmake/sponsor/1/avatar.svg" /></a>
-<a href="https://opencollective.com/xmake/sponsor/2/website" target="_blank"><img src="https://opencollective.com/xmake/sponsor/2/avatar.svg" /></a>
-<a href="https://opencollective.com/xmake/sponsor/3/website" target="_blank"><img src="https://opencollective.com/xmake/sponsor/3/avatar.svg" /></a>
-<a href="https://opencollective.com/xmake/sponsor/4/website" target="_blank"><img src="https://opencollective.com/xmake/sponsor/4/avatar.svg" /></a>
-<a href="https://opencollective.com/xmake/sponsor/5/website" target="_blank"><img src="https://opencollective.com/xmake/sponsor/5/avatar.svg" /></a>
-<a href="https://opencollective.com/xmake/sponsor/6/website" target="_blank"><img src="https://opencollective.com/xmake/sponsor/6/avatar.svg" /></a>
-<a href="https://opencollective.com/xmake/sponsor/7/website" target="_blank"><img src="https://opencollective.com/xmake/sponsor/7/avatar.svg" /></a>
-<a href="https://opencollective.com/xmake/sponsor/8/website" target="_blank"><img src="https://opencollective.com/xmake/sponsor/8/avatar.svg" /></a>
-<a href="https://opencollective.com/xmake/sponsor/9/website" target="_blank"><img src="https://opencollective.com/xmake/sponsor/9/avatar.svg" /></a></p>
-
-
-
- <footer class="site-footer">
- <span class="site-footer-owner">Copyright (c) 2015-2018 <a href="https://tboox.org">tboox.org</a>.</span>
- <span class="site-footer-power">
- <span>
- <!--Site powered by <a href="https://jekyllrb.com/">Jekyll</a> & <a href="https://pages.coding.me">Coding Pages</a>.-->
- Site powered by <a href="https://jekyllrb.com/">Jekyll</a> & <a href="https://pages.github.com/">Github Pages</a>.
- </span>
- <span>
- Theme designed by <a href="https://github.com/pietromenna/jekyll-cayman-theme">cayman</a>.
- </span>
-</span>
-</footer>
-
-
- </section>
-
- </body>
-</html>