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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 13e4226c82faa0439951dd701951b5af74bceabbf73c185791fa46d70afc6835
4
- data.tar.gz: 54c74b7f0daf417c1581340ffdfdea95d72a1e516b4df6d622639be4d06480ae
3
+ metadata.gz: 6e16ce4a5c963510156b004f0a5ec43b3b202df504771dc81212ac8261a4ea73
4
+ data.tar.gz: 38316ab9a96840d40f5aa8f39cb4db125f1eff310c82b8f9eb84a348fe41e36f
5
5
  SHA512:
6
- metadata.gz: 6b2241a42ca4b0430c6e408a3ed03fdcbd2aad0d378046e48486dd7256f49dc59007dca65c32dbd7aa9374a8da019293cf21de5632d519d18475849b6c700445
7
- data.tar.gz: e6d9bbd765ac4767a78106a18465d648dc85300444f407971971ebe8b6c0f5692b9d554f13c1faa76bb3858636596fb2fea59ba554664869a8e1ae070bec9250
6
+ metadata.gz: 2da16803f58972316da3b55ed526373b930e6c851078ce64dbdda59e0636f9e6e6745383d987813c6d2615d85ce3d3bcdf3a768f85de290dd6423885fa48709e
7
+ data.tar.gz: 4c8771bd76f452800fc7f5229453853fc7b48ab8950f89604c1753a99e561c07d1c038bd2900ce2a49050a79c1a217bab69107bb08d7c4649e6d5777fd53564c
@@ -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
@@ -12,7 +12,6 @@ module Bake
12
12
 
13
13
  def execute
14
14
  Dir.chdir(@projectDir) do
15
- calcFileTcs
16
15
  calcIncludes
17
16
  calcDefines
18
17
  calcFlags
@@ -100,7 +100,6 @@ module Bake
100
100
  blockIncs = []
101
101
  blockDefs = {:CPP => [], :C => [], :ASM => []}
102
102
  blocks.each do |block|
103
- block.calcFileTcs
104
103
  block.calcIncludes
105
104
  block.calcDefines
106
105
  block.calcFlags
@@ -1,7 +1,7 @@
1
1
  module Bake
2
2
  class Version
3
3
  def self.number
4
- "2.54.0"
4
+ "2.54.1"
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.54.0
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 00:00:00.000000000 Z
11
+ date: 2019-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rtext