bake-toolkit 2.27.0 → 2.28.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. checksums.yaml +4 -4
  2. data/bin/bakeqac +3 -3
  3. data/documentation/_build/html/_sources/changelog.txt +9 -1
  4. data/documentation/_build/html/_sources/concepts/prebuild.txt +1 -1
  5. data/documentation/_build/html/_sources/index.txt +1 -1
  6. data/documentation/_build/html/_sources/known_issues.txt +0 -2
  7. data/documentation/_build/html/_sources/tips_and_tricks/static_code_analysis.txt +122 -122
  8. data/documentation/_build/html/_sources/tips_and_tricks/tips_and_tricks.txt +0 -1
  9. data/documentation/_build/html/_static/syntax.html +18 -13
  10. data/documentation/_build/html/changelog.html +11 -1
  11. data/documentation/_build/html/concepts/build_hierarchy.html +1 -1
  12. data/documentation/_build/html/concepts/inject.html +1 -1
  13. data/documentation/_build/html/concepts/link_order.html +1 -1
  14. data/documentation/_build/html/concepts/prebuild.html +1 -1
  15. data/documentation/_build/html/concepts/the_main_project.html +1 -1
  16. data/documentation/_build/html/concepts/the_project_meta_file.html +1 -1
  17. data/documentation/_build/html/ide/eclipse/eclipse.html +1 -1
  18. data/documentation/_build/html/ide/eclipse/how_to_convert_existing_cdt_workspace.html +1 -1
  19. data/documentation/_build/html/ide/eclipse/how_to_create_a_new_project_in_eclipse.html +1 -1
  20. data/documentation/_build/html/ide/eclipse/how_to_create_a_workspace_in_eclipse.html +1 -1
  21. data/documentation/_build/html/ide/eclipse/how_to_debug_in_eclipse.html +1 -1
  22. data/documentation/_build/html/ide/eclipse/how_to_install_eclipse_plugin.html +1 -1
  23. data/documentation/_build/html/ide/eclipse/how_to_use_bake_in_eclipse.html +1 -1
  24. data/documentation/_build/html/ide/vs/how_to_create_vs_projects.html +1 -1
  25. data/documentation/_build/html/ide/vs/how_to_debug_in_vs.html +3 -3
  26. data/documentation/_build/html/ide/vs/how_to_used_bake_in_vs.html +1 -1
  27. data/documentation/_build/html/ide/vs/vs.html +1 -1
  28. data/documentation/_build/html/ide/vs/vs_install.html +1 -1
  29. data/documentation/_build/html/index.html +4 -5
  30. data/documentation/_build/html/install/install_bake.html +1 -1
  31. data/documentation/_build/html/internal.html +1 -1
  32. data/documentation/_build/html/known_issues.html +1 -3
  33. data/documentation/_build/html/license.html +1 -1
  34. data/documentation/_build/html/performance/performance.html +3 -3
  35. data/documentation/_build/html/quickstart/quickstart.html +1 -1
  36. data/documentation/_build/html/searchindex.js +1 -1
  37. data/documentation/_build/html/syntax/auto_adjustment.html +1 -1
  38. data/documentation/_build/html/syntax/derive_configs.html +1 -1
  39. data/documentation/_build/html/syntax/project_meta_syntax.html +18 -13
  40. data/documentation/_build/html/syntax/variable_substitutions.html +1 -1
  41. data/documentation/_build/html/tips_and_tricks/dot.html +4 -4
  42. data/documentation/_build/html/tips_and_tricks/how_to_use_bake_with_cygwin.html +4 -4
  43. data/documentation/_build/html/tips_and_tricks/static_code_analysis.html +284 -284
  44. data/documentation/_build/html/tips_and_tricks/the_bakery.html +6 -6
  45. data/documentation/_build/html/tips_and_tricks/the_clang.html +2 -2
  46. data/documentation/_build/html/tips_and_tricks/tips_and_tricks.html +0 -1
  47. data/documentation/_build/html/why_bake/why_bake.html +3 -3
  48. data/lib/bake/model/metamodel.rb +2 -6
  49. data/lib/bake/model/metamodel_ext.rb +9 -0
  50. data/lib/bake/options/options.rb +11 -38
  51. data/lib/bake/options/usage.rb +1 -10
  52. data/lib/bake/subst.rb +12 -3
  53. data/lib/bake/toolchain/provider.rb +1 -3
  54. data/lib/bake/util.rb +0 -7
  55. data/lib/blocks/block.rb +2 -0
  56. data/lib/blocks/blockBase.rb +2 -8
  57. data/lib/blocks/commandLine.rb +3 -3
  58. data/lib/blocks/compile.rb +0 -2
  59. data/lib/blocks/executable.rb +1 -3
  60. data/lib/blocks/fileList.rb +53 -0
  61. data/lib/blocks/has_execute_command.rb +2 -2
  62. data/lib/blocks/library.rb +0 -2
  63. data/lib/blocks/makefile.rb +4 -4
  64. data/lib/common/version.rb +1 -1
  65. data/lib/tocxx.rb +39 -37
  66. metadata +3 -6
  67. data/lib/bake/bundle.rb +0 -159
  68. data/lib/bake/toolchain/errorparser/lint_error_parser.rb +0 -34
  69. data/lib/bake/toolchain/lint.rb +0 -19
  70. data/lib/blocks/lint.rb +0 -56
@@ -30,9 +30,9 @@
30
30
  <script type="text/javascript" src="../_static/bootstrap-sphinx.js"></script>
31
31
  <link rel="shortcut icon" href="../_static/logo_tiny_32.ico"/>
32
32
  <link rel="top" title="bake documentation" href="../index.html" />
33
- <link rel="up" title="Tips and Tricks" href="tips_and_tricks.html" />
34
- <link rel="next" title="Static Code Analysis" href="static_code_analysis.html" />
35
- <link rel="prev" title="Tips and Tricks" href="tips_and_tricks.html" />
33
+ <link rel="up" title="Additional features" href="tips_and_tricks.html" />
34
+ <link rel="next" title="How to use bake with cygwin" href="how_to_use_bake_with_cygwin.html" />
35
+ <link rel="prev" title="Additional features" href="tips_and_tricks.html" />
36
36
  <meta charset='utf-8'>
37
37
  <meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'>
38
38
  <meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1'>
@@ -75,7 +75,7 @@
75
75
  <li class="toctree-l1"><a class="reference internal" href="../syntax/syntax.html">Syntax</a></li>
76
76
  <li class="toctree-l1"><a class="reference internal" href="../commandline/commandline.html">Commandline</a></li>
77
77
  <li class="toctree-l1"><a class="reference internal" href="../ide/ide_integrations.html">IDE Support</a></li>
78
- <li class="toctree-l1 current"><a class="reference internal" href="tips_and_tricks.html">Tips and Tricks</a></li>
78
+ <li class="toctree-l1 current"><a class="reference internal" href="tips_and_tricks.html">Additional features</a></li>
79
79
  <li class="toctree-l1"><a class="reference internal" href="../performance/performance.html">Performance</a></li>
80
80
  <li class="toctree-l1"><a class="reference internal" href="../known_issues.html">Known Issues</a></li>
81
81
  <li class="toctree-l1"><a class="reference internal" href="../changelog.html">Changelog</a></li>
@@ -111,11 +111,11 @@
111
111
 
112
112
 
113
113
  <li>
114
- <a href="tips_and_tricks.html" title="Previous Chapter: Tips and Tricks"><span class="glyphicon glyphicon-chevron-left visible-sm"></span><span class="hidden-sm hidden-tablet">&laquo; Tips and Tricks</span>
114
+ <a href="tips_and_tricks.html" title="Previous Chapter: Additional features"><span class="glyphicon glyphicon-chevron-left visible-sm"></span><span class="hidden-sm hidden-tablet">&laquo; Additional fe...</span>
115
115
  </a>
116
116
  </li>
117
117
  <li>
118
- <a href="static_code_analysis.html" title="Next Chapter: Static Code Analysis"><span class="glyphicon glyphicon-chevron-right visible-sm"></span><span class="hidden-sm hidden-tablet">Static Code A... &raquo;</span>
118
+ <a href="how_to_use_bake_with_cygwin.html" title="Next Chapter: How to use bake with cygwin"><span class="glyphicon glyphicon-chevron-right visible-sm"></span><span class="hidden-sm hidden-tablet">How to use ba... &raquo;</span>
119
119
  </a>
120
120
  </li>
121
121
 
@@ -30,7 +30,7 @@
30
30
  <script type="text/javascript" src="../_static/bootstrap-sphinx.js"></script>
31
31
  <link rel="shortcut icon" href="../_static/logo_tiny_32.ico"/>
32
32
  <link rel="top" title="bake documentation" href="../index.html" />
33
- <link rel="up" title="Tips and Tricks" href="tips_and_tricks.html" />
33
+ <link rel="up" title="Additional features" href="tips_and_tricks.html" />
34
34
  <link rel="next" title="Generating dot graphs" href="dot.html" />
35
35
  <link rel="prev" title="How to use bake with cygwin" href="how_to_use_bake_with_cygwin.html" />
36
36
  <meta charset='utf-8'>
@@ -75,7 +75,7 @@
75
75
  <li class="toctree-l1"><a class="reference internal" href="../syntax/syntax.html">Syntax</a></li>
76
76
  <li class="toctree-l1"><a class="reference internal" href="../commandline/commandline.html">Commandline</a></li>
77
77
  <li class="toctree-l1"><a class="reference internal" href="../ide/ide_integrations.html">IDE Support</a></li>
78
- <li class="toctree-l1 current"><a class="reference internal" href="tips_and_tricks.html">Tips and Tricks</a></li>
78
+ <li class="toctree-l1 current"><a class="reference internal" href="tips_and_tricks.html">Additional features</a></li>
79
79
  <li class="toctree-l1"><a class="reference internal" href="../performance/performance.html">Performance</a></li>
80
80
  <li class="toctree-l1"><a class="reference internal" href="../known_issues.html">Known Issues</a></li>
81
81
  <li class="toctree-l1"><a class="reference internal" href="../changelog.html">Changelog</a></li>
@@ -146,7 +146,6 @@
146
146
  <div class="toctree-wrapper compound">
147
147
  <ul>
148
148
  <li class="toctree-l1"><a class="reference internal" href="the_bakery.html">The Bakery</a></li>
149
- <li class="toctree-l1"><a class="reference internal" href="static_code_analysis.html">Static Code Analysis</a></li>
150
149
  <li class="toctree-l1"><a class="reference internal" href="how_to_use_bake_with_cygwin.html">How to use bake with cygwin</a></li>
151
150
  <li class="toctree-l1"><a class="reference internal" href="the_clang.html">Clang Analyze</a></li>
152
151
  <li class="toctree-l1"><a class="reference internal" href="dot.html">Generating dot graphs</a></li>
@@ -31,7 +31,7 @@
31
31
  <link rel="shortcut icon" href="../_static/logo_tiny_32.ico"/>
32
32
  <link rel="top" title="bake documentation" href="../index.html" />
33
33
  <link rel="next" title="Install bake" href="../install/install_bake.html" />
34
- <link rel="prev" title="bake 2.21.0" href="../index.html" />
34
+ <link rel="prev" title="bake 2.28.0" href="../index.html" />
35
35
  <meta charset='utf-8'>
36
36
  <meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'>
37
37
  <meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1'>
@@ -74,7 +74,7 @@
74
74
  <li class="toctree-l1"><a class="reference internal" href="../syntax/syntax.html">Syntax</a></li>
75
75
  <li class="toctree-l1"><a class="reference internal" href="../commandline/commandline.html">Commandline</a></li>
76
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">Tips and Tricks</a></li>
77
+ <li class="toctree-l1"><a class="reference internal" href="../tips_and_tricks/tips_and_tricks.html">Additional features</a></li>
78
78
  <li class="toctree-l1"><a class="reference internal" href="../performance/performance.html">Performance</a></li>
79
79
  <li class="toctree-l1"><a class="reference internal" href="../known_issues.html">Known Issues</a></li>
80
80
  <li class="toctree-l1"><a class="reference internal" href="../changelog.html">Changelog</a></li>
@@ -108,7 +108,7 @@
108
108
 
109
109
 
110
110
  <li>
111
- <a href="../index.html" title="Previous Chapter: bake 2.21.0"><span class="glyphicon glyphicon-chevron-left visible-sm"></span><span class="hidden-sm hidden-tablet">&laquo; bake 2.21.0</span>
111
+ <a href="../index.html" title="Previous Chapter: bake 2.28.0"><span class="glyphicon glyphicon-chevron-left visible-sm"></span><span class="hidden-sm hidden-tablet">&laquo; bake 2.28.0</span>
112
112
  </a>
113
113
  </li>
114
114
  <li>
@@ -75,10 +75,6 @@ module Bake
75
75
  contains_one 'internalDefines', InternalDefines, 'parent'
76
76
  end
77
77
 
78
- class LintPolicy < ModelElement
79
- has_attr 'name', String, :defaultValueLiteral => ""
80
- end
81
-
82
78
  class Docu < ModelElement
83
79
  has_attr 'name', String, :defaultValueLiteral => ""
84
80
  end
@@ -90,7 +86,6 @@ module Bake
90
86
  contains_many 'compiler', Compiler, 'parent'
91
87
  contains_one 'archiver', Archiver, 'parent'
92
88
  contains_one 'linker', Linker, 'parent'
93
- contains_many 'lintPolicy', LintPolicy, 'parent'
94
89
  contains_one 'internalIncludes', InternalIncludes, 'parent'
95
90
  contains_one 'docu', Docu, 'parent'
96
91
  end
@@ -100,7 +95,6 @@ module Bake
100
95
  contains_many 'compiler', Compiler, 'parent'
101
96
  contains_one 'archiver', Archiver, 'parent'
102
97
  contains_one 'linker', Linker, 'parent'
103
- contains_many 'lintPolicy', LintPolicy, 'parent'
104
98
  contains_one 'docu', Docu, 'parent'
105
99
  end
106
100
 
@@ -179,6 +173,7 @@ module Bake
179
173
  has_attr 'name', String, :defaultValueLiteral => ""
180
174
  has_attr 'default', String, :defaultValueLiteral => "on"
181
175
  has_attr 'filter', String, :defaultValueLiteral => ""
176
+ has_attr 'echo', String, :defaultValueLiteral => "on"
182
177
  has_many_attr 'validExitCodes', Integer
183
178
  end
184
179
 
@@ -232,6 +227,7 @@ module Bake
232
227
  has_attr 'extends', String, :defaultValueLiteral => ""
233
228
  has_attr 'type', String, :defaultValueLiteral => ""
234
229
  has_attr 'project', String, :defaultValueLiteral => ""
230
+ has_attr 'private', Boolean, :defaultValueLiteral => "false"
235
231
  contains_one 'description', Description, 'parent'
236
232
  contains_one 'startupSteps', StartupSteps, 'parent'
237
233
  contains_one 'preSteps', PreSteps, 'parent'
@@ -27,6 +27,15 @@ module Bake
27
27
  def includeDir
28
28
  baseElement.find_all { |l| IncludeDir === l }
29
29
  end
30
+ def setEnvVar(name, value)
31
+ @envVar ||= {}
32
+ @envVar[name] = value
33
+ end
34
+ def writeEnvVars()
35
+ @envVar.each do |name, value|
36
+ ENV[name] = value
37
+ end if defined?(@envVar)
38
+ end
30
39
  end
31
40
 
32
41
  end
@@ -5,7 +5,6 @@ require 'bake/options/showLicense'
5
5
  require 'bake/options/showDoc'
6
6
  require 'bake/options/usage'
7
7
  require 'bake/options/create'
8
- require 'bake/bundle'
9
8
 
10
9
  module Bake
11
10
 
@@ -18,11 +17,11 @@ module Bake
18
17
 
19
18
  class Options < Parser
20
19
  attr_accessor :build_config, :nocache, :analyze, :eclipseOrder, :envToolchain, :showConfigs
21
- attr_reader :main_dir, :project, :filename, :main_project_name, :bundleDir, :buildDirDelimiter, :dot, :cc2j_filename # String
20
+ attr_reader :main_dir, :project, :filename, :main_project_name, :buildDirDelimiter, :dot, :cc2j_filename # String
22
21
  attr_reader :roots, :include_filter, :exclude_filter, :adapt # String List
23
- attr_reader :conversion_info, :stopOnFirstError, :clean, :rebuild, :show_includes, :show_includes_and_defines, :projectPaths, :qac # Boolean
24
- attr_reader :linkOnly, :compileOnly, :no_autodir, :clobber, :lint, :docu, :debug, :prepro, :oldLinkOrder, :prebuild, :printTime, :json, :wparse # Boolean
25
- attr_reader :threads, :socket, :lint_min, :lint_max # Fixnum
22
+ attr_reader :file_list, :conversion_info, :stopOnFirstError, :clean, :rebuild, :show_includes, :show_includes_and_defines, :projectPaths, :qac # Boolean
23
+ attr_reader :linkOnly, :compileOnly, :no_autodir, :clobber, :docu, :debug, :prepro, :oldLinkOrder, :prebuild, :printTime, :json, :wparse # Boolean
24
+ attr_reader :threads, :socket # Fixnum
26
25
  attr_reader :vars # map
27
26
  attr_reader :verbose
28
27
  attr_reader :consoleOutput_fullnames, :consoleOutput_visualStudio
@@ -40,6 +39,7 @@ module Bake
40
39
  @buildDirDelimiter = "/"
41
40
  @oldLinkOrder = false
42
41
  @conversion_info = false
42
+ @file_list = false
43
43
  @envToolchain = false
44
44
  @analyze = false
45
45
  @eclipseOrder = false
@@ -58,7 +58,6 @@ module Bake
58
58
  @json = false
59
59
  @clean = false
60
60
  @clobber = false
61
- @lint = false
62
61
  @docu = false
63
62
  @debug = false
64
63
  @rebuild = false
@@ -69,8 +68,6 @@ module Bake
69
68
  @compileOnly = false
70
69
  @no_autodir = false
71
70
  @threads = 8
72
- @lint_min = 0
73
- @lint_max = -1
74
71
  @roots = []
75
72
  @socket = 0
76
73
  @include_filter = []
@@ -78,7 +75,6 @@ module Bake
78
75
  @def_roots = []
79
76
  @main_project_name = ""
80
77
  @adapt = []
81
- @bundleDir = nil
82
78
 
83
79
  add_option(["-b", "" ], lambda { |x| set_build_config(x) })
84
80
  add_option(["-m" ], lambda { |x| set_main_dir(x) })
@@ -93,12 +89,10 @@ module Bake
93
89
  add_option(["--link-only", "--link_only" ], lambda { @linkOnly = true; })
94
90
  add_option(["--compile-only", "--compile_only" ], lambda { @compileOnly = true; })
95
91
  add_option(["--no-autodir", "--no_autodir" ], lambda { @no_autodir = true })
96
- add_option(["--lint" ], lambda { @lint = true })
97
- add_option(["--lint-min", "--lint_min" ], lambda { |x| @lint_min = String === x ? x.to_i : x })
98
- add_option(["--lint-max", "--lint_max" ], lambda { |x| @lint_max = String === x ? x.to_i : x })
99
92
 
100
93
  add_option(["--create" ], lambda { |x| Bake::Create.proj(x) })
101
94
  add_option(["--conversion-info", "--conversion_info" ], lambda { @conversion_info = true })
95
+ add_option(["--file-list", "--file_list" ], lambda { @file_list = true })
102
96
  add_option(["--filter-paths" ], lambda { @projectPaths = true })
103
97
  add_option(["--qac" ], lambda { @qac = true })
104
98
 
@@ -124,11 +118,6 @@ module Bake
124
118
  add_option(["--do", "--include_filter" ], lambda { |x| @include_filter << x })
125
119
  add_option(["--omit", "--exclude_filter" ], lambda { |x| @exclude_filter << x })
126
120
  add_option(["--abs-paths", "--show_abs_paths" ], lambda { @consoleOutput_fullnames = true })
127
- add_option(["--bundle" ], lambda { |x| Bake::Usage.bundle })
128
- add_option(["--bundle" ], lambda { Bake::Usage.bundle })
129
- # add_option(["--bundle" ], lambda { |x| set_bundle_dir(x) })
130
- # OLD flag renamed in case someone uses this feature
131
- add_option(["--bundleDeprecated" ], lambda { |x| set_bundle_dir(x) })
132
121
  add_option(["--prebuild" ], lambda { @prebuild = true })
133
122
  add_option(["--Wparse" ], lambda { @wparse = true })
134
123
 
@@ -157,7 +146,6 @@ module Bake
157
146
  end
158
147
 
159
148
  def parse_options()
160
- Bake::Bundle.instance.cleanup()
161
149
  parse_internal(false)
162
150
  set_main_dir(Dir.pwd) if @main_dir.nil?
163
151
  @roots += @def_roots
@@ -171,7 +159,11 @@ module Bake
171
159
  end
172
160
  end
173
161
 
174
- if @conversion_info
162
+ if @conversion_info || @file_list
163
+ if @conversion_info && @file_list
164
+ Bake.formatter.printError("Error: --conversion-info and --file-list not allowed at the same time")
165
+ ExitHelper.exit(1)
166
+ end
175
167
  if @rebuild
176
168
  Bake.formatter.printError("Error: --conversion-info and --rebuild not allowed at the same time")
177
169
  ExitHelper.exit(1)
@@ -192,18 +184,10 @@ module Bake
192
184
  Bake.formatter.printError("Error: --conversion-info and --compileOnly not allowed at the same time")
193
185
  ExitHelper.exit(1)
194
186
  end
195
- if @lint
196
- Bake.formatter.printError("Error: --conversion-info and --lint not allowed at the same time")
197
- ExitHelper.exit(1)
198
- end
199
187
  if @docu
200
188
  Bake.formatter.printError("Error: --conversion-info and --docu not allowed at the same time")
201
189
  ExitHelper.exit(1)
202
190
  end
203
- if not @project
204
- Bake.formatter.printError("Error: --conversion-info must be used with -p")
205
- ExitHelper.exit(1)
206
- end
207
191
  end
208
192
 
209
193
  if @linkOnly
@@ -247,11 +231,6 @@ module Bake
247
231
  end
248
232
  end
249
233
 
250
- if @lint and @docu
251
- Bake.formatter.printError("Error: --lint and --docu not allowed at the same time")
252
- ExitHelper.exit(1)
253
- end
254
-
255
234
  @filename = "." if @compileOnly
256
235
 
257
236
  end
@@ -282,12 +261,6 @@ module Bake
282
261
  @def_roots = calc_def_roots(@main_dir)
283
262
  end
284
263
 
285
- def set_bundle_dir(dir)
286
- d = File.expand_path(dir.gsub(/[\\]/,'/'))
287
- Bake::Bundle.instance.setOutputDir(d)
288
- end
289
-
290
-
291
264
  def set_root(dir)
292
265
  check_valid_dir(dir)
293
266
  r = File.expand_path(dir.gsub(/[\\]/,'/'))
@@ -31,10 +31,6 @@ module Bake
31
31
  puts " Forces executables to be relinked."
32
32
  puts " --compile-only Only the compile steps are executed, equivalent to -f '.'"
33
33
  puts " --generate-doc Builds docu instead of compiling sources."
34
- puts " --lint Performs Lint checks instead of compiling sources."
35
- puts " --lint-min <num> If number of files in a project is too large for lint to handle, it is possible"
36
- puts " to specify only a part of the file list to lint (default -1)."
37
- puts " --lint-max <num> See above (default -1)."
38
34
  puts " --ignore-cache Rereads the original meta files - usefull if workspace structure has been changed."
39
35
  puts " -j <num> Set NUMBER of parallel compiled files (default is 8)."
40
36
  puts " --socket <num> Set SOCKET for sending errors, receiving commands, etc. - used by e.g. Eclipse."
@@ -53,7 +49,7 @@ module Bake
53
49
  puts " --incs-and-defs=json Prints includes and defines of all projects in json format"
54
50
  puts " --incs-and-defs=bake Used by IDEs plugins"
55
51
  puts " --conversion-info Prints infos for an external tool which converts bake configs for other build systems"
56
- # puts " --bundle <dir> Bundles the output (experimental, description will follow)"
52
+ puts " --file-list Prints all files which will be built"
57
53
  puts " --prebuild Does not build configs which are marked as 'prebuild', this feature is used for distributions."
58
54
  puts " --compilation-db [<fn>] Writes compilation information into filename fn in json format, default for fn is compilation-db.json"
59
55
  puts " --create exe|lib|custom Creates a project with exe, lib or custom template"
@@ -68,11 +64,6 @@ module Bake
68
64
  ExitHelper.exit(0)
69
65
  end
70
66
 
71
- def self.bundle
72
- puts "\nOption --bundle not supported anymore, please contact the author via github if still needed."
73
- ExitHelper.exit(1)
74
- end
75
-
76
67
  end
77
68
 
78
69
  end
@@ -85,7 +85,10 @@ module Bake
85
85
  Bake.formatter.printWarning("Name of variable must not be empty - variable will be ignored", s)
86
86
  else
87
87
  @@userVarMap[s.name] = substString(s.value, s)
88
- ENV[s.name] = @@userVarMap[s.name] if s.env
88
+ if s.env
89
+ ENV[s.name] = @@userVarMap[s.name]
90
+ config.setEnvVar(s.name, @@userVarMap[s.name])
91
+ end
89
92
  end
90
93
  else
91
94
  cmd_result = false
@@ -95,7 +98,10 @@ module Bake
95
98
  cmd = [substString(s.cmd, s)]
96
99
  cmd_result, consoleOutput = ProcessHelper.run(cmd)
97
100
  @@userVarMap[s.name] = consoleOutput.chomp
98
- ENV[s.name] = @@userVarMap[s.name] if s.env
101
+ if s.env
102
+ ENV[s.name] = @@userVarMap[s.name]
103
+ config.setEnvVar(s.name, @@userVarMap[s.name])
104
+ end
99
105
  end
100
106
  rescue Exception=>e
101
107
  consoleOutput = e.message
@@ -103,7 +109,10 @@ module Bake
103
109
  if (cmd_result == false)
104
110
  Bake.formatter.printWarning("Command not successful, variable #{s.name} will be set to \"\" (#{consoleOutput.chomp}).", s)
105
111
  @@userVarMap[s.name] = ""
106
- ENV[s.name] = "" if s.env
112
+ if s.env
113
+ ENV[s.name] = ""
114
+ config.setEnvVar(s.name, "")
115
+ end
107
116
  end
108
117
  end
109
118
 
@@ -110,7 +110,6 @@ module Bake
110
110
  :CLEAN => "clean"
111
111
  },
112
112
 
113
- :LINT_POLICY => [],
114
113
  :DEP_FILE_SINGLE_LINE => false,
115
114
  :DOCU => ""
116
115
  }
@@ -137,7 +136,7 @@ module Bake
137
136
  end
138
137
 
139
138
  def self.list
140
- return @@settings.delete_if {|x| x.include?"Lint" }
139
+ return @@settings
141
140
  end
142
141
 
143
142
  end
@@ -147,7 +146,6 @@ end
147
146
 
148
147
  require 'bake/toolchain/diab'
149
148
  require 'bake/toolchain/gcc'
150
- require 'bake/toolchain/lint'
151
149
  require 'bake/toolchain/clang'
152
150
  require 'bake/toolchain/clang_analyze'
153
151
  require 'bake/toolchain/ti'
@@ -50,16 +50,9 @@ def integrateToolchain(tcs, toolchain)
50
50
  toolchain.compiler.each do |c|
51
51
  integrateCompiler(tcs, c, c.ctype)
52
52
  end
53
- integrateLintPolicy(tcs, toolchain.lintPolicy)
54
53
  integrateDocu(tcs, toolchain.docu) if toolchain.docu
55
54
  end
56
55
 
57
- def integrateLintPolicy(tcs, policies)
58
- policies.each do |d|
59
- tcs[:LINT_POLICY] << d.name
60
- end
61
- end
62
-
63
56
  def integrateDocu(tcs, docu)
64
57
  tcs[:DOCU] = docu.name if docu.name != ""
65
58
  end
@@ -205,6 +205,8 @@ module Bake
205
205
 
206
206
  def callSteps(method)
207
207
 
208
+ @config.writeEnvVars()
209
+
208
210
  preSteps.each do |step|
209
211
  @result = executeStep(step, method) if @result
210
212
  return false if not @result and Bake.options.stopOnFirstError
@@ -1,5 +1,3 @@
1
- require 'bake/bundle'
2
-
3
1
  module Bake
4
2
  module Blocks
5
3
 
@@ -166,11 +164,7 @@ module Bake
166
164
  console_output = console_output_VS
167
165
  end
168
166
 
169
- if Bake.options.lint
170
- # ignore error output
171
- else
172
- ret = error_descs.any? { |e| e.severity == ErrorParser::SEVERITY_ERROR }
173
- end
167
+ ret = error_descs.any? { |e| e.severity == ErrorParser::SEVERITY_ERROR }
174
168
 
175
169
  console_output.gsub!(/[\r]/, "")
176
170
  Bake.formatter.format(console_output, error_descs, error_parser) unless console_output.empty?
@@ -191,7 +185,7 @@ module Bake
191
185
 
192
186
  def process_result(cmd, console_output, error_parser, alternate, reason, success)
193
187
  hasError = (success == false)
194
- printCmd(cmd, alternate, reason, (hasError and not Bake.options.lint))
188
+ printCmd(cmd, alternate, reason, hasError)
195
189
  errorPrinted, incList = process_console_output(console_output, error_parser)
196
190
  if hasError and not errorPrinted
197
191
  Bake.formatter.printError("System command failed", @projectDir)
@@ -14,17 +14,17 @@ module Bake
14
14
 
15
15
  def execute
16
16
  return true if Bake.options.linkOnly
17
- return executeCommand(@commandLine, nil, @config.validExitCodes)
17
+ return executeCommand(@commandLine, nil, @config.validExitCodes, @config.echo)
18
18
  end
19
19
 
20
20
  def startupStep
21
21
  return true if Bake.options.linkOnly
22
- return executeCommand(@commandLine, nil, @config.validExitCodes)
22
+ return executeCommand(@commandLine, nil, @config.validExitCodes, @config.echo)
23
23
  end
24
24
 
25
25
  def exitStep
26
26
  return true if Bake.options.linkOnly
27
- return executeCommand(@commandLine, nil, @config.validExitCodes)
27
+ return executeCommand(@commandLine, nil, @config.validExitCodes, @config.echo)
28
28
  end
29
29
 
30
30
  def clean