bake-toolkit 2.11.4 → 2.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (116) hide show
  1. checksums.yaml +4 -4
  2. data/documentation/_build/html/_sources/changelog.txt +4 -1
  3. data/documentation/_build/html/_sources/index.txt +2 -3
  4. data/documentation/_build/html/_static/syntax.html +2 -4
  5. data/documentation/_build/html/changelog.html +11 -5
  6. data/documentation/_build/html/commandline/commandline.html +4 -4
  7. data/documentation/_build/html/concepts/build_hierarchy.html +4 -4
  8. data/documentation/_build/html/concepts/concepts.html +4 -4
  9. data/documentation/_build/html/concepts/the_main_project.html +4 -4
  10. data/documentation/_build/html/concepts/the_project_meta_file.html +4 -4
  11. data/documentation/_build/html/genindex.html +4 -4
  12. data/documentation/_build/html/ide/eclipse/eclipse.html +4 -4
  13. data/documentation/_build/html/ide/eclipse/how_to_convert_existing_cdt_workspace.html +4 -4
  14. data/documentation/_build/html/ide/eclipse/how_to_create_a_new_project_in_eclipse.html +4 -4
  15. data/documentation/_build/html/ide/eclipse/how_to_create_a_workspace_in_eclipse.html +4 -4
  16. data/documentation/_build/html/ide/eclipse/how_to_install_eclipse_plugin.html +4 -4
  17. data/documentation/_build/html/ide/eclipse/how_to_use_bake_in_eclipse.html +4 -4
  18. data/documentation/_build/html/ide/ide_integrations.html +4 -4
  19. data/documentation/_build/html/ide/vs/how_to_create_vs_projects.html +4 -4
  20. data/documentation/_build/html/ide/vs/how_to_debug_in_vs.html +4 -4
  21. data/documentation/_build/html/ide/vs/how_to_used_bake_in_vs.html +4 -4
  22. data/documentation/_build/html/ide/vs/vs.html +4 -4
  23. data/documentation/_build/html/ide/vs/vs_install.html +4 -4
  24. data/documentation/_build/html/index.html +7 -7
  25. data/documentation/_build/html/install/install_bake.html +4 -4
  26. data/documentation/_build/html/internal.html +4 -4
  27. data/documentation/_build/html/known_issues.html +4 -4
  28. data/documentation/_build/html/license.html +4 -4
  29. data/documentation/_build/html/objects.inv +0 -0
  30. data/documentation/_build/html/performance/performance.html +4 -4
  31. data/documentation/_build/html/quickstart/quickstart.html +4 -4
  32. data/documentation/_build/html/search.html +4 -4
  33. data/documentation/_build/html/searchindex.js +1 -1
  34. data/documentation/_build/html/syntax/derive_configs.html +4 -4
  35. data/documentation/_build/html/syntax/project_meta_syntax.html +6 -8
  36. data/documentation/_build/html/syntax/syntax.html +4 -4
  37. data/documentation/_build/html/syntax/variable_substitutions.html +4 -4
  38. data/documentation/_build/html/tips_and_tricks/how_to_use_bake_with_cygwin.html +4 -4
  39. data/documentation/_build/html/tips_and_tricks/static_code_analysis.html +4 -4
  40. data/documentation/_build/html/tips_and_tricks/the_bakery.html +4 -4
  41. data/documentation/_build/html/tips_and_tricks/the_clang.html +4 -4
  42. data/documentation/_build/html/tips_and_tricks/tips_and_tricks.html +4 -4
  43. data/documentation/_build/html/why_bake/why_bake.html +6 -6
  44. data/lib/bake/util.rb +1 -1
  45. data/lib/blocks/block.rb +11 -14
  46. data/lib/common/version.rb +1 -1
  47. data/lib/tocxx.rb +7 -7
  48. metadata +2 -70
  49. data/doc/cmd/install.html +0 -74
  50. data/doc/cmd/mount.png +0 -0
  51. data/doc/cmd/ruby.png +0 -0
  52. data/doc/cmd/tty.png +0 -0
  53. data/doc/cmd/usecmd.html +0 -80
  54. data/doc/cmd/usecygwin.html +0 -49
  55. data/doc/concepts/buildhierarchy.html +0 -42
  56. data/doc/concepts/configfile.html +0 -102
  57. data/doc/concepts/hier.png +0 -0
  58. data/doc/concepts/mainproject.html +0 -87
  59. data/doc/deployDoc.bat +0 -2
  60. data/doc/dyk/clang.html +0 -50
  61. data/doc/dyk/keys.png +0 -0
  62. data/doc/dyk/lint.html +0 -78
  63. data/doc/dyk/tipps.html +0 -45
  64. data/doc/eclipse/build/buildFile.png +0 -0
  65. data/doc/eclipse/build/buildMain.png +0 -0
  66. data/doc/eclipse/build/console.png +0 -0
  67. data/doc/eclipse/build/problem.png +0 -0
  68. data/doc/eclipse/export.html +0 -39
  69. data/doc/eclipse/export/Script.png +0 -0
  70. data/doc/eclipse/export/Select.png +0 -0
  71. data/doc/eclipse/import.html +0 -31
  72. data/doc/eclipse/import/Import.png +0 -0
  73. data/doc/eclipse/import/Select.png +0 -0
  74. data/doc/eclipse/install.html +0 -26
  75. data/doc/eclipse/install/AddRepository.png +0 -0
  76. data/doc/eclipse/install/AvailableSoftware.png +0 -0
  77. data/doc/eclipse/install/InstallNewSoftware.png +0 -0
  78. data/doc/eclipse/install/Licenses.png +0 -0
  79. data/doc/eclipse/install/Restart.png +0 -0
  80. data/doc/eclipse/install/TrustMe.png +0 -0
  81. data/doc/eclipse/misc/pref.png +0 -0
  82. data/doc/eclipse/new.html +0 -17
  83. data/doc/eclipse/new/New.png +0 -0
  84. data/doc/eclipse/new/Result.png +0 -0
  85. data/doc/eclipse/new/Select.png +0 -0
  86. data/doc/eclipse/select/FirstSelect.png +0 -0
  87. data/doc/eclipse/select/SecondSelect.png +0 -0
  88. data/doc/eclipse/select/WrongSelect.png +0 -0
  89. data/doc/eclipse/use.html +0 -59
  90. data/doc/further/bakery/cmd.html +0 -33
  91. data/doc/further/bakery/syntax.html +0 -203
  92. data/doc/further/change.html +0 -525
  93. data/doc/further/collections.html +0 -21
  94. data/doc/further/internal.html +0 -42
  95. data/doc/further/issues.html +0 -20
  96. data/doc/further/perf.html +0 -54
  97. data/doc/index.html +0 -80
  98. data/doc/src/ok.png +0 -0
  99. data/doc/syntax/derive.html +0 -58
  100. data/doc/syntax/subst.html +0 -121
  101. data/doc/syntax/syntax.html +0 -718
  102. data/doc/vs/create.html +0 -16
  103. data/doc/vs/create/cvsp.png +0 -0
  104. data/doc/vs/debug.html +0 -50
  105. data/doc/vs/echse/echse.png +0 -0
  106. data/doc/vs/install.html +0 -28
  107. data/doc/vs/install/install1.png +0 -0
  108. data/doc/vs/install/install2010.png +0 -0
  109. data/doc/vs/install/installed.png +0 -0
  110. data/doc/vs/install/site.png +0 -0
  111. data/doc/vs/install/update.png +0 -0
  112. data/doc/vs/use.html +0 -24
  113. data/doc/vs/use/error.png +0 -0
  114. data/doc/vs/use/options.png +0 -0
  115. data/doc/vs/use/select.png +0 -0
  116. data/doc/vs/use/show.png +0 -0
@@ -5,7 +5,7 @@
5
5
  <head>
6
6
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
7
 
8
- <title>Why you should use bake &mdash; bake 2.11.4 documentation</title>
8
+ <title>Why you should use bake &mdash; bake 2.12.0 documentation</title>
9
9
 
10
10
  <link rel="stylesheet" href="../_static/basic.css" type="text/css" />
11
11
  <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
@@ -15,7 +15,7 @@
15
15
  <script type="text/javascript">
16
16
  var DOCUMENTATION_OPTIONS = {
17
17
  URL_ROOT: '../',
18
- VERSION: '2.11.4',
18
+ VERSION: '2.12.0',
19
19
  COLLAPSE_INDEX: false,
20
20
  FILE_SUFFIX: '.html',
21
21
  HAS_SOURCE: true
@@ -28,9 +28,9 @@
28
28
  <script type="text/javascript" src="../_static/js/jquery-fix.js"></script>
29
29
  <script type="text/javascript" src="../_static/bootstrap-3.3.4/js/bootstrap.min.js"></script>
30
30
  <script type="text/javascript" src="../_static/bootstrap-sphinx.js"></script>
31
- <link rel="top" title="bake 2.11.4 documentation" href="../index.html" />
31
+ <link rel="top" title="bake 2.12.0 documentation" href="../index.html" />
32
32
  <link rel="next" title="Install bake" href="../install/install_bake.html" />
33
- <link rel="prev" title="Welcome to bake’s documentation!" href="../index.html" />
33
+ <link rel="prev" title="bake 2.11.4" href="../index.html" />
34
34
  <meta charset='utf-8'>
35
35
  <meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'>
36
36
  <meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1'>
@@ -50,7 +50,7 @@
50
50
  </button>
51
51
  <a class="navbar-brand" href="../index.html">
52
52
  bake</a>
53
- <span class="navbar-text navbar-version pull-left"><b>2.11.4</b></span>
53
+ <span class="navbar-text navbar-version pull-left"><b></b></span>
54
54
  </div>
55
55
 
56
56
  <div class="collapse navbar-collapse nav-collapse">
@@ -107,7 +107,7 @@
107
107
 
108
108
 
109
109
  <li>
110
- <a href="../index.html" title="Previous Chapter: Welcome to bake’s documentation!"><span class="glyphicon glyphicon-chevron-left visible-sm"></span><span class="hidden-sm hidden-tablet">&laquo; Welcome to ba...</span>
110
+ <a href="../index.html" title="Previous Chapter: bake 2.11.4"><span class="glyphicon glyphicon-chevron-left visible-sm"></span><span class="hidden-sm hidden-tablet">&laquo; bake 2.11.4</span>
111
111
  </a>
112
112
  </li>
113
113
  <li>
data/lib/bake/util.rb CHANGED
@@ -133,7 +133,7 @@ def calc_def_roots(dir)
133
133
  if File.is_absolute?(line)
134
134
  def_roots << line
135
135
  else
136
- def_roots << File.dirname(rootsFile) + "/" + line
136
+ def_roots << File.expand_path(File.dirname(rootsFile) + "/" + line)
137
137
  end
138
138
  end
139
139
  end
data/lib/blocks/block.rb CHANGED
@@ -65,7 +65,7 @@ module Bake
65
65
  @configName = config.name
66
66
  @projectDir = config.get_project_dir
67
67
  @@block_counter = 0
68
- @result = false
68
+ @result = true
69
69
 
70
70
  @lib_elements = Bake::LibElements.calcLibElements(self)
71
71
  end
@@ -132,13 +132,16 @@ module Bake
132
132
  end
133
133
 
134
134
  def executeStep(step, method)
135
- @result = false
136
135
  begin
137
- @result = step.send(method)
136
+ @result = step.send(method) && @result
138
137
  rescue Bake::SystemCommandFailed => scf
138
+ @result = false
139
+ ProcessHelper.killProcess(true)
139
140
  rescue SystemExit => exSys
141
+ @result = false
140
142
  ProcessHelper.killProcess(true)
141
143
  rescue Exception => ex1
144
+ @result = false
142
145
  if not Bake::IDEInterface.instance.get_abort
143
146
  Bake.formatter.printError("Error: #{ex1.message}")
144
147
  puts ex1.backtrace if Bake.options.debug
@@ -148,7 +151,7 @@ module Bake
148
151
  if Bake::IDEInterface.instance.get_abort
149
152
  raise AbortException.new
150
153
  end
151
-
154
+
152
155
  return @result
153
156
  end
154
157
 
@@ -162,12 +165,12 @@ module Bake
162
165
  end
163
166
 
164
167
  def callSteps(method)
165
- @result = true
168
+
166
169
  preSteps.each do |step|
167
170
  @result = executeStep(step, method) if @result
168
171
  return false if not @result and Bake.options.stopOnFirstError
169
172
  end
170
-
173
+
171
174
  mainSteps.each do |step|
172
175
  @result = executeStep(step, method) if @result
173
176
  return false if not @result and Bake.options.stopOnFirstError
@@ -237,16 +240,13 @@ module Bake
237
240
  @visited = true
238
241
 
239
242
  depResult = callDeps(:startup)
240
- return false if not depResult and Bake.options.stopOnFirstError
241
243
 
242
244
  if Bake.options.verbose >= 1 and not startupSteps.empty?
243
245
  Bake.formatter.printAdditionalInfo "**** Starting up #{@projectName} (#{@configName}) ****"
244
246
  end
245
247
 
246
- @result = true
247
248
  startupSteps.each do |step|
248
- @result = executeStep(step, :startupStep) if @result
249
- return false if not @result and Bake.options.stopOnFirstError
249
+ @result = executeStep(step, :startupStep) && @result
250
250
  end
251
251
 
252
252
  return (depResult && @result)
@@ -257,16 +257,13 @@ module Bake
257
257
  @visited = true
258
258
 
259
259
  depResult = callDeps(:exits)
260
- return false if not depResult and Bake.options.stopOnFirstError
261
260
 
262
261
  if Bake.options.verbose >= 1 and not exitSteps.empty?
263
262
  Bake.formatter.printAdditionalInfo "**** Exiting #{@projectName} (#{@configName}) ****"
264
263
  end
265
264
 
266
- @result = true
267
265
  exitSteps.each do |step|
268
- @result = executeStep(step, :exitStep) if @result
269
- return false if not @result and Bake.options.stopOnFirstError
266
+ @result = executeStep(step, :exitStep) && @result
270
267
  end
271
268
 
272
269
  return (depResult && @result)
@@ -1,7 +1,7 @@
1
1
  module Bake
2
2
  class Version
3
3
  def self.number
4
- "2.11.4"
4
+ "2.12.0"
5
5
  end
6
6
  end
7
7
 
data/lib/tocxx.rb CHANGED
@@ -184,13 +184,15 @@ module Bake
184
184
  end
185
185
  end
186
186
 
187
- def callBlocks(startBlocks, method)
188
- Blocks::ALL_BLOCKS.each {|name,block| block.visited = false; block.result = false; block.inDeps = false }
187
+ def callBlocks(startBlocks, method, ignoreStopOnFirstError = false)
188
+ Blocks::ALL_BLOCKS.each {|name,block| block.visited = false; block.result = true; block.inDeps = false }
189
189
  Blocks::Block.reset_block_counter
190
190
  result = true
191
191
  startBlocks.each do |block|
192
192
  result = callBlock(block, method) && result
193
- return false if not result and Bake.options.stopOnFirstError
193
+ if not ignoreStopOnFirstError
194
+ return false if not result and Bake.options.stopOnFirstError
195
+ end
194
196
  end
195
197
  return result
196
198
  end
@@ -318,7 +320,7 @@ module Bake
318
320
 
319
321
  ideAbort = false
320
322
  begin
321
- result = callBlocks(startBlocks, :startup)
323
+ result = callBlocks(startBlocks, :startup, true)
322
324
  if Bake.options.clean or Bake.options.rebuild
323
325
  if not Bake.options.stopOnFirstError or result
324
326
  result = callBlocks(startBlocks, :clean) && result
@@ -332,9 +334,7 @@ module Bake
332
334
  rescue AbortException
333
335
  ideAbort = true
334
336
  end
335
- if not Bake.options.stopOnFirstError or result
336
- result = callBlocks(startBlocks, :exits) && result
337
- end
337
+ result = callBlocks(startBlocks, :exits, true) && result
338
338
 
339
339
  if ideAbort
340
340
  Bake.formatter.printError("\n#{taskType} aborted.")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bake-toolkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.11.4
4
+ version: 2.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Schaal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-02 00:00:00.000000000 Z
11
+ date: 2015-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rtext
@@ -153,74 +153,6 @@ files:
153
153
  - lib/tocxx.rb
154
154
  - lib/vs/options.rb
155
155
  - Rakefile.rb
156
- - doc/cmd/install.html
157
- - doc/cmd/mount.png
158
- - doc/cmd/ruby.png
159
- - doc/cmd/tty.png
160
- - doc/cmd/usecmd.html
161
- - doc/cmd/usecygwin.html
162
- - doc/concepts/buildhierarchy.html
163
- - doc/concepts/configfile.html
164
- - doc/concepts/hier.png
165
- - doc/concepts/mainproject.html
166
- - doc/deployDoc.bat
167
- - doc/dyk/clang.html
168
- - doc/dyk/keys.png
169
- - doc/dyk/lint.html
170
- - doc/dyk/tipps.html
171
- - doc/eclipse/build/buildFile.png
172
- - doc/eclipse/build/buildMain.png
173
- - doc/eclipse/build/console.png
174
- - doc/eclipse/build/problem.png
175
- - doc/eclipse/export.html
176
- - doc/eclipse/export/Script.png
177
- - doc/eclipse/export/Select.png
178
- - doc/eclipse/import.html
179
- - doc/eclipse/import/Import.png
180
- - doc/eclipse/import/Select.png
181
- - doc/eclipse/install.html
182
- - doc/eclipse/install/AddRepository.png
183
- - doc/eclipse/install/AvailableSoftware.png
184
- - doc/eclipse/install/InstallNewSoftware.png
185
- - doc/eclipse/install/Licenses.png
186
- - doc/eclipse/install/Restart.png
187
- - doc/eclipse/install/TrustMe.png
188
- - doc/eclipse/misc/pref.png
189
- - doc/eclipse/new.html
190
- - doc/eclipse/new/New.png
191
- - doc/eclipse/new/Result.png
192
- - doc/eclipse/new/Select.png
193
- - doc/eclipse/select/FirstSelect.png
194
- - doc/eclipse/select/SecondSelect.png
195
- - doc/eclipse/select/WrongSelect.png
196
- - doc/eclipse/use.html
197
- - doc/further/bakery/cmd.html
198
- - doc/further/bakery/syntax.html
199
- - doc/further/change.html
200
- - doc/further/collections.html
201
- - doc/further/internal.html
202
- - doc/further/issues.html
203
- - doc/further/perf.html
204
- - doc/index.html
205
- - doc/src/ok.png
206
- - doc/syntax/derive.html
207
- - doc/syntax/subst.html
208
- - doc/syntax/syntax.html
209
- - doc/vs/create.html
210
- - doc/vs/create/cvsp.png
211
- - doc/vs/debug.html
212
- - doc/vs/echse/echse.png
213
- - doc/vs/install.html
214
- - doc/vs/install/install1.png
215
- - doc/vs/install/install2010.png
216
- - doc/vs/install/installed.png
217
- - doc/vs/install/site.png
218
- - doc/vs/install/update.png
219
- - doc/vs/use.html
220
- - doc/vs/use/error.png
221
- - doc/vs/use/options.png
222
- - doc/vs/use/select.png
223
- - doc/vs/use/show.png
224
156
  - documentation/_build/html/_images/AddRepository.png
225
157
  - documentation/_build/html/_images/AvailableSoftware.png
226
158
  - documentation/_build/html/_images/FirstSelect.png
data/doc/cmd/install.html DELETED
@@ -1,74 +0,0 @@
1
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
- <html>
3
- <head>
4
- <title>Documentation of the bake-tookit</title>
5
- <style type="text/css">
6
- #rundrum {
7
- border-width:1px;
8
- border-style:dashed;
9
- border-color:blue;
10
- padding:0.2cm;
11
- text-align:justify; }
12
- }
13
- </style>
14
- </head>
15
- <body>
16
- <h1>How to install bake command line tool</h1>
17
-
18
- bake is a ruby gem. It runs with ruby 1.9 and above.
19
- <p>
20
- bake and its depedencies can be found on rubygems, which is configured as ruby source per default. Type "gem sources" if you wish to check that.<br>
21
- Installing bake is very easy:
22
- <pre id="rundrum"><code>gem install bake-toolkit</code></pre>
23
- <p>
24
-
25
- This is how the installation could look like:
26
-
27
-
28
- <pre id="rundrum"><code>>>> gem install bake-toolkit
29
- Fetching: highline-1.6.15.gem (100%)
30
- Fetching: colored-1.2.gem (100%)
31
- Fetching: progressbar-0.11.0.gem (100%)
32
- Fetching: rgen-0.6.0.gem (100%)
33
- Fetching: rtext-0.2.0.gem (100%)
34
- Fetching: bake-toolkit-1.0.2.gem (100%)
35
- Successfully installed highline-1.6.15
36
- Successfully installed colored-1.2
37
- Successfully installed progressbar-0.11.0
38
- Successfully installed rgen-0.6.0
39
- Successfully installed rtext-0.2.0
40
- Successfully installed bake-toolkit-1.0.2
41
- 7 gems installed
42
- Installing ri documentation for highline-1.6.15...
43
- Installing ri documentation for colored-1.2...
44
- Installing ri documentation for progressbar-0.11.0...
45
- Installing ri documentation for rgen-0.6.0...
46
- Installing ri documentation for rtext-0.2.0...
47
- Installing ri documentation for bake-toolkit-1.0.2...
48
- Installing RDoc documentation for highline-1.6.15...
49
- Installing RDoc documentation for colored-1.2...
50
- Installing RDoc documentation for progressbar-0.11.0...
51
- Installing RDoc documentation for rgen-0.6.0...
52
- Installing RDoc documentation for rtext-0.2.0...
53
- Installing RDoc documentation for bake-toolkit-1.0.2...</code></pre>
54
-
55
- <h2>Problems</h2>
56
- <ul>
57
- <li>If the installation does not start, it might be a problem of a password protected internet proxy. Unlock the proxy by opening an external webpage e.g. google.
58
-
59
- <li>Note, that the error parsers in bake assume English language. It depends on the system and compiler how to switch the language. One possibility is to set the environment variable LC_ALL:
60
-
61
- <pre id="rundrum"><code>LC_ALL=en_US</code></pre>
62
-
63
- <li>Don't worry if you get an error like this:
64
-
65
- <pre id="rundrum"><code>ERROR: While generating documentation for ...
66
- ... MESSAGE: Error while evaluating ...
67
- undefined method `gsub' for nil:NilClass ...</code></pre>
68
- It's a ruby bug. However, the gems were installed correctly. You can avoid building the documentation by installing bake like this:
69
-
70
- <pre id="rundrum"><code> gem install bake-toolkit --no-rdoc --no-ri</code></pre>
71
- </ul>
72
- </body>
73
-
74
- </html>
data/doc/cmd/mount.png DELETED
Binary file
data/doc/cmd/ruby.png DELETED
Binary file
data/doc/cmd/tty.png DELETED
Binary file
data/doc/cmd/usecmd.html DELETED
@@ -1,80 +0,0 @@
1
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
- <html>
3
- <head>
4
- <title>Documentation of the bake-tookit</title>
5
- <style type="text/css">
6
- #rundrum {
7
- border-width:1px;
8
- border-style:dashed;
9
- border-color:blue;
10
- padding:0.2cm;
11
- text-align:justify; }
12
- }
13
- </style>
14
- </head>
15
- <body>
16
- <h1>How to use bake on command line</h1>
17
- Call <b>bake -h</b> to display the command line options.
18
- <p>
19
- The most important options are:
20
- <ul>
21
- <li><b>-b</b> the build configuration name
22
- <li><b>-m</b> the main project directory (default is current directory)
23
- <li><b>-p</b> the project to build (if not specified, the main project will be built with all dependencies) - note, that ALL configs of the project will be built,
24
- which is usually just one config, but if you have more than one config of the project in the workspace, use a comma separator.
25
- </ul>
26
-
27
- <h2>Examples</h2>
28
-
29
- If you want to build your application, switch to the directory of the main project and call (assuming "Debug" is a valid build setup name):
30
-
31
- <pre id="rundrum"><code>bake -b Debug</code></pre>
32
-
33
- It is possible to omit "-b":
34
-
35
- <pre id="rundrum"><code>bake Debug</code></pre>
36
-
37
- It Debug is the default configuration, it's just:
38
-
39
- <pre id="rundrum"><code>bake</code></pre>
40
-
41
- If you are not in the directory of the main project you want to build:
42
-
43
- <pre id="rundrum"><code>bake Debug -m w:/root/mainProj</code></pre>
44
-
45
- Building just mainProj project:
46
-
47
- <pre id="rundrum"><code>bake Debug -m w:/root1/myProj -p myProj</code></pre>
48
-
49
- Assuming mainProj has several configs really included in the build (which is uncommon), you can choose one of the configs like this:
50
-
51
- <pre id="rundrum"><code>bake Debug -m w:/root1/myProj -p myProj,abc</code></pre>
52
-
53
- Code has been checked out into two roots, the console supports ansi colors, you want to stop on first error and build only the project bspAbc:
54
-
55
- <pre id="rundrum"><code>bake Debug -m w:/root1/myProj -w w:/root1 -w w:/root2 -r -a black -p bspAbc</code></pre>
56
-
57
- To clean the project(s), just add "-c":
58
-
59
- <pre id="rundrum"><code>bake Debug -m w:/root1/myProj -w w:/root1 -w w:/root2 -r -a black -p bspAbc -c</code></pre>
60
-
61
- To build single file(s), use "-f". All files matching this pattern will be compiled (no wildcards allowed):
62
-
63
- <pre id="rundrum"><code>bake Debug -p bspAbc -f main.cpp
64
- bake Debug -f .asm</code></pre>
65
-
66
- <h2>roots.bake</h2>
67
-
68
- Workspace roots can be defined in a file called "roots.bake", which will be searched from main project directory to root folder. Example:
69
-
70
- <pre id="rundrum"><code>../..
71
- C:/another/root # comments written like this
72
- something/else</code></pre>
73
-
74
- If -w and roots.bake are not specified, the default workspace root is the parent directory of the main project.
75
-
76
-
77
-
78
- </body>
79
-
80
- </html>