1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
|
<!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="/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">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="/assets/img/patreon.png">
<a href="/pages/donation.html#donate">Support us</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="installation">Installation</h2>
<h4 id="via-curl">via curl</h4>
<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>bash <<span class="o">(</span>curl -fsSL http://xmake.io/get.sh<span class="o">)</span>
</code></pre>
</div>
<h4 id="via-wget">via wget</h4>
<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>bash <<span class="o">(</span>wget http://xmake.io/get.sh -O -<span class="o">)</span>
</code></pre>
</div>
<h4 id="via-powershell">via powershell</h4>
<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>Invoke-Expression <span class="o">(</span>Invoke-Webrequest <span class="s1">'http://xmake.io/get.ps1'</span> -UseBasicParsing<span class="o">)</span>.Content
</code></pre>
</div>
<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)</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>
<li>Golang</li>
<li>Rust</li>
<li>Dlang</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 - vs2017 .. )</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/build_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">tboox.org</a></li>
<li>Community:<a href="https://github.com/tboox/community/issues">tboox@community</a></li>
<li>ChatRoom:<a href="https://gitter.im/tboox/tboox?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge"><img src="https://badges.gitter.im/tboox/tboox.svg" alt="Join the chat at https://gitter.im/tboox/tboox" /></a></li>
</ul>
<footer class="site-footer">
<span class="site-footer-owner">Copyright (c) 2015-2017 <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>.-->
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>
|