bake-toolkit 2.59.0 → 2.60.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/blocks/block.rb +6 -3
- data/lib/common/version.rb +1 -1
- data/lib/tocxx.rb +7 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a05f5baab5566671c4deff626aceaea52a9b0d4274c03f9737823b3809039bb2
|
4
|
+
data.tar.gz: d407fbc0d01b0fded6b7453ac41446494725cfc575bfd472a77c2d4096738a82
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7dc782d118b9fefd102ad6948dc4bfeb38ac7ac0cffcca4581719e994ad69927271523bd1a46472ed92573769754ca44af9c655c139e3ae4fa96a1887bd18862
|
7
|
+
data.tar.gz: e89c99ee42fd0602c6cdcc443ae3924b12af3a7e84ffe308486137ba1a77921bedd991d33a41fcf5e18681c932cda416a5388a9537a1bcae20785cbcc33351ff
|
data/lib/blocks/block.rb
CHANGED
@@ -23,7 +23,7 @@ module Bake
|
|
23
23
|
@@threads = []
|
24
24
|
|
25
25
|
attr_reader :lib_elements, :projectDir, :library, :config, :projectName, :configName, :prebuild, :output_dir, :tcs
|
26
|
-
attr_accessor :visited, :inDeps, :result, :bes
|
26
|
+
attr_accessor :visited, :inDeps, :result, :bes, :besDirect
|
27
27
|
|
28
28
|
def startupSteps
|
29
29
|
@startupSteps ||= []
|
@@ -82,6 +82,7 @@ module Bake
|
|
82
82
|
@result = true
|
83
83
|
@tcs = tcs
|
84
84
|
@bes = []
|
85
|
+
@besDirect = []
|
85
86
|
@lib_elements = []
|
86
87
|
|
87
88
|
calcOutputDir
|
@@ -278,9 +279,11 @@ module Bake
|
|
278
279
|
end
|
279
280
|
|
280
281
|
def callDeps(method)
|
282
|
+
return true if Bake.options.project
|
281
283
|
depResult = true
|
282
|
-
|
283
|
-
|
284
|
+
bes.each do |dep|
|
285
|
+
next if Metamodel::IncludeDir === dep
|
286
|
+
depResult = (ALL_BLOCKS[dep.name+","+dep.config].send(method) and depResult)
|
284
287
|
break if (!depResult) && Bake.options.stopOnFirstError
|
285
288
|
end
|
286
289
|
return depResult
|
data/lib/common/version.rb
CHANGED
data/lib/tocxx.rb
CHANGED
@@ -156,6 +156,7 @@ module Bake
|
|
156
156
|
block.visited = true
|
157
157
|
|
158
158
|
block.bes = []
|
159
|
+
block.besDirect = []
|
159
160
|
block.config.depInc.each do |dep|
|
160
161
|
if (Metamodel::Dependency === dep)
|
161
162
|
@referencedConfigs[dep.name].each do |configRef|
|
@@ -175,6 +176,7 @@ module Bake
|
|
175
176
|
block.bes += subDeps
|
176
177
|
end
|
177
178
|
block.bes << dep
|
179
|
+
block.besDirect << dep
|
178
180
|
break
|
179
181
|
end
|
180
182
|
end
|
@@ -331,10 +333,10 @@ module Bake
|
|
331
333
|
difr2 = difr
|
332
334
|
diba2 = diba
|
333
335
|
end
|
334
|
-
|
335
336
|
fde = Blocks::ALL_BLOCKS[dep.name+","+dep.config]
|
336
337
|
l1 = fde.bes.length
|
337
338
|
fde.bes = (difr2 + fde.bes + diba2).uniq # .select{|d| !(Metamodel::Dependency===d) || d.name != dep.name || d.config != dep.config }
|
339
|
+
fde.besDirect = (difr2 + fde.besDirect + diba2).uniq
|
338
340
|
l2 = fde.bes.length
|
339
341
|
counter += 1 if (l2 != l1)
|
340
342
|
end
|
@@ -410,13 +412,15 @@ module Bake
|
|
410
412
|
@referencedConfigs.each do |projName, configs|
|
411
413
|
depsToProj = []
|
412
414
|
configs.each do |config|
|
413
|
-
config.
|
415
|
+
the_c = Blocks::ALL_BLOCKS[config.parent.name+","+config.name]
|
416
|
+
the_c.besDirect.each do |d|
|
417
|
+
next if Metamodel::IncludeDir === d
|
414
418
|
if onlyProjectName
|
415
419
|
next if config.parent.name != onlyProjectName && d.name != onlyProjectName
|
416
420
|
if onlyConfigName
|
417
421
|
leftSide = config.name == onlyConfigName && config.parent.name == onlyProjectName
|
418
422
|
rightSide = d.config == onlyConfigName && d.name == onlyProjectName
|
419
|
-
next if
|
423
|
+
next if !leftSide && !rightSide
|
420
424
|
end
|
421
425
|
end
|
422
426
|
if Bake.options.dotShowProjOnly
|
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.60.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: 2020-03-
|
11
|
+
date: 2020-03-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rtext
|