bake-toolkit 2.35.0 → 2.35.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2bdce1be8c9d734fc44596c799f18524eca9f3c9
4
- data.tar.gz: 4a9302c6b3fd75f2888311246cc304d10e807c86
3
+ metadata.gz: 0a7786f0adcdc09c7f5860b6b5921a74924c5cc3
4
+ data.tar.gz: 9040049b27bed9600030f2d2bb7e7ee0c9a64698
5
5
  SHA512:
6
- metadata.gz: 0c2b3cebcf34dc1910f32cf45e50eb743d2045daf0ac055984159287bee694966220cf21dbca3196b0bdfaa398d4e7a7a4f2d7bf17bf71357c3c3746c7e98907
7
- data.tar.gz: 6cf22898b9cb33808f930929bd4dd74347ce01f6d80828b11a853ab7462dc565362078357598104db71d2ddece9bb64d8729fdc97ad52b32464a745231446d68
6
+ metadata.gz: e93a6de2b383b7d14889e9a13b84898cc6ff4fb093ee4bc441fb722d2aabcc7e2994e40470f6b859da9a9f6f647ccc6be5bde1915781db9f59cfbaf916f49bdf
7
+ data.tar.gz: faba3697e24876269608136072c51a330ba2d8bee7ee548aefdf6eeb12c22dda72824af38fca4bd282d065f14950ed87aa44d2671b1252fb68a6fafc47e12e54
@@ -59,8 +59,8 @@ module Bake
59
59
  if block.library
60
60
  adaptedPath, prefix = adaptPath(block.library.archive_name, block, prefix)
61
61
  if (block.prebuild and File.exist?adaptedPath) or
62
- (not block.library.compileBlock.objects.empty?) or
63
- (not block.library.compileBlock.calcSources(true, true).empty?)
62
+ (!block.library.compileBlock.nil? and !block.library.compileBlock.objects.empty?) or
63
+ (!block.library.compileBlock.nil? and !block.library.compileBlock.calcSources(true, true).empty?)
64
64
  @@linker_libs_array << adaptedPath
65
65
  @@source_libraries << adaptedPath
66
66
  end
@@ -223,7 +223,7 @@ module Bake
223
223
  else
224
224
  counter = 0
225
225
  blocks.each do |b|
226
- counter += 1 if b.isBuildBlock? || b.prebuild
226
+ counter += 1 if b.isBuildBlock?
227
227
  end
228
228
  @@num_projects = counter
229
229
  end
@@ -416,7 +416,7 @@ module Bake
416
416
  SyncOut.mutex.synchronize do
417
417
  @outputStep = nil
418
418
  SyncOut.startStream() if Bake.options.syncedOutput
419
- if Bake.options.verbose >= 2 || isBuildBlock? || @prebuild
419
+ if Bake.options.verbose >= 2 || isBuildBlock?
420
420
  typeStr = "Building"
421
421
  if @prebuild
422
422
  typeStr = "Using"
@@ -467,7 +467,7 @@ module Bake
467
467
  Bake.formatter.printAdditionalInfo "**** #{typeStr} #{Block.block_counter} of #{@@num_projects}: #{@projectName} (#{@configName}) ****"
468
468
  end
469
469
 
470
- if Bake.options.verbose >= 2 || isBuildBlock? || @prebuild
470
+ if Bake.options.verbose >= 2 || isBuildBlock?
471
471
  Block.inc_block_counter()
472
472
  end
473
473
 
@@ -66,7 +66,7 @@ module Bake
66
66
  @compileBlock.objects.each do |obj|
67
67
  return "because object #{obj} does not exist" if not File.exists?(obj)
68
68
  return "because object #{obj} is newer than executable" if eTime < File.mtime(obj)
69
- end
69
+ end if @compileBlock
70
70
 
71
71
  # libs
72
72
  libs.each do |lib|
@@ -56,8 +56,8 @@ module Bake
56
56
 
57
57
  #Dir.chdir(@projectDir) do
58
58
 
59
- @objects = @compileBlock.objects
60
59
  if !@block.prebuild
60
+ @objects = @compileBlock.objects
61
61
  if @objects.empty?
62
62
  SyncOut.mutex.synchronize do
63
63
  puts "No source files, library won't be created" if Bake.options.verbose >= 2
@@ -19,7 +19,9 @@ module Bake
19
19
  end
20
20
 
21
21
  def valid?(argument)
22
- @arguments.keys.any? { |a| a != "" && argument.start_with?(a) }
22
+ @arguments.any? { |a, b|
23
+ argument == a || (a != "" && argument.start_with?(a) && (!b || (b.parameters.length==3 && argument[a.length..-1].scan(/\A\d*\z/).length > 0)))
24
+ }
23
25
  end
24
26
 
25
27
  def get_block(argument)
@@ -28,8 +30,10 @@ module Bake
28
30
  @arguments.each do |a, b|
29
31
  if argument.start_with?(a) && a != ""
30
32
  return [b, nil] if a == argument
31
- block = b
32
- arg = b.parameters.length==3 ? argument[a.length..-1] : nil
33
+ if b && b.parameters.length==3 && argument[a.length..-1].scan(/\A\d*\z/).length > 0
34
+ block = b
35
+ arg = argument[a.length..-1]
36
+ end
33
37
  end
34
38
  end
35
39
  return [block, arg]
@@ -1,7 +1,7 @@
1
1
  module Bake
2
2
  class Version
3
3
  def self.number
4
- "2.35.0"
4
+ "2.35.1"
5
5
  end
6
6
 
7
7
  def self.printBakeVersion(ry = "")
@@ -80,7 +80,13 @@ module Bake
80
80
  end
81
81
  end
82
82
 
83
-
83
+ def addLib(block, configSteps)
84
+ Array(configSteps.step).each do |step|
85
+ if Bake::Metamodel::Makefile === step
86
+ block.lib_elements << LibElement.new(LibElement::LIB_WITH_PATH, step.lib) if step.lib != ""
87
+ end
88
+ end if configSteps
89
+ end
84
90
 
85
91
  def addSteps(block, blockSteps, configSteps)
86
92
  Array(configSteps.step).each do |step|
@@ -299,17 +305,29 @@ module Bake
299
305
  addSteps(block, block.startupSteps, config.startupSteps)
300
306
  addSteps(block, block.exitSteps, config.exitSteps)
301
307
 
302
- if not block.prebuild and not Bake.options.prepro and not Bake.options.conversion_info and not Bake.options.docu and not Bake.options.filename and not Bake.options.analyze
303
- addSteps(block, block.preSteps, config.preSteps)
304
- addSteps(block, block.postSteps, config.postSteps)
305
- addSteps(block, block.cleanSteps, config.cleanSteps)
308
+ if not Bake.options.prepro and not Bake.options.conversion_info and not Bake.options.docu and not Bake.options.filename and not Bake.options.analyze
309
+ if block.prebuild
310
+ addLib(block, config.preSteps)
311
+ addLib(block, config.postSteps)
312
+ addLib(block, config.cleanSteps)
313
+ else
314
+ addSteps(block, block.preSteps, config.preSteps)
315
+ addSteps(block, block.postSteps, config.postSteps)
316
+ addSteps(block, block.cleanSteps, config.cleanSteps)
317
+ end
306
318
  end
307
319
 
308
320
  if Bake.options.docu
309
321
  block.mainSteps << Blocks::Docu.new(config, @configTcMap[config]) unless block.prebuild
310
322
  elsif Metamodel::CustomConfig === config
311
323
  if not Bake.options.prepro and not Bake.options.conversion_info and not Bake.options.docu and not Bake.options.filename and not Bake.options.analyze
312
- addSteps(block, block.mainSteps, config) if config.step unless block.prebuild
324
+ p block.prebuild
325
+ if block.prebuild
326
+ addLib(block, config)
327
+ else
328
+ puts config.parent.name
329
+ addSteps(block, block.mainSteps, config) if config.step
330
+ end
313
331
  end
314
332
  elsif Bake.options.conversion_info
315
333
  block.mainSteps << Blocks::Convert.new(block, config, @referencedConfigs) unless block.prebuild
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.35.0
4
+ version: 2.35.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: 2017-03-27 00:00:00.000000000 Z
11
+ date: 2017-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rtext