bake-toolkit 2.70.1 → 2.71.0

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
  SHA256:
3
- metadata.gz: 416c14f84643a59f67c1c7d3ba19032a847d56bbef738c8e3563a9919ba255db
4
- data.tar.gz: 59250025415e8353a51a7e753d5af219491a05f2bd959cf520b682c963758ef2
3
+ metadata.gz: 97f124f36bbd221636166d8e01a9854b4c680f235643dab7154d3d6e50df0c4c
4
+ data.tar.gz: 664f60e7f0fec1089b08f55a7662c1d3f5c3e6ad81c7f5332b206e10ca28fc47
5
5
  SHA512:
6
- metadata.gz: 815be1963aef84b578e080d47dd0454170f93b0ba8b0b455c7478fb8a6d04be5fc08bba9b8c649666f237774ac280803a76d7b53d537eaa904126c162247b6f4
7
- data.tar.gz: 8efb1f2f9594f3affcf970c06829e9791b16cbe54dc554dbc566f21066a2d0bb3cd7934fc88ae03c821c8d0a4d7f0b1d7c04b1f3f4a74fb1825f442a90720543
6
+ metadata.gz: 655d3a58f54e604245af4a38feb61e099ae8ea9af58ec135a181a312cca39ed1cb18461ca4733c8d2754090cf782e0e2ca918b490ddce55f071add4ce09d9824
7
+ data.tar.gz: 14034133ac3b08bcfc0c3b54483bf0f1cc98138a2a04e452d0860ca91fb9914f37115b822a068cdbc42caf8d584ca8c0e96268f82cf601992e6403a4209625fe
@@ -56,7 +56,7 @@ module Bake
56
56
  cb = block.library.compileBlock
57
57
  if (block.prebuild and File.exist?adaptedPath) or
58
58
  (!cb.nil? and !(cb.calcSources(true, true) - cb.source_files_ignored_in_lib).empty?)
59
- if Bake.options.consoleOutput_fullnames
59
+ if Bake.options.abs_path_in
60
60
  adaptedPath = File.expand_path(adaptedPath, @projectDir)
61
61
  end
62
62
  @@linker_libs_array << adaptedPath
@@ -70,7 +70,7 @@ module Bake
70
70
  cb.object_files_ignored_in_lib.each do |ldirect|
71
71
  adaptedPath, prefix = adaptPath(ldirect, block, prefix)
72
72
  if (!block.prebuild or File.exist?adaptedPath)
73
- if Bake.options.consoleOutput_fullnames
73
+ if Bake.options.abs_path_in
74
74
  adaptedPath = File.expand_path(adaptedPath, @projectDir)
75
75
  end
76
76
  @@linker_libs_array << adaptedPath
@@ -22,7 +22,7 @@ module Bake
22
22
  attr_reader :vars, :include_filter_args # map
23
23
  attr_reader :verbose
24
24
  attr_reader :filelist # set
25
- attr_reader :consoleOutput_fullnames
25
+ attr_reader :abs_path_in, :abs_path_out
26
26
  attr_reader :roots # Root array
27
27
  attr_reader :diabCaseCheck
28
28
  attr_reader :defines
@@ -50,7 +50,8 @@ module Bake
50
50
  @analyze = false
51
51
  @eclipseOrder = false
52
52
  @showConfigs = false
53
- @consoleOutput_fullnames = false
53
+ @abs_path_in = false
54
+ @abs_path_out = false
54
55
  @prepro = false
55
56
  @stopOnFirstError = false
56
57
  @verbose = 1
@@ -141,7 +142,9 @@ module Bake
141
142
  add_option(["--dot-project-level", ], lambda { @dot = true; @dotShowProjOnly = true })
142
143
  add_option(["--do", "--include_filter" ], lambda { |x| set_filter(x) })
143
144
  add_option(["--omit", "--exclude_filter" ], lambda { |x| @exclude_filter << x })
144
- add_option(["--abs-paths", "--show_abs_paths" ], lambda { @consoleOutput_fullnames = true })
145
+ add_option(["--abs-paths", "--show_abs_paths" ], lambda { @abs_path_in = @abs_path_out = true })
146
+ add_option(["--abs-paths-in", "--show_abs_paths" ], lambda { @abs_path_in = true })
147
+ add_option(["--abs-paths-out", "--show_abs_paths" ], lambda { @abs_path_out = true })
145
148
  add_option(["--prebuild" ], lambda { @prebuild = true })
146
149
  add_option(["--Wparse" ], lambda { @wparse = true })
147
150
 
@@ -48,7 +48,10 @@ module Bake
48
48
  puts " 'PRE', 'POST', 'STARTUP', 'EXIT' or 'CLEAN' includes all according steps."
49
49
  puts " --omit <name> Excludes elements with this filter name (can be used multiple times)."
50
50
  puts " 'PRE', 'POST', 'STARTUP', 'EXIT' or 'CLEAN' excludes all according steps."
51
- puts " --abs-paths Compiler prints absolute filename paths instead of relative paths."
51
+ puts " --abs-paths Relative filename paths are converted to absolute paths for compiler commands and output."
52
+ puts " --abs-paths-in Relative filename paths are converted to absolute paths for compiler commands."
53
+ puts " Depending on the compiler this might have also effects on the raw output of the compiler."
54
+ puts " --abs-paths-out Relative filename paths are converted to absolute paths for compiler output."
52
55
  puts " --Wparse The error parser result is also taken into account, not only the return value of compiler, archiver and linker."
53
56
  puts " --no-autodir Disable auto completion of paths like in IncludeDir"
54
57
  puts " --set <key>=<value> Sets a variable. Overwrites variables defined in Project.metas (can be used multiple times)."
data/lib/blocks/block.rb CHANGED
@@ -601,7 +601,7 @@ module Bake
601
601
  if @tcs[:OUTPUT_DIR_POSTFIX] != nil
602
602
  @output_dir = @output_dir + @tcs[:OUTPUT_DIR_POSTFIX]
603
603
  end
604
- if Bake.options.consoleOutput_fullnames
604
+ if Bake.options.abs_path_in
605
605
  @output_dir = File.expand_path(@output_dir, @projectDir)
606
606
  end
607
607
  end
@@ -136,7 +136,7 @@ module Bake
136
136
  end
137
137
 
138
138
  console_output = x[0]
139
- console_output = console_output_full if Bake.options.consoleOutput_fullnames
139
+ console_output = console_output_full if Bake.options.abs_path_out
140
140
 
141
141
  ret = error_descs.any? { |e| e.severity == ErrorParser::SEVERITY_ERROR }
142
142
 
@@ -254,7 +254,7 @@ module Bake
254
254
  if Bake.options.cc2j_filename
255
255
  cmdJson = cmd.is_a?(Array) ? cmd.join(' ') : cmd
256
256
  srcFilePath = source
257
- if Bake.options.consoleOutput_fullnames
257
+ if Bake.options.abs_path_in
258
258
  srcFilePath = File.join(@projectDir, srcFilePath) if !File.is_absolute?(srcFilePath)
259
259
  cmdJson[source] = srcFilePath
260
260
  end
@@ -529,7 +529,7 @@ module Bake
529
529
  if not type.nil?
530
530
  object = get_object_file(source)
531
531
 
532
- if Bake.options.consoleOutput_fullnames
532
+ if Bake.options.abs_path_in
533
533
  object = File.expand_path(object, @projectDir)
534
534
  source = File.expand_path(source, @projectDir)
535
535
  end
@@ -586,7 +586,7 @@ module Bake
586
586
  end
587
587
  res.each do |f|
588
588
  singleFile = res.length == 1 && res[0] == pr
589
- fTcs = (Bake.options.consoleOutput_fullnames ? File.expand_path(f, @projectDir) : f)
589
+ fTcs = (Bake.options.abs_path_in ? File.expand_path(f, @projectDir) : f)
590
590
  if ((!@fileTcs.has_key?(fTcs)) || singleFile)
591
591
  @fileTcs[fTcs] = icf
592
592
  end
@@ -642,7 +642,7 @@ module Bake
642
642
  block.bes.each do |be|
643
643
  if Metamodel::IncludeDir === be
644
644
  if be.inherit == true || block == @block
645
- if Bake.options.consoleOutput_fullnames
645
+ if Bake.options.abs_path_in
646
646
  mappedInc = be.name
647
647
  else
648
648
  mappedInc = File.rel_from_to_project(@projectDir,be.name,false)
@@ -43,7 +43,7 @@ module Bake
43
43
  baseFilename += ".#{@config.artifactExtension.name}"
44
44
  end
45
45
  @exe_name ||= File.join([@block.output_dir, baseFilename])
46
- if Bake.options.consoleOutput_fullnames
46
+ if Bake.options.abs_path_in
47
47
  @exe_name = File.expand_path(@exe_name, @projectDir)
48
48
  end
49
49
  return @exe_name
@@ -34,7 +34,7 @@ module Bake
34
34
  baseFilename += ".#{@config.artifactExtension.name}"
35
35
  end
36
36
  @archive_name ||= File.join([@block.output_dir, baseFilename])
37
- if Bake.options.consoleOutput_fullnames
37
+ if Bake.options.abs_path_in
38
38
  @archive_name = File.expand_path(@archive_name, @projectDir)
39
39
  end
40
40
  return @archive_name
@@ -22,7 +22,7 @@ module Bake
22
22
  print projName
23
23
  incs = []
24
24
  blocks.each do |block|
25
- if Bake.options.consoleOutput_fullnames
25
+ if Bake.options.abs_path_in
26
26
  incs += block.include_list.map { |i| File.expand_path(i, block.projectDir) }
27
27
  else
28
28
  incs += block.include_list
@@ -103,7 +103,7 @@ module Bake
103
103
  block.calcIncludes
104
104
  block.calcDefines
105
105
  block.calcFlags
106
- if Bake.options.consoleOutput_fullnames
106
+ if Bake.options.abs_path_in
107
107
  blockIncs += block.include_list.map { |i| File.expand_path(i, block.projectDir) }
108
108
  else
109
109
  blockIncs += block.include_list
@@ -1,7 +1,7 @@
1
1
  module Bake
2
2
  class Version
3
3
  def self.number
4
- "2.70.1"
4
+ "2.71.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.70.1
4
+ version: 2.71.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: 2021-12-09 00:00:00.000000000 Z
11
+ date: 2021-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rtext