bake-toolkit 2.57.0 → 2.58.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bake/options/options.rb +1 -0
- data/lib/blocks/compile.rb +8 -1
- data/lib/blocks/executable.rb +1 -1
- data/lib/common/options/parser.rb +9 -5
- data/lib/common/version.rb +1 -1
- 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: 92addd494a772c8a32120eaa64a9da77b6619d8e76186884a16e412c1e5fd572
|
4
|
+
data.tar.gz: 5c977f46064f6ccdaf85fa2aed7f4edb7e8110a356c1baa5964bc253466f7f47
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4697797cb5e752c782cf8fe5067a1483b95863fbe46847f53eea17392e66ffc16c489bd53bd78c5a288b8ef2a38f2ef58be42dd8aed405fdca8de82531535537
|
7
|
+
data.tar.gz: ad4435464ba38b3a8fa09e92dd79a980f31dfe8ca8880aa976e6ceeb27ccf6e66a9ee44ae2c41906b8312b40289234dc0efc78fda9c0300df3b7cfe0da463f81
|
data/lib/bake/options/options.rb
CHANGED
data/lib/blocks/compile.rb
CHANGED
@@ -561,7 +561,14 @@ module Bake
|
|
561
561
|
icf = integrateCompilerFile(Utils.deep_copy(@block.tcs),sources)
|
562
562
|
end
|
563
563
|
res.each do |f|
|
564
|
-
|
564
|
+
if @fileTcs.has_key?(f)
|
565
|
+
singleFile = res.length == 1 && res[0] == pr
|
566
|
+
if singleFile && icf
|
567
|
+
Bake.formatter.printWarning("Flags/Defines for '#{sources.name}' will be ignored", sources)
|
568
|
+
end
|
569
|
+
else
|
570
|
+
@fileTcs[f] = icf
|
571
|
+
end
|
565
572
|
next if exclude_files.include?(f)
|
566
573
|
next if source_files.include?(f)
|
567
574
|
source_files << f
|
data/lib/blocks/executable.rb
CHANGED
@@ -180,7 +180,7 @@ module Bake
|
|
180
180
|
else
|
181
181
|
ToCxx.linkBlock
|
182
182
|
|
183
|
-
BlockBase.prepareOutput(@exe_name, @block)
|
183
|
+
BlockBase.prepareOutput(File.expand_path(@exe_name,@projectDir), @block)
|
184
184
|
|
185
185
|
printCmd(cmdLinePrint, "Linking #{@projectName} (#{@config.name}): #{@exe_name}", reason, false)
|
186
186
|
BlockBase.writeCmdLineFile(cmd, cmdLineFile)
|
@@ -76,12 +76,16 @@ module Bake
|
|
76
76
|
else
|
77
77
|
option, inPlaceArg = get_block(arg)
|
78
78
|
hasArgument = (pos+1 < @argv.length and @argv[pos+1][0] != "-")
|
79
|
-
if option.parameters.length == 3
|
80
|
-
if inPlaceArg
|
81
|
-
|
79
|
+
if option.parameters.length == 3
|
80
|
+
if (hasArgument || inPlaceArg)
|
81
|
+
if inPlaceArg
|
82
|
+
option.call(inPlaceArg, nil, nil)
|
83
|
+
else
|
84
|
+
option.call(@argv[pos+1], nil, nil) # do not use inplace value
|
85
|
+
pos = pos + 1
|
86
|
+
end
|
82
87
|
else
|
83
|
-
option.call(
|
84
|
-
pos = pos + 1
|
88
|
+
option.call(nil, nil, nil)
|
85
89
|
end
|
86
90
|
elsif option.parameters.length == 2
|
87
91
|
if hasArgument
|
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.58.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-
|
11
|
+
date: 2020-03-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rtext
|