bake-toolkit 2.65.2 → 2.66.0

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
  SHA256:
3
- metadata.gz: e7940840d0fb9f3cc5a45d0445ccb05f7b1c18391a7dcc0ae48b1fb90c3e5915
4
- data.tar.gz: 5298ad5317ae06506708e9db31bdc10e7ac98d1f56b98f078656f78cf67f299e
3
+ metadata.gz: fa60204c2439429e2b1d8e42d36206941185d1085f5c59390b8e5552f6549893
4
+ data.tar.gz: 5cfa793f77484f38e0170995b40b679fbd4367f3ef06c50c86c5cc148aacc9cc
5
5
  SHA512:
6
- metadata.gz: ffefb7d0b223fb47ece543a0dab7ff405b845b9c5fb4bc5d281e79de23a85a91f8b5f79bce8868de8361ebf5a9571dfdd3adb345f8bacf6958a9f4179f27bd58
7
- data.tar.gz: 578bdae05e43d4cde5c4e5443123850a014373a8e27ed7f225e1f0ed7a749e9c04d65c440715b6255c87123094863df1e242ae523f31a6acace005eb36b3bc1a
6
+ metadata.gz: 6901da13b1b992c9e99af33b82f4dc0841d3d236e376a8a6932ba9d1d40490a98f283d0c6aacc794881703fea09b147f353e24b7c5790329cee56d44c0b9bf97
7
+ data.tar.gz: 93edb29bd48e1752ebe1d29e83916309fd291e69701b30e9deadfb9f58dc8507bffdb2da7474fcce7336de9f08275017759092b46528c9db793033e2795f0a9e
@@ -26,8 +26,7 @@ module Bake
26
26
  return configname
27
27
  end
28
28
 
29
- def getFullProjectInternal(configs, configname, isMain) # note: configs is never empty
30
-
29
+ def getFullProjectInternal(configs, configname, isMain, extendStack) # note: configs is never empty
31
30
  configname = resolveConfigName(configs, configname)
32
31
 
33
32
  if isMain
@@ -60,7 +59,11 @@ module Bake
60
59
  if config.extends != ""
61
60
  config.extends.split(",").map {|ex| ex.strip}.reverse.each do |ex|
62
61
  if (ex != "")
63
- parent,parentConfigName = getFullProjectInternal(configs, ex, isMain)
62
+ if extendStack.include?(ex)
63
+ Bake.formatter.printError("Config extends to circular loop: #{(extendStack << ex).join("->")}", configs[0].file_name)
64
+ ExitHelper.exit(1)
65
+ end
66
+ parent,parentConfigName = getFullProjectInternal(configs, ex, isMain, extendStack << ex)
64
67
  MergeConfig.new(config, parent).merge(:merge)
65
68
  end
66
69
  end
@@ -70,15 +73,13 @@ module Bake
70
73
  end
71
74
 
72
75
  def getFullProject(projName, configs, configname, isMain)
73
-
74
-
75
76
  configname = resolveConfigName(configs, configname)
76
77
 
77
78
  if @fullProjects.has_key?(projName + "," + configname)
78
79
  return @fullProjects[projName + "," + configname]
79
80
  end
80
81
 
81
- config, configname = getFullProjectInternal(configs, configname, isMain)
82
+ config, configname = getFullProjectInternal(configs, configname, isMain, [configname])
82
83
 
83
84
  if isMain
84
85
  @defaultToolchainName = config.defaultToolchain.basedOn unless config.defaultToolchain.nil?
@@ -116,7 +117,7 @@ module Bake
116
117
  configHash[s.name] += s.value.split(";")
117
118
  end
118
119
 
119
- if !isMain
120
+ if !isMain && @configHashMain
120
121
  @configHashMain.each do |k,v|
121
122
  if configHash.has_key?(k)
122
123
  configHash[k] += v
@@ -32,6 +32,9 @@ module Bake
32
32
  if Bake::Utils::OS::name == "Mac"
33
33
  CLANG_CHAIN[:ARCHIVER][:COMMAND] = "libtool"
34
34
  CLANG_CHAIN[:ARCHIVER][:ARCHIVE_FLAGS] = "-static -o"
35
+ elsif Bake::Utils::OS::name == "Windows"
36
+ CLANG_CHAIN[:ARCHIVER][:COMMAND] = "clang"
37
+ CLANG_CHAIN[:ARCHIVER][:ARCHIVE_FLAGS] = "-fuse-ld=llvm-lib -o"
35
38
  else
36
39
  CLANG_CHAIN[:ARCHIVER][:COMMAND] = "ar"
37
40
  CLANG_CHAIN[:ARCHIVER][:ARCHIVE_FLAGS] = "r"
@@ -17,14 +17,16 @@ module Bake
17
17
  @projectDir = config.get_project_dir
18
18
  @path_to = ""
19
19
  @flags = adjustFlags("",config.flags) if config.flags
20
- @makefile = config.name
20
+ @makefile = block.convPath(config.name)
21
21
  @target = config.target != "" ? config.target : "all"
22
22
  calcPathTo(referencedConfigs)
23
23
  calcCommandLine
24
24
  calcCleanLine
25
25
  calcEnv
26
26
 
27
- block.lib_elements << LibElement.new(LibElement::LIB_WITH_PATH, config.lib) if config.lib != ""
27
+ if config.lib != ""
28
+ block.lib_elements << LibElement.new(LibElement::LIB_WITH_PATH, block.convPath(config.lib))
29
+ end
28
30
  end
29
31
 
30
32
  def calcEnv
@@ -1,7 +1,7 @@
1
1
  module Bake
2
2
  class Version
3
3
  def self.number
4
- "2.65.2"
4
+ "2.66.0"
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.65.2
4
+ version: 2.66.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-09-18 00:00:00.000000000 Z
11
+ date: 2020-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rtext