bake-toolkit 2.54.0 → 2.54.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 +4 -4
- data/lib/blocks/compile.rb +5 -27
- data/lib/blocks/convert.rb +0 -1
- data/lib/blocks/showIncludes.rb +0 -1
- 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: 6e16ce4a5c963510156b004f0a5ec43b3b202df504771dc81212ac8261a4ea73
|
|
4
|
+
data.tar.gz: 38316ab9a96840d40f5aa8f39cb4db125f1eff310c82b8f9eb84a348fe41e36f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2da16803f58972316da3b55ed526373b930e6c851078ce64dbdda59e0636f9e6e6745383d987813c6d2615d85ce3d3bcdf3a768f85de290dd6423885fa48709e
|
|
7
|
+
data.tar.gz: 4c8771bd76f452800fc7f5229453853fc7b48ab8950f89604c1753a99e561c07d1c038bd2900ce2a49050a79c1a217bab69107bb08d7c4649e6d5777fd53564c
|
data/lib/blocks/compile.rb
CHANGED
|
@@ -409,7 +409,6 @@ module Bake
|
|
|
409
409
|
return true if @config.files.empty?
|
|
410
410
|
|
|
411
411
|
SyncOut.mutex.synchronize do
|
|
412
|
-
calcFileTcs
|
|
413
412
|
calcIncludes
|
|
414
413
|
calcDefines # not for files with changed tcs
|
|
415
414
|
calcFlags # not for files with changed tcs
|
|
@@ -537,6 +536,7 @@ module Bake
|
|
|
537
536
|
return @source_files if @source_files and not @source_files.empty?
|
|
538
537
|
@source_files = []
|
|
539
538
|
@source_files_ignored_in_lib = []
|
|
539
|
+
@fileTcs = {}
|
|
540
540
|
|
|
541
541
|
exclude_files = Set.new
|
|
542
542
|
@config.excludeFiles.each do |pr|
|
|
@@ -549,13 +549,6 @@ module Bake
|
|
|
549
549
|
pr = pr[2..-1] if pr.start_with?"./"
|
|
550
550
|
|
|
551
551
|
res = Dir.glob_dir(pr, @projectDir).sort
|
|
552
|
-
regExSearch = pr.gsub("*",".*").gsub("?",".")
|
|
553
|
-
if !res.all?{|r| r.match(/#{regExSearch}/)}
|
|
554
|
-
if res.all?{|r| r.match(/#{regExSearch}/i)}
|
|
555
|
-
Bake.formatter.printError("Case sensitivity error for source file '#{pr}'", sources)
|
|
556
|
-
raise SystemCommandFailed.new
|
|
557
|
-
end
|
|
558
|
-
end
|
|
559
552
|
if res.length == 0 and cleaning == false
|
|
560
553
|
if not pr.include?"*" and not pr.include?"?"
|
|
561
554
|
Bake.formatter.printError("Source file '#{pr}' not found", sources)
|
|
@@ -564,11 +557,15 @@ module Bake
|
|
|
564
557
|
Bake.formatter.printInfo("Source file pattern '#{pr}' does not match to any file", sources)
|
|
565
558
|
end
|
|
566
559
|
end
|
|
560
|
+
if (sources.define.length > 0 or sources.flags.length > 0)
|
|
561
|
+
icf = integrateCompilerFile(Utils.deep_copy(@block.tcs),sources)
|
|
562
|
+
end
|
|
567
563
|
res.each do |f|
|
|
568
564
|
next if exclude_files.include?(f)
|
|
569
565
|
next if source_files.include?(f)
|
|
570
566
|
source_files << f
|
|
571
567
|
@source_files << f
|
|
568
|
+
@fileTcs[f] = icf if icf
|
|
572
569
|
@source_files_ignored_in_lib << f if sources.compileOnly
|
|
573
570
|
end
|
|
574
571
|
end
|
|
@@ -757,25 +754,6 @@ module Bake
|
|
|
757
754
|
end
|
|
758
755
|
end
|
|
759
756
|
|
|
760
|
-
def calcFileTcs
|
|
761
|
-
@fileTcs = {}
|
|
762
|
-
@config.files.each do |f|
|
|
763
|
-
if (f.define.length > 0 or f.flags.length > 0)
|
|
764
|
-
if f.name.include?"*"
|
|
765
|
-
Bake.formatter.printWarning("Toolchain settings not allowed for file pattern #{f.name}", f)
|
|
766
|
-
err_res = ErrorDesc.new
|
|
767
|
-
err_res.file_name = @config.file_name
|
|
768
|
-
err_res.line_number = f.line_number
|
|
769
|
-
err_res.severity = ErrorParser::SEVERITY_WARNING
|
|
770
|
-
err_res.message = "Toolchain settings not allowed for file patterns"
|
|
771
|
-
Bake::IDEInterface.instance.set_errors([err_res])
|
|
772
|
-
else
|
|
773
|
-
@fileTcs[f.name] = integrateCompilerFile(Utils.deep_copy(@block.tcs),f)
|
|
774
|
-
end
|
|
775
|
-
end
|
|
776
|
-
end
|
|
777
|
-
end
|
|
778
|
-
|
|
779
757
|
def tcs4source(source)
|
|
780
758
|
@fileTcs[source] || @block.tcs
|
|
781
759
|
end
|
data/lib/blocks/convert.rb
CHANGED
data/lib/blocks/showIncludes.rb
CHANGED
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.54.
|
|
4
|
+
version: 2.54.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: 2019-10-
|
|
11
|
+
date: 2019-10-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rtext
|