bake-toolkit 2.15.0 → 2.16.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 +5 -0
- data/documentation/_build/html/_sources/index.txt +1 -1
- data/documentation/_build/html/_sources/tips_and_tricks/bundle.txt +24 -0
- data/documentation/_build/html/_sources/tips_and_tricks/tips_and_tricks.txt +1 -0
- data/documentation/_build/html/changelog.html +10 -3
- data/documentation/_build/html/commandline/commandline.html +3 -3
- data/documentation/_build/html/concepts/build_hierarchy.html +3 -3
- data/documentation/_build/html/concepts/concepts.html +3 -3
- data/documentation/_build/html/concepts/the_main_project.html +3 -3
- data/documentation/_build/html/concepts/the_project_meta_file.html +3 -3
- data/documentation/_build/html/genindex.html +3 -3
- data/documentation/_build/html/ide/eclipse/eclipse.html +3 -3
- data/documentation/_build/html/ide/eclipse/how_to_convert_existing_cdt_workspace.html +3 -3
- data/documentation/_build/html/ide/eclipse/how_to_create_a_new_project_in_eclipse.html +3 -3
- data/documentation/_build/html/ide/eclipse/how_to_create_a_workspace_in_eclipse.html +3 -3
- data/documentation/_build/html/ide/eclipse/how_to_install_eclipse_plugin.html +3 -3
- data/documentation/_build/html/ide/eclipse/how_to_use_bake_in_eclipse.html +3 -3
- data/documentation/_build/html/ide/ide_integrations.html +3 -3
- data/documentation/_build/html/ide/vs/how_to_create_vs_projects.html +3 -3
- data/documentation/_build/html/ide/vs/how_to_debug_in_vs.html +3 -3
- data/documentation/_build/html/ide/vs/how_to_used_bake_in_vs.html +3 -3
- data/documentation/_build/html/ide/vs/vs.html +3 -3
- data/documentation/_build/html/ide/vs/vs_install.html +3 -3
- data/documentation/_build/html/index.html +7 -6
- data/documentation/_build/html/install/install_bake.html +3 -3
- data/documentation/_build/html/internal.html +3 -3
- data/documentation/_build/html/known_issues.html +3 -3
- data/documentation/_build/html/license.html +3 -3
- data/documentation/_build/html/performance/performance.html +5 -5
- data/documentation/_build/html/quickstart/quickstart.html +3 -3
- data/documentation/_build/html/search.html +3 -3
- data/documentation/_build/html/searchindex.js +1 -1
- data/documentation/_build/html/syntax/adapt_configs.html +3 -3
- data/documentation/_build/html/syntax/derive_configs.html +3 -3
- data/documentation/_build/html/syntax/project_meta_syntax.html +3 -3
- data/documentation/_build/html/syntax/syntax.html +3 -3
- data/documentation/_build/html/syntax/variable_substitutions.html +3 -3
- data/documentation/_build/html/tips_and_tricks/bundle.html +181 -0
- data/documentation/_build/html/tips_and_tricks/how_to_use_bake_with_cygwin.html +3 -3
- data/documentation/_build/html/tips_and_tricks/static_code_analysis.html +3 -3
- data/documentation/_build/html/tips_and_tricks/the_bakery.html +3 -3
- data/documentation/_build/html/tips_and_tricks/the_clang.html +5 -5
- data/documentation/_build/html/tips_and_tricks/tips_and_tricks.html +4 -3
- data/documentation/_build/html/why_bake/why_bake.html +5 -5
- data/lib/bake/bundle.rb +159 -0
- data/lib/bake/mergeConfig.rb +5 -5
- data/lib/bake/model/loader.rb +36 -24
- data/lib/bake/options/options.rb +12 -2
- data/lib/bake/options/usage.rb +2 -1
- data/lib/blocks/blockBase.rb +7 -1
- data/lib/blocks/compile.rb +17 -16
- data/lib/blocks/executable.rb +16 -12
- data/lib/blocks/library.rb +13 -9
- data/lib/common/ext/rtext.rb +11 -0
- data/lib/common/version.rb +1 -1
- metadata +6 -2
data/lib/blocks/executable.rb
CHANGED
@@ -104,8 +104,7 @@ module Bake
|
|
104
104
|
cmdLineCheck = true
|
105
105
|
reason = config_changed?(cmdLineFile)
|
106
106
|
end
|
107
|
-
|
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
|
-
|
142
|
-
|
143
|
-
|
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
|
-
|
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
|
data/lib/blocks/library.rb
CHANGED
@@ -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
|
-
|
85
|
-
|
86
|
-
|
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
|
data/lib/common/version.rb
CHANGED
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.
|
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
|
+
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
|