bake-toolkit 2.15.0 → 2.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/documentation/_build/html/_sources/changelog.txt +5 -0
  3. data/documentation/_build/html/_sources/index.txt +1 -1
  4. data/documentation/_build/html/_sources/tips_and_tricks/bundle.txt +24 -0
  5. data/documentation/_build/html/_sources/tips_and_tricks/tips_and_tricks.txt +1 -0
  6. data/documentation/_build/html/changelog.html +10 -3
  7. data/documentation/_build/html/commandline/commandline.html +3 -3
  8. data/documentation/_build/html/concepts/build_hierarchy.html +3 -3
  9. data/documentation/_build/html/concepts/concepts.html +3 -3
  10. data/documentation/_build/html/concepts/the_main_project.html +3 -3
  11. data/documentation/_build/html/concepts/the_project_meta_file.html +3 -3
  12. data/documentation/_build/html/genindex.html +3 -3
  13. data/documentation/_build/html/ide/eclipse/eclipse.html +3 -3
  14. data/documentation/_build/html/ide/eclipse/how_to_convert_existing_cdt_workspace.html +3 -3
  15. data/documentation/_build/html/ide/eclipse/how_to_create_a_new_project_in_eclipse.html +3 -3
  16. data/documentation/_build/html/ide/eclipse/how_to_create_a_workspace_in_eclipse.html +3 -3
  17. data/documentation/_build/html/ide/eclipse/how_to_install_eclipse_plugin.html +3 -3
  18. data/documentation/_build/html/ide/eclipse/how_to_use_bake_in_eclipse.html +3 -3
  19. data/documentation/_build/html/ide/ide_integrations.html +3 -3
  20. data/documentation/_build/html/ide/vs/how_to_create_vs_projects.html +3 -3
  21. data/documentation/_build/html/ide/vs/how_to_debug_in_vs.html +3 -3
  22. data/documentation/_build/html/ide/vs/how_to_used_bake_in_vs.html +3 -3
  23. data/documentation/_build/html/ide/vs/vs.html +3 -3
  24. data/documentation/_build/html/ide/vs/vs_install.html +3 -3
  25. data/documentation/_build/html/index.html +7 -6
  26. data/documentation/_build/html/install/install_bake.html +3 -3
  27. data/documentation/_build/html/internal.html +3 -3
  28. data/documentation/_build/html/known_issues.html +3 -3
  29. data/documentation/_build/html/license.html +3 -3
  30. data/documentation/_build/html/performance/performance.html +5 -5
  31. data/documentation/_build/html/quickstart/quickstart.html +3 -3
  32. data/documentation/_build/html/search.html +3 -3
  33. data/documentation/_build/html/searchindex.js +1 -1
  34. data/documentation/_build/html/syntax/adapt_configs.html +3 -3
  35. data/documentation/_build/html/syntax/derive_configs.html +3 -3
  36. data/documentation/_build/html/syntax/project_meta_syntax.html +3 -3
  37. data/documentation/_build/html/syntax/syntax.html +3 -3
  38. data/documentation/_build/html/syntax/variable_substitutions.html +3 -3
  39. data/documentation/_build/html/tips_and_tricks/bundle.html +181 -0
  40. data/documentation/_build/html/tips_and_tricks/how_to_use_bake_with_cygwin.html +3 -3
  41. data/documentation/_build/html/tips_and_tricks/static_code_analysis.html +3 -3
  42. data/documentation/_build/html/tips_and_tricks/the_bakery.html +3 -3
  43. data/documentation/_build/html/tips_and_tricks/the_clang.html +5 -5
  44. data/documentation/_build/html/tips_and_tricks/tips_and_tricks.html +4 -3
  45. data/documentation/_build/html/why_bake/why_bake.html +5 -5
  46. data/lib/bake/bundle.rb +159 -0
  47. data/lib/bake/mergeConfig.rb +5 -5
  48. data/lib/bake/model/loader.rb +36 -24
  49. data/lib/bake/options/options.rb +12 -2
  50. data/lib/bake/options/usage.rb +2 -1
  51. data/lib/blocks/blockBase.rb +7 -1
  52. data/lib/blocks/compile.rb +17 -16
  53. data/lib/blocks/executable.rb +16 -12
  54. data/lib/blocks/library.rb +13 -9
  55. data/lib/common/ext/rtext.rb +11 -0
  56. data/lib/common/version.rb +1 -1
  57. metadata +6 -2
@@ -104,8 +104,7 @@ module Bake
104
104
  cmdLineCheck = true
105
105
  reason = config_changed?(cmdLineFile)
106
106
  end
107
- return true unless reason
108
-
107
+
109
108
  linker = @tcs[:LINKER]
110
109
 
111
110
  cmd = Utils.flagSplit(linker[:COMMAND], false) # g++
@@ -138,18 +137,23 @@ module Bake
138
137
  outPipe = (@mapfile and linker[:MAP_FILE_PIPE]) ? "#{@mapfile}" : nil
139
138
  cmdLinePrint << "> #{outPipe}" if outPipe
140
139
 
141
- return true if cmdLineCheck and BlockBase.isCmdLineEqual?(cmd, cmdLineFile)
142
-
143
- ToCxx.linkBlock
140
+ if cmdLineCheck and BlockBase.isCmdLineEqual?(cmd, cmdLineFile)
141
+ success = true
142
+ else
143
+ ToCxx.linkBlock
144
+
145
+ BlockBase.prepareOutput(@exe_name)
146
+
147
+ printCmd(cmdLinePrint, "Linking #{@exe_name}", reason, false)
148
+ BlockBase.writeCmdLineFile(cmd, cmdLineFile)
149
+ success, consoleOutput = ProcessHelper.run(cmd, false, false, outPipe)
150
+ process_result(cmdLinePrint, consoleOutput, linker[:ERROR_PARSER], nil, reason, success)
151
+
152
+ check_config_file()
153
+ end
144
154
 
145
- BlockBase.prepareOutput(@exe_name)
155
+ Bake::Bundle.instance.addBinary(@exe_name, @linker_script, isMainProject? ? @config : nil)
146
156
 
147
- printCmd(cmdLinePrint, "Linking #{@exe_name}", reason, false)
148
- BlockBase.writeCmdLineFile(cmd, cmdLineFile)
149
- success, consoleOutput = ProcessHelper.run(cmd, false, false, outPipe)
150
- process_result(cmdLinePrint, consoleOutput, linker[:ERROR_PARSER], nil, reason, success)
151
-
152
- check_config_file()
153
157
  return success
154
158
  end
155
159
  end
@@ -66,7 +66,6 @@ module Bake
66
66
  cmdLineCheck = true
67
67
  reason = config_changed?(cmdLineFile)
68
68
  end
69
- return true unless reason
70
69
  archiver = @tcs[:ARCHIVER]
71
70
 
72
71
  cmd = Utils.flagSplit(archiver[:COMMAND], false) # ar
@@ -81,15 +80,20 @@ module Bake
81
80
 
82
81
  cmd += @compileBlock.objects
83
82
 
84
- return true if cmdLineCheck and BlockBase.isCmdLineEqual?(cmd, cmdLineFile)
85
-
86
- BlockBase.prepareOutput(@archive_name)
83
+ if cmdLineCheck and BlockBase.isCmdLineEqual?(cmd, cmdLineFile)
84
+ success = true
85
+ else
86
+ BlockBase.prepareOutput(@archive_name)
87
+
88
+ BlockBase.writeCmdLineFile(cmd, cmdLineFile)
89
+ success, consoleOutput = ProcessHelper.run(cmd, false, false)
90
+ process_result(cmd, consoleOutput, archiver[:ERROR_PARSER], "Creating #{@archive_name}", reason, success)
91
+
92
+ check_config_file()
93
+ end
94
+
95
+ Bake::Bundle.instance.addLib(@archive_name, isMainProject? ? @config : nil)
87
96
 
88
- BlockBase.writeCmdLineFile(cmd, cmdLineFile)
89
- success, consoleOutput = ProcessHelper.run(cmd, false, false)
90
- process_result(cmd, consoleOutput, archiver[:ERROR_PARSER], "Creating #{@archive_name}", reason, success)
91
-
92
- check_config_file()
93
97
  return success
94
98
  end
95
99
  end
@@ -0,0 +1,11 @@
1
+ require 'rtext/serializer'
2
+
3
+ module RText
4
+ class Serializer
5
+ alias :old_serialize_values :serialize_values
6
+ def serialize_values(element, feature)
7
+ return nil unless element.eIsSet(feature.name)
8
+ old_serialize_values(element, feature)
9
+ end
10
+ end
11
+ end
@@ -1,7 +1,7 @@
1
1
  module Bake
2
2
  class Version
3
3
  def self.number
4
- "2.15.0"
4
+ "2.16.1"
5
5
  end
6
6
  end
7
7
 
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.15.0
4
+ version: 2.16.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Schaal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-11 00:00:00.000000000 Z
11
+ date: 2016-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rtext
@@ -77,6 +77,7 @@ extensions: []
77
77
  extra_rdoc_files: []
78
78
  files:
79
79
  - lib/adapt/config/loader.rb
80
+ - lib/bake/bundle.rb
80
81
  - lib/bake/cache.rb
81
82
  - lib/bake/config/checks.rb
82
83
  - lib/bake/config/loader.rb
@@ -144,6 +145,7 @@ files:
144
145
  - lib/common/cleanup.rb
145
146
  - lib/common/exit_helper.rb
146
147
  - lib/common/ext/file.rb
148
+ - lib/common/ext/rtext.rb
147
149
  - lib/common/ext/stdout.rb
148
150
  - lib/common/ide_interface.rb
149
151
  - lib/common/options/parser.rb
@@ -224,6 +226,7 @@ files:
224
226
  - documentation/_build/html/_sources/syntax/project_meta_syntax.txt
225
227
  - documentation/_build/html/_sources/syntax/syntax.txt
226
228
  - documentation/_build/html/_sources/syntax/variable_substitutions.txt
229
+ - documentation/_build/html/_sources/tips_and_tricks/bundle.txt
227
230
  - documentation/_build/html/_sources/tips_and_tricks/how_to_use_bake_with_cygwin.txt
228
231
  - documentation/_build/html/_sources/tips_and_tricks/static_code_analysis.txt
229
232
  - documentation/_build/html/_sources/tips_and_tricks/the_bakery.txt
@@ -420,6 +423,7 @@ files:
420
423
  - documentation/_build/html/syntax/project_meta_syntax.html
421
424
  - documentation/_build/html/syntax/syntax.html
422
425
  - documentation/_build/html/syntax/variable_substitutions.html
426
+ - documentation/_build/html/tips_and_tricks/bundle.html
423
427
  - documentation/_build/html/tips_and_tricks/how_to_use_bake_with_cygwin.html
424
428
  - documentation/_build/html/tips_and_tricks/static_code_analysis.html
425
429
  - documentation/_build/html/tips_and_tricks/the_bakery.html