bake-toolkit 2.28.0 → 2.28.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/documentation/_build/html/_sources/changelog.txt +3 -0
- data/documentation/_build/html/_sources/index.txt +1 -1
- data/documentation/_build/html/_static/logo_tiny_48.png +0 -0
- data/documentation/_build/html/changelog.html +1154 -1149
- data/documentation/_build/html/commandline/commandline.html +285 -285
- data/documentation/_build/html/concepts/build_hierarchy.html +204 -204
- data/documentation/_build/html/concepts/concepts.html +196 -196
- data/documentation/_build/html/concepts/inject.html +216 -216
- data/documentation/_build/html/concepts/link_order.html +245 -245
- data/documentation/_build/html/concepts/prebuild.html +205 -205
- data/documentation/_build/html/concepts/the_main_project.html +260 -260
- data/documentation/_build/html/concepts/the_project_meta_file.html +288 -288
- data/documentation/_build/html/genindex.html +152 -152
- data/documentation/_build/html/ide/eclipse/eclipse.html +186 -186
- data/documentation/_build/html/ide/eclipse/how_to_convert_existing_cdt_workspace.html +208 -208
- data/documentation/_build/html/ide/eclipse/how_to_create_a_new_project_in_eclipse.html +191 -191
- data/documentation/_build/html/ide/eclipse/how_to_create_a_workspace_in_eclipse.html +198 -198
- data/documentation/_build/html/ide/eclipse/how_to_debug_in_eclipse.html +198 -198
- data/documentation/_build/html/ide/eclipse/how_to_install_eclipse_plugin.html +196 -196
- data/documentation/_build/html/ide/eclipse/how_to_use_bake_in_eclipse.html +256 -256
- data/documentation/_build/html/ide/ide_integrations.html +185 -185
- data/documentation/_build/html/ide/vs/how_to_create_vs_projects.html +171 -171
- data/documentation/_build/html/ide/vs/how_to_debug_in_vs.html +185 -185
- data/documentation/_build/html/ide/vs/how_to_used_bake_in_vs.html +190 -190
- data/documentation/_build/html/ide/vs/vs.html +170 -170
- data/documentation/_build/html/ide/vs/vs_install.html +202 -202
- data/documentation/_build/html/index.html +246 -246
- data/documentation/_build/html/install/install_bake.html +279 -279
- data/documentation/_build/html/internal.html +217 -217
- data/documentation/_build/html/known_issues.html +173 -173
- data/documentation/_build/html/license.html +236 -236
- data/documentation/_build/html/performance/performance.html +373 -373
- data/documentation/_build/html/quickstart/quickstart.html +236 -236
- data/documentation/_build/html/search.html +174 -174
- data/documentation/_build/html/searchindex.js +1 -1
- data/documentation/_build/html/syntax/adapt_configs.html +370 -370
- data/documentation/_build/html/syntax/auto_adjustment.html +189 -189
- data/documentation/_build/html/syntax/derive_configs.html +247 -247
- data/documentation/_build/html/syntax/project_meta_syntax.html +923 -923
- data/documentation/_build/html/syntax/syntax.html +196 -196
- data/documentation/_build/html/syntax/variable_substitutions.html +365 -365
- data/documentation/_build/html/tips_and_tricks/bakeclean.html +169 -169
- data/documentation/_build/html/tips_and_tricks/dot.html +186 -186
- data/documentation/_build/html/tips_and_tricks/how_to_use_bake_with_cygwin.html +214 -214
- data/documentation/_build/html/tips_and_tricks/qac.html +297 -297
- data/documentation/_build/html/tips_and_tricks/the_bakery.html +405 -405
- data/documentation/_build/html/tips_and_tricks/the_clang.html +201 -201
- data/documentation/_build/html/tips_and_tricks/tips_and_tricks.html +198 -198
- data/documentation/_build/html/why_bake/why_bake.html +241 -241
- data/lib/bake/config/checks.rb +76 -68
- data/lib/bake/model/metamodel.rb +6 -0
- data/lib/common/version.rb +1 -1
- metadata +3 -5
- data/documentation/_build/html/_sources/tips_and_tricks/static_code_analysis.txt +0 -122
- data/documentation/_build/html/_static/logo_conformant_48.png +0 -0
- data/documentation/_build/html/tips_and_tricks/static_code_analysis.html +0 -285
@@ -1,237 +1,237 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
|
3
|
-
|
4
|
-
<html xmlns="http://www.w3.org/1999/xhtml">
|
5
|
-
<head>
|
6
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
7
|
-
|
8
|
-
<title>Quickstart — bake documentation</title>
|
9
|
-
|
10
|
-
<link rel="stylesheet" href="../_static/basic.css" type="text/css" />
|
11
|
-
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
|
12
|
-
<link rel="stylesheet" href="../_static/bootswatch-3.3.4/sandstone/bootstrap.min.css" type="text/css" />
|
13
|
-
<link rel="stylesheet" href="../_static/bootstrap-sphinx.css" type="text/css" />
|
14
|
-
|
15
|
-
<script type="text/javascript">
|
16
|
-
var DOCUMENTATION_OPTIONS = {
|
17
|
-
URL_ROOT: '../',
|
18
|
-
VERSION: '',
|
19
|
-
COLLAPSE_INDEX: false,
|
20
|
-
FILE_SUFFIX: '.html',
|
21
|
-
HAS_SOURCE: true
|
22
|
-
};
|
23
|
-
</script>
|
24
|
-
<script type="text/javascript" src="../_static/jquery.js"></script>
|
25
|
-
<script type="text/javascript" src="../_static/underscore.js"></script>
|
26
|
-
<script type="text/javascript" src="../_static/doctools.js"></script>
|
27
|
-
<script type="text/javascript" src="../_static/js/jquery-1.11.0.min.js"></script>
|
28
|
-
<script type="text/javascript" src="../_static/js/jquery-fix.js"></script>
|
29
|
-
<script type="text/javascript" src="../_static/bootstrap-3.3.4/js/bootstrap.min.js"></script>
|
30
|
-
<script type="text/javascript" src="../_static/bootstrap-sphinx.js"></script>
|
31
|
-
<link rel="shortcut icon" href="../_static/logo_tiny_32.ico"/>
|
32
|
-
<link rel="top" title="bake documentation" href="../index.html" />
|
33
|
-
<link rel="next" title="Concepts" href="../concepts/concepts.html" />
|
34
|
-
<link rel="prev" title="Install bake" href="../install/install_bake.html" />
|
35
|
-
<meta charset='utf-8'>
|
36
|
-
<meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'>
|
37
|
-
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1'>
|
38
|
-
<meta name="apple-mobile-web-app-capable" content="yes">
|
39
|
-
|
40
|
-
</head>
|
41
|
-
<body role="document">
|
42
|
-
|
43
|
-
<div id="navbar" class="navbar navbar-default navbar-fixed-top">
|
44
|
-
<div class="container">
|
45
|
-
<div class="navbar-header">
|
46
|
-
<!-- .btn-navbar is used as the toggle for collapsed navbar content -->
|
47
|
-
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".nav-collapse">
|
48
|
-
<span class="icon-bar"></span>
|
49
|
-
<span class="icon-bar"></span>
|
50
|
-
<span class="icon-bar"></span>
|
51
|
-
</button>
|
52
|
-
<a class="navbar-brand" href="../index.html"><img src="../_static/
|
53
|
-
</a>
|
54
|
-
<span class="navbar-text navbar-version pull-left"><b></b></span>
|
55
|
-
</div>
|
56
|
-
|
57
|
-
<div class="collapse navbar-collapse nav-collapse">
|
58
|
-
<ul class="nav navbar-nav">
|
59
|
-
|
60
|
-
|
61
|
-
<li class="dropdown globaltoc-container">
|
62
|
-
<a role="button"
|
63
|
-
id="dLabelGlobalToc"
|
64
|
-
data-toggle="dropdown"
|
65
|
-
data-target="#"
|
66
|
-
href="../index.html">Section <b class="caret"></b></a>
|
67
|
-
<ul class="dropdown-menu globaltoc"
|
68
|
-
role="menu"
|
69
|
-
aria-labelledby="dLabelGlobalToc"><ul class="current">
|
70
|
-
<li class="toctree-l1"><a class="reference internal" href="../why_bake/why_bake.html">Why you should use bake</a></li>
|
71
|
-
<li class="toctree-l1"><a class="reference internal" href="../install/install_bake.html">Install bake</a></li>
|
72
|
-
<li class="toctree-l1 current"><a class="current reference internal" href="">Quickstart</a></li>
|
73
|
-
<li class="toctree-l1"><a class="reference internal" href="../concepts/concepts.html">Concepts</a></li>
|
74
|
-
<li class="toctree-l1"><a class="reference internal" href="../syntax/syntax.html">Syntax</a></li>
|
75
|
-
<li class="toctree-l1"><a class="reference internal" href="../commandline/commandline.html">Commandline</a></li>
|
76
|
-
<li class="toctree-l1"><a class="reference internal" href="../ide/ide_integrations.html">IDE Support</a></li>
|
77
|
-
<li class="toctree-l1"><a class="reference internal" href="../tips_and_tricks/tips_and_tricks.html">Additional features</a></li>
|
78
|
-
<li class="toctree-l1"><a class="reference internal" href="../performance/performance.html">Performance</a></li>
|
79
|
-
<li class="toctree-l1"><a class="reference internal" href="../known_issues.html">Known Issues</a></li>
|
80
|
-
<li class="toctree-l1"><a class="reference internal" href="../changelog.html">Changelog</a></li>
|
81
|
-
<li class="toctree-l1"><a class="reference internal" href="../license.html">License</a></li>
|
82
|
-
</ul>
|
83
|
-
<ul>
|
84
|
-
<li class="toctree-l1"><a class="reference internal" href="../internal.html">Internal developing notes</a></li>
|
85
|
-
</ul>
|
86
|
-
</ul>
|
87
|
-
</li>
|
88
|
-
|
89
|
-
<li class="dropdown">
|
90
|
-
<a role="button"
|
91
|
-
id="dLabelLocalToc"
|
92
|
-
data-toggle="dropdown"
|
93
|
-
data-target="#"
|
94
|
-
href="#">SubSections <b class="caret"></b></a>
|
95
|
-
<ul class="dropdown-menu localtoc"
|
96
|
-
role="menu"
|
97
|
-
aria-labelledby="dLabelLocalToc"><ul>
|
98
|
-
<li><a class="reference internal" href="#">Quickstart</a></li>
|
99
|
-
</ul>
|
100
|
-
</ul>
|
101
|
-
</li>
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
<li>
|
108
|
-
<a href="../install/install_bake.html" title="Previous Chapter: Install bake"><span class="glyphicon glyphicon-chevron-left visible-sm"></span><span class="hidden-sm hidden-tablet">« Install bake</span>
|
109
|
-
</a>
|
110
|
-
</li>
|
111
|
-
<li>
|
112
|
-
<a href="../concepts/concepts.html" title="Next Chapter: Concepts"><span class="glyphicon glyphicon-chevron-right visible-sm"></span><span class="hidden-sm hidden-tablet">Concepts »</span>
|
113
|
-
</a>
|
114
|
-
</li>
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
</ul>
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
<form class="navbar-form navbar-right" action="../search.html" method="get">
|
125
|
-
<div class="form-group">
|
126
|
-
<input type="text" name="q" class="form-control" placeholder="Search" />
|
127
|
-
</div>
|
128
|
-
<input type="hidden" name="check_keywords" value="yes" />
|
129
|
-
<input type="hidden" name="area" value="default" />
|
130
|
-
</form>
|
131
|
-
|
132
|
-
</div>
|
133
|
-
</div>
|
134
|
-
</div>
|
135
|
-
|
136
|
-
<div class="container">
|
137
|
-
<div class="row">
|
138
|
-
<div class="col-md-12">
|
139
|
-
|
140
|
-
<div class="section" id="quickstart">
|
141
|
-
<h1>Quickstart<a class="headerlink" href="#quickstart" title="Permalink to this headline">¶</a></h1>
|
142
|
-
<ol class="arabic">
|
143
|
-
<li><dl class="first docutils">
|
144
|
-
<dt>Create a project directory.</dt>
|
145
|
-
<dd><div class="first last highlight-console"><div class="highlight"><pre><span class="gp">User@Host:~$</span> mkdir my_project
|
146
|
-
</pre></div>
|
147
|
-
</div>
|
148
|
-
</dd>
|
149
|
-
</dl>
|
150
|
-
</li>
|
151
|
-
<li><dl class="first docutils">
|
152
|
-
<dt>Switch to the project directory.</dt>
|
153
|
-
<dd><div class="first last highlight-console"><div class="highlight"><pre><span class="gp">User@Host:~$</span> <span class="nb">cd </span>my_project
|
154
|
-
</pre></div>
|
155
|
-
</div>
|
156
|
-
</dd>
|
157
|
-
</dl>
|
158
|
-
</li>
|
159
|
-
<li><dl class="first docutils">
|
160
|
-
<dt>Use the bake –create option to auto generate a basic project.</dt>
|
161
|
-
<dd><div class="first highlight-console"><div class="highlight"><pre><span class="gp">User@Host:~/my_project$</span> bake --create exe
|
162
|
-
<span class="go">-- bake 2.10.3, ruby 2.1.2p95, platform x86_64-darwin13.0 --</span>
|
163
|
-
<span class="go">Project created.</span>
|
164
|
-
|
165
|
-
<span class="go">Time: 00:00 minutes</span>
|
166
|
-
</pre></div>
|
167
|
-
</div>
|
168
|
-
<p>This will provide you with the follwing basic project structure which is ready to use</p>
|
169
|
-
<div class="last highlight-console"><div class="highlight"><pre><span class="go">my_project</span>
|
170
|
-
<span class="go">|</span>
|
171
|
-
<span class="go">|-- Project.meta</span>
|
172
|
-
<span class="go">|-- include</span>
|
173
|
-
<span class="go">`-- src</span>
|
174
|
-
<span class="go"> `-- main.cpp</span>
|
175
|
-
</pre></div>
|
176
|
-
</div>
|
177
|
-
</dd>
|
178
|
-
</dl>
|
179
|
-
</li>
|
180
|
-
<li><dl class="first docutils">
|
181
|
-
<dt>Build the project.</dt>
|
182
|
-
<dd><div class="first highlight-console"><div class="highlight"><pre><span class="gp">User@Host:~/my_project$</span> bake
|
183
|
-
<span class="go">-- bake 2.10.3, ruby 2.1.2p95, platform x86_64-darwin13.0 --</span>
|
184
|
-
<span class="go">Info: cache not found, reloading meta information</span>
|
185
|
-
<span class="go">Loading /Users/NiCoretti/my_project/Project.meta</span>
|
186
|
-
<span class="go">**** Building 1 of 1: my_project (main) ****</span>
|
187
|
-
<span class="go">Compiling src/main.cpp</span>
|
188
|
-
<span class="go">Linking build/main/my_project.exe</span>
|
189
|
-
|
190
|
-
<span class="go">Building done.</span>
|
191
|
-
|
192
|
-
<span class="go">Time: 00:00 minutes</span>
|
193
|
-
</pre></div>
|
194
|
-
</div>
|
195
|
-
<p>If you want a more detailed and colored output use the following command:</p>
|
196
|
-
<div class="highlight-console"><div class="highlight"><pre><span class="gp">User@Host:~/my_project$</span> bake -v2 -a black
|
197
|
-
<span class="go">-- bake 2.10.3, ruby 2.1.2p95, platform x86_64-darwin13.0 --</span>
|
198
|
-
<span class="go">**** Building 1 of 1: my_project (main) ****</span>
|
199
|
-
|
200
|
-
<span class="go">g++ -c -MD -MF build/main/src/main.d -Iinclude -o build/main/src/main.o src/main.cpp</span>
|
201
|
-
|
202
|
-
<span class="go">g++ -o build/main/my_project.exe build/main/src/main.o</span>
|
203
|
-
|
204
|
-
<span class="go">Building done.</span>
|
205
|
-
|
206
|
-
<span class="go">Time: 00:00 minutes</span>
|
207
|
-
</pre></div>
|
208
|
-
</div>
|
209
|
-
<div class="last admonition note">
|
210
|
-
<p class="first admonition-title">Note</p>
|
211
|
-
<p class="last">The default main.cpp which is created by bake does nothing except returning the exit code 0.</p>
|
212
|
-
</div>
|
213
|
-
</dd>
|
214
|
-
</dl>
|
215
|
-
</li>
|
216
|
-
</ol>
|
217
|
-
</div>
|
218
|
-
|
219
|
-
|
220
|
-
</div>
|
221
|
-
|
222
|
-
</div>
|
223
|
-
</div>
|
224
|
-
<footer class="footer">
|
225
|
-
<div class="container">
|
226
|
-
<p class="pull-right">
|
227
|
-
<a href="#">Back to top</a>
|
228
|
-
|
229
|
-
</p>
|
230
|
-
<p>
|
231
|
-
© Copyright 2016, E.S.R.Labs AG.<br/>
|
232
|
-
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.3.1.<br/>
|
233
|
-
</p>
|
234
|
-
</div>
|
235
|
-
</footer>
|
236
|
-
</body>
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
|
4
|
+
<html xmlns="http://www.w3.org/1999/xhtml">
|
5
|
+
<head>
|
6
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
7
|
+
|
8
|
+
<title>Quickstart — bake documentation</title>
|
9
|
+
|
10
|
+
<link rel="stylesheet" href="../_static/basic.css" type="text/css" />
|
11
|
+
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
|
12
|
+
<link rel="stylesheet" href="../_static/bootswatch-3.3.4/sandstone/bootstrap.min.css" type="text/css" />
|
13
|
+
<link rel="stylesheet" href="../_static/bootstrap-sphinx.css" type="text/css" />
|
14
|
+
|
15
|
+
<script type="text/javascript">
|
16
|
+
var DOCUMENTATION_OPTIONS = {
|
17
|
+
URL_ROOT: '../',
|
18
|
+
VERSION: '',
|
19
|
+
COLLAPSE_INDEX: false,
|
20
|
+
FILE_SUFFIX: '.html',
|
21
|
+
HAS_SOURCE: true
|
22
|
+
};
|
23
|
+
</script>
|
24
|
+
<script type="text/javascript" src="../_static/jquery.js"></script>
|
25
|
+
<script type="text/javascript" src="../_static/underscore.js"></script>
|
26
|
+
<script type="text/javascript" src="../_static/doctools.js"></script>
|
27
|
+
<script type="text/javascript" src="../_static/js/jquery-1.11.0.min.js"></script>
|
28
|
+
<script type="text/javascript" src="../_static/js/jquery-fix.js"></script>
|
29
|
+
<script type="text/javascript" src="../_static/bootstrap-3.3.4/js/bootstrap.min.js"></script>
|
30
|
+
<script type="text/javascript" src="../_static/bootstrap-sphinx.js"></script>
|
31
|
+
<link rel="shortcut icon" href="../_static/logo_tiny_32.ico"/>
|
32
|
+
<link rel="top" title="bake documentation" href="../index.html" />
|
33
|
+
<link rel="next" title="Concepts" href="../concepts/concepts.html" />
|
34
|
+
<link rel="prev" title="Install bake" href="../install/install_bake.html" />
|
35
|
+
<meta charset='utf-8'>
|
36
|
+
<meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'>
|
37
|
+
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1'>
|
38
|
+
<meta name="apple-mobile-web-app-capable" content="yes">
|
39
|
+
|
40
|
+
</head>
|
41
|
+
<body role="document">
|
42
|
+
|
43
|
+
<div id="navbar" class="navbar navbar-default navbar-fixed-top">
|
44
|
+
<div class="container">
|
45
|
+
<div class="navbar-header">
|
46
|
+
<!-- .btn-navbar is used as the toggle for collapsed navbar content -->
|
47
|
+
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".nav-collapse">
|
48
|
+
<span class="icon-bar"></span>
|
49
|
+
<span class="icon-bar"></span>
|
50
|
+
<span class="icon-bar"></span>
|
51
|
+
</button>
|
52
|
+
<a class="navbar-brand" href="../index.html"><img src="../_static/logo_tiny_48.png">
|
53
|
+
</a>
|
54
|
+
<span class="navbar-text navbar-version pull-left"><b></b></span>
|
55
|
+
</div>
|
56
|
+
|
57
|
+
<div class="collapse navbar-collapse nav-collapse">
|
58
|
+
<ul class="nav navbar-nav">
|
59
|
+
|
60
|
+
|
61
|
+
<li class="dropdown globaltoc-container">
|
62
|
+
<a role="button"
|
63
|
+
id="dLabelGlobalToc"
|
64
|
+
data-toggle="dropdown"
|
65
|
+
data-target="#"
|
66
|
+
href="../index.html">Section <b class="caret"></b></a>
|
67
|
+
<ul class="dropdown-menu globaltoc"
|
68
|
+
role="menu"
|
69
|
+
aria-labelledby="dLabelGlobalToc"><ul class="current">
|
70
|
+
<li class="toctree-l1"><a class="reference internal" href="../why_bake/why_bake.html">Why you should use bake</a></li>
|
71
|
+
<li class="toctree-l1"><a class="reference internal" href="../install/install_bake.html">Install bake</a></li>
|
72
|
+
<li class="toctree-l1 current"><a class="current reference internal" href="">Quickstart</a></li>
|
73
|
+
<li class="toctree-l1"><a class="reference internal" href="../concepts/concepts.html">Concepts</a></li>
|
74
|
+
<li class="toctree-l1"><a class="reference internal" href="../syntax/syntax.html">Syntax</a></li>
|
75
|
+
<li class="toctree-l1"><a class="reference internal" href="../commandline/commandline.html">Commandline</a></li>
|
76
|
+
<li class="toctree-l1"><a class="reference internal" href="../ide/ide_integrations.html">IDE Support</a></li>
|
77
|
+
<li class="toctree-l1"><a class="reference internal" href="../tips_and_tricks/tips_and_tricks.html">Additional features</a></li>
|
78
|
+
<li class="toctree-l1"><a class="reference internal" href="../performance/performance.html">Performance</a></li>
|
79
|
+
<li class="toctree-l1"><a class="reference internal" href="../known_issues.html">Known Issues</a></li>
|
80
|
+
<li class="toctree-l1"><a class="reference internal" href="../changelog.html">Changelog</a></li>
|
81
|
+
<li class="toctree-l1"><a class="reference internal" href="../license.html">License</a></li>
|
82
|
+
</ul>
|
83
|
+
<ul>
|
84
|
+
<li class="toctree-l1"><a class="reference internal" href="../internal.html">Internal developing notes</a></li>
|
85
|
+
</ul>
|
86
|
+
</ul>
|
87
|
+
</li>
|
88
|
+
|
89
|
+
<li class="dropdown">
|
90
|
+
<a role="button"
|
91
|
+
id="dLabelLocalToc"
|
92
|
+
data-toggle="dropdown"
|
93
|
+
data-target="#"
|
94
|
+
href="#">SubSections <b class="caret"></b></a>
|
95
|
+
<ul class="dropdown-menu localtoc"
|
96
|
+
role="menu"
|
97
|
+
aria-labelledby="dLabelLocalToc"><ul>
|
98
|
+
<li><a class="reference internal" href="#">Quickstart</a></li>
|
99
|
+
</ul>
|
100
|
+
</ul>
|
101
|
+
</li>
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
<li>
|
108
|
+
<a href="../install/install_bake.html" title="Previous Chapter: Install bake"><span class="glyphicon glyphicon-chevron-left visible-sm"></span><span class="hidden-sm hidden-tablet">« Install bake</span>
|
109
|
+
</a>
|
110
|
+
</li>
|
111
|
+
<li>
|
112
|
+
<a href="../concepts/concepts.html" title="Next Chapter: Concepts"><span class="glyphicon glyphicon-chevron-right visible-sm"></span><span class="hidden-sm hidden-tablet">Concepts »</span>
|
113
|
+
</a>
|
114
|
+
</li>
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
</ul>
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
<form class="navbar-form navbar-right" action="../search.html" method="get">
|
125
|
+
<div class="form-group">
|
126
|
+
<input type="text" name="q" class="form-control" placeholder="Search" />
|
127
|
+
</div>
|
128
|
+
<input type="hidden" name="check_keywords" value="yes" />
|
129
|
+
<input type="hidden" name="area" value="default" />
|
130
|
+
</form>
|
131
|
+
|
132
|
+
</div>
|
133
|
+
</div>
|
134
|
+
</div>
|
135
|
+
|
136
|
+
<div class="container">
|
137
|
+
<div class="row">
|
138
|
+
<div class="col-md-12">
|
139
|
+
|
140
|
+
<div class="section" id="quickstart">
|
141
|
+
<h1>Quickstart<a class="headerlink" href="#quickstart" title="Permalink to this headline">¶</a></h1>
|
142
|
+
<ol class="arabic">
|
143
|
+
<li><dl class="first docutils">
|
144
|
+
<dt>Create a project directory.</dt>
|
145
|
+
<dd><div class="first last highlight-console"><div class="highlight"><pre><span class="gp">User@Host:~$</span> mkdir my_project
|
146
|
+
</pre></div>
|
147
|
+
</div>
|
148
|
+
</dd>
|
149
|
+
</dl>
|
150
|
+
</li>
|
151
|
+
<li><dl class="first docutils">
|
152
|
+
<dt>Switch to the project directory.</dt>
|
153
|
+
<dd><div class="first last highlight-console"><div class="highlight"><pre><span class="gp">User@Host:~$</span> <span class="nb">cd </span>my_project
|
154
|
+
</pre></div>
|
155
|
+
</div>
|
156
|
+
</dd>
|
157
|
+
</dl>
|
158
|
+
</li>
|
159
|
+
<li><dl class="first docutils">
|
160
|
+
<dt>Use the bake –create option to auto generate a basic project.</dt>
|
161
|
+
<dd><div class="first highlight-console"><div class="highlight"><pre><span class="gp">User@Host:~/my_project$</span> bake --create exe
|
162
|
+
<span class="go">-- bake 2.10.3, ruby 2.1.2p95, platform x86_64-darwin13.0 --</span>
|
163
|
+
<span class="go">Project created.</span>
|
164
|
+
|
165
|
+
<span class="go">Time: 00:00 minutes</span>
|
166
|
+
</pre></div>
|
167
|
+
</div>
|
168
|
+
<p>This will provide you with the follwing basic project structure which is ready to use</p>
|
169
|
+
<div class="last highlight-console"><div class="highlight"><pre><span class="go">my_project</span>
|
170
|
+
<span class="go">|</span>
|
171
|
+
<span class="go">|-- Project.meta</span>
|
172
|
+
<span class="go">|-- include</span>
|
173
|
+
<span class="go">`-- src</span>
|
174
|
+
<span class="go"> `-- main.cpp</span>
|
175
|
+
</pre></div>
|
176
|
+
</div>
|
177
|
+
</dd>
|
178
|
+
</dl>
|
179
|
+
</li>
|
180
|
+
<li><dl class="first docutils">
|
181
|
+
<dt>Build the project.</dt>
|
182
|
+
<dd><div class="first highlight-console"><div class="highlight"><pre><span class="gp">User@Host:~/my_project$</span> bake
|
183
|
+
<span class="go">-- bake 2.10.3, ruby 2.1.2p95, platform x86_64-darwin13.0 --</span>
|
184
|
+
<span class="go">Info: cache not found, reloading meta information</span>
|
185
|
+
<span class="go">Loading /Users/NiCoretti/my_project/Project.meta</span>
|
186
|
+
<span class="go">**** Building 1 of 1: my_project (main) ****</span>
|
187
|
+
<span class="go">Compiling src/main.cpp</span>
|
188
|
+
<span class="go">Linking build/main/my_project.exe</span>
|
189
|
+
|
190
|
+
<span class="go">Building done.</span>
|
191
|
+
|
192
|
+
<span class="go">Time: 00:00 minutes</span>
|
193
|
+
</pre></div>
|
194
|
+
</div>
|
195
|
+
<p>If you want a more detailed and colored output use the following command:</p>
|
196
|
+
<div class="highlight-console"><div class="highlight"><pre><span class="gp">User@Host:~/my_project$</span> bake -v2 -a black
|
197
|
+
<span class="go">-- bake 2.10.3, ruby 2.1.2p95, platform x86_64-darwin13.0 --</span>
|
198
|
+
<span class="go">**** Building 1 of 1: my_project (main) ****</span>
|
199
|
+
|
200
|
+
<span class="go">g++ -c -MD -MF build/main/src/main.d -Iinclude -o build/main/src/main.o src/main.cpp</span>
|
201
|
+
|
202
|
+
<span class="go">g++ -o build/main/my_project.exe build/main/src/main.o</span>
|
203
|
+
|
204
|
+
<span class="go">Building done.</span>
|
205
|
+
|
206
|
+
<span class="go">Time: 00:00 minutes</span>
|
207
|
+
</pre></div>
|
208
|
+
</div>
|
209
|
+
<div class="last admonition note">
|
210
|
+
<p class="first admonition-title">Note</p>
|
211
|
+
<p class="last">The default main.cpp which is created by bake does nothing except returning the exit code 0.</p>
|
212
|
+
</div>
|
213
|
+
</dd>
|
214
|
+
</dl>
|
215
|
+
</li>
|
216
|
+
</ol>
|
217
|
+
</div>
|
218
|
+
|
219
|
+
|
220
|
+
</div>
|
221
|
+
|
222
|
+
</div>
|
223
|
+
</div>
|
224
|
+
<footer class="footer">
|
225
|
+
<div class="container">
|
226
|
+
<p class="pull-right">
|
227
|
+
<a href="#">Back to top</a>
|
228
|
+
|
229
|
+
</p>
|
230
|
+
<p>
|
231
|
+
© Copyright 2016, E.S.R.Labs AG.<br/>
|
232
|
+
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.3.1.<br/>
|
233
|
+
</p>
|
234
|
+
</div>
|
235
|
+
</footer>
|
236
|
+
</body>
|
237
237
|
</html>
|