bake-toolkit 2.37.1 → 2.37.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4231ba10a8dbc7711dac892e7b932faf30050404
4
- data.tar.gz: 4cf03457745cf2bfe3521db89d7847607e160820
3
+ metadata.gz: a45aa63944be2d13c5930eb7d647b2698e5fe5cc
4
+ data.tar.gz: bd806a9beba3f69d8bd86ec10ca6272d8ec1044c
5
5
  SHA512:
6
- metadata.gz: b900fde5e96ff7eadb477bf6856bcd45a4eb4c2c57aa2399b95eaa6060a19dbb53af56ec8bd6ea05b53521662681fb5eabe6d87b04d7efa90e12ec678ec03280
7
- data.tar.gz: a572d8d68f5cd1761db7f46af0222cdc3412fd73ee4d4284d21df66ad422394184313964c1dddaf4a7e32b897e9778dd33fbe5a5c4127c7aa4311d1af6220452
6
+ metadata.gz: 64c323e37a9ed5401d5e14060e2f1ff41ffcc45f3d878a206ab6d8b2b697ee5d5d645d7c25bca1dc3dedbd31b1735deeef08c023510f7e8834a8b3cb080f1db5
7
+ data.tar.gz: 830a4382f9ef11dc1945f0ffc7c31cb32530feac9f04815a02f8ecc26ef0fd6de72a98c48873abb184ac2af268382641f8af4b6a38bd50fee6226db805a98252
@@ -25,17 +25,17 @@ def self.checkCipSize()
25
25
  s = File.size?(cips[0])
26
26
  s = 0 if s.nil?
27
27
  if s < @@cipFileSize
28
- puts "cip file too small: #{cips[0]} has #{s} bytes"
28
+ puts "bakeqac: cip file too small: #{cips[0]} has #{s} bytes"
29
29
  return false
30
30
  end
31
31
  @@cipFileSize = s
32
32
  return true
33
33
  end
34
- puts "cip file does not exist!"
34
+ puts "bakeqac: cip file does not exist!"
35
35
  return false
36
36
  end
37
37
 
38
- def self.executeQacli(cmd, adminStepAndImmediateOutput = false)
38
+ def self.executeQacli(cmd, adminStepAndImmediateOutput = false, cmdRemoveLocks = nil)
39
39
  timeStart = Time.now
40
40
  cSizeCheck = true
41
41
  licenseError = false
@@ -55,17 +55,20 @@ def self.executeQacli(cmd, adminStepAndImmediateOutput = false)
55
55
  consoleOutput.each_line do |line|
56
56
  if (line.include?("License Refused") && !line.include?("License Refused: C:"))
57
57
  licenseError = true
58
- puts "License refused!"
58
+ puts "bakeqac: License refused!"
59
59
  break
60
60
  end
61
61
  if (line.include?("unable to connect to QAX Daemon") && !line.include?("License Refused: C:"))
62
62
  qacDaemonError = true
63
- puts "Unable to connect to QAX Daemon!"
63
+ puts "bakeqac: Unable to connect to QAX Daemon!"
64
64
  break
65
65
  end
66
66
  if (line.include?("Process timeout"))
67
- puts "Process takes too long!"
67
+ puts "bakeqac: Process takes too long!"
68
68
  processTimeout = true
69
+ puts "bakeqac: Removing locks from #{@options.qacdata}..."
70
+ successRemove, consoleOutput = ProcessHelper.run(cmdRemoveLocks, false)
71
+ puts consoleOutput unless consoleOutput.empty?
69
72
  break
70
73
  end
71
74
  end
@@ -145,7 +148,8 @@ end
145
148
 
146
149
  puts "bakeqac: creating database..."
147
150
 
148
- success, consoleOutput, checkError = executeQacli(cmd, true)
151
+ cmdRemoveLocks = qaExe + ["admin", "--qaf-project", @options.qacdata, "--remove-locks"]
152
+ success, consoleOutput, checkError = executeQacli(cmd, true, cmdRemoveLocks)
149
153
 
150
154
  if success
151
155
  cctFilename = @options.qacdata+"/prqa/config/"+File.basename(@options.cct[0])
@@ -169,7 +173,7 @@ end
169
173
  end
170
174
  end
171
175
  else
172
- puts consoleOutput
176
+ puts consoleOutput unless consoleOutput.empty?
173
177
  end
174
178
  end
175
179
 
@@ -26,7 +26,8 @@ module Bake
26
26
  @@source_libraries = []
27
27
  @@linker_libs_array = []
28
28
 
29
- collect_recursive(block)
29
+ levels = @@linker[:LINK_ONLY_DIRECT_DEPS] ? 1 : -1
30
+ collect_recursive(block, levels)
30
31
 
31
32
  if Bake.options.oldLinkOrder
32
33
  if @@linker[:LIST_MODE] and not @@lib_path_set.empty?
@@ -67,7 +68,7 @@ module Bake
67
68
  end
68
69
  end
69
70
 
70
- def self.collect_recursive(block)
71
+ def self.collect_recursive(block, levels = -1)
71
72
  return if @@dep_set.include?block
72
73
  @@dep_set << block
73
74
 
@@ -117,20 +118,17 @@ module Bake
117
118
  when LibElement::DEPENDENCY
118
119
  if Blocks::ALL_BLOCKS.include?elem.value
119
120
  bb = Blocks::ALL_BLOCKS[elem.value]
120
- collect_recursive(bb)
121
+ collect_recursive(bb, levels-1)
121
122
  else
122
123
  # TODO: warning or error?
123
124
  end
124
125
  end
125
- end
126
+ end if levels != 0
126
127
 
127
128
  addOwnLib(block) if not Bake.options.oldLinkOrder
128
-
129
129
  end
130
130
 
131
131
 
132
-
133
-
134
132
  def self.calcLibElements(block)
135
133
  lib_elements = [] # value = array pairs [type, name/path string]
136
134
 
@@ -64,6 +64,7 @@ module Bake
64
64
  class Linker < ModelElement
65
65
  has_attr 'command', String, :defaultValueLiteral => ""
66
66
  has_attr 'prefix', String, :defaultValueLiteral => "$(LinkerPrefix)"
67
+ has_attr 'onlyDirectDeps', Boolean, :defaultValueLiteral => "false"
67
68
  contains_many 'flags', Flags, 'parent'
68
69
  contains_many 'libprefixflags', LibPrefixFlags, 'parent'
69
70
  contains_many 'libpostfixflags', LibPostfixFlags, 'parent'
@@ -60,6 +60,7 @@ end
60
60
  def integrateLinker(tcs, linker)
61
61
  return tcs unless linker
62
62
  tcs[:LINKER][:COMMAND] = linker.command if linker.command != ""
63
+ tcs[:LINKER][:LINK_ONLY_DIRECT_DEPS] = linker.onlyDirectDeps
63
64
  tcs[:LINKER][:PREFIX] = linker.prefix if linker.prefix != ""
64
65
  tcs[:LINKER][:FLAGS] = adjustFlags(tcs[:LINKER][:FLAGS], linker.flags)
65
66
  tcs[:LINKER][:LIB_PREFIX_FLAGS] = adjustFlags(tcs[:LINKER][:LIB_PREFIX_FLAGS], linker.libprefixflags)
@@ -1,7 +1,7 @@
1
1
  module Bake
2
2
  class Version
3
3
  def self.number
4
- "2.37.1"
4
+ "2.37.2"
5
5
  end
6
6
 
7
7
  def self.printBakeVersion(ry = "")
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.37.1
4
+ version: 2.37.2
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-05-02 00:00:00.000000000 Z
11
+ date: 2017-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rtext