bake-toolkit 2.54.1 → 2.54.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/blocks/blockBase.rb +13 -3
- data/lib/blocks/compile.rb +1 -1
- data/lib/blocks/executable.rb +8 -8
- data/lib/blocks/library.rb +7 -5
- data/lib/common/version.rb +1 -1
- data/lib/tocxx.rb +4 -2
- 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: b1f28f604eabf9369d88baeca22ca3197b795869d2e63abf5abad688e4bcd029
|
4
|
+
data.tar.gz: 4013fa730dd7932df41e7b1600d9a6be5ca9532778371944d54490fbfa5b3249
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5714a0943746ec267597eb12de35b821a6fd57ca69be8d93c61a851706662f962ae2571a4d1f3a9414f6bcc9a4273943a45c52bac483ca0c86387b182824a7e
|
7
|
+
data.tar.gz: 8eb1da4a19aab634a3576225594f4e4318be9bc7bf4b71f91c464fb3c7e8b4a3ba3cd8948a24fc9b0ed37b7079c381f82e669e339fef6bb3e0ceb9929e3b4705
|
data/lib/blocks/blockBase.rb
CHANGED
@@ -127,7 +127,13 @@ module Bake
|
|
127
127
|
if error_parser
|
128
128
|
begin
|
129
129
|
x = [console_output]
|
130
|
-
|
130
|
+
if metadata_json = Bake.options.dev_features.include?("no-error-parser")
|
131
|
+
error_descs = []
|
132
|
+
console_output_full = x[0]
|
133
|
+
incList = []
|
134
|
+
else
|
135
|
+
error_descs, console_output_full, incList = error_parser.scan_lines(x, @projectDir)
|
136
|
+
end
|
131
137
|
|
132
138
|
console_output = x[0]
|
133
139
|
console_output = console_output_full if Bake.options.consoleOutput_fullnames
|
@@ -135,9 +141,13 @@ module Bake
|
|
135
141
|
ret = error_descs.any? { |e| e.severity == ErrorParser::SEVERITY_ERROR }
|
136
142
|
|
137
143
|
console_output.gsub!(/[\r]/, "")
|
138
|
-
Bake.
|
144
|
+
if metadata_json = Bake.options.dev_features.include?("no-error-parser")
|
145
|
+
puts console_output
|
146
|
+
else
|
147
|
+
Bake.formatter.format(console_output, error_descs, error_parser) unless console_output.empty?
|
148
|
+
Bake::IDEInterface.instance.set_errors(error_descs)
|
149
|
+
end
|
139
150
|
|
140
|
-
Bake::IDEInterface.instance.set_errors(error_descs)
|
141
151
|
rescue Exception => e
|
142
152
|
Bake.formatter.printWarning("Parsing output failed (maybe language not set to English?): " + e.message)
|
143
153
|
Bake.formatter.printWarning("Original output:")
|
data/lib/blocks/compile.rb
CHANGED
@@ -561,11 +561,11 @@ module Bake
|
|
561
561
|
icf = integrateCompilerFile(Utils.deep_copy(@block.tcs),sources)
|
562
562
|
end
|
563
563
|
res.each do |f|
|
564
|
+
@fileTcs[f] = icf if icf && !@fileTcs.has_key?(f)
|
564
565
|
next if exclude_files.include?(f)
|
565
566
|
next if source_files.include?(f)
|
566
567
|
source_files << f
|
567
568
|
@source_files << f
|
568
|
-
@fileTcs[f] = icf if icf
|
569
569
|
@source_files_ignored_in_lib << f if sources.compileOnly
|
570
570
|
end
|
571
571
|
end
|
data/lib/blocks/executable.rb
CHANGED
@@ -23,16 +23,16 @@ module Bake
|
|
23
23
|
def calcArtifactName
|
24
24
|
if not @config.artifactName.nil? and @config.artifactName.name != ""
|
25
25
|
baseFilename = @config.artifactName.name
|
26
|
+
baseFilename += Bake::Toolchain.outputEnding(@block.tcs) if !baseFilename.include?(".")
|
26
27
|
else
|
27
|
-
|
28
|
-
extension = ".#{@config.artifactExtension.name}"
|
29
|
-
else
|
30
|
-
extension = Bake::Toolchain.outputEnding(@block.tcs)
|
31
|
-
end
|
32
|
-
baseFilename = "#{@projectName}#{extension}"
|
28
|
+
baseFilename = "#{@projectName}#{Bake::Toolchain.outputEnding(@block.tcs)}"
|
33
29
|
end
|
34
|
-
if
|
35
|
-
|
30
|
+
if !@config.artifactExtension.nil? && @config.artifactExtension.name != "default"
|
31
|
+
extension = ".#{@config.artifactExtension.name}"
|
32
|
+
if baseFilename.include?(".")
|
33
|
+
baseFilename = baseFilename.split(".")[0...-1].join(".")
|
34
|
+
end
|
35
|
+
baseFilename += ".#{@config.artifactExtension.name}"
|
36
36
|
end
|
37
37
|
@exe_name ||= File.join([@block.output_dir, baseFilename])
|
38
38
|
end
|
data/lib/blocks/library.rb
CHANGED
@@ -21,12 +21,14 @@ module Bake
|
|
21
21
|
if not @config.artifactName.nil? and @config.artifactName.name != ""
|
22
22
|
baseFilename = @config.artifactName.name
|
23
23
|
else
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
24
|
+
baseFilename = "lib#{@projectName}.a"
|
25
|
+
end
|
26
|
+
if !@config.artifactExtension.nil? && @config.artifactExtension.name != "default"
|
27
|
+
extension = ".#{@config.artifactExtension.name}"
|
28
|
+
if baseFilename.include?(".")
|
29
|
+
baseFilename = baseFilename.split(".")[0...-1].join(".")
|
28
30
|
end
|
29
|
-
baseFilename
|
31
|
+
baseFilename += ".#{@config.artifactExtension.name}"
|
30
32
|
end
|
31
33
|
@archive_name ||= File.join([@block.output_dir, baseFilename])
|
32
34
|
end
|
data/lib/common/version.rb
CHANGED
data/lib/tocxx.rb
CHANGED
@@ -705,11 +705,12 @@ module Bake
|
|
705
705
|
end
|
706
706
|
|
707
707
|
|
708
|
-
metadata_json = Bake.options.dev_features.
|
708
|
+
metadata_json = Bake.options.dev_features.detect { |x| x.start_with?("metadata=") }
|
709
709
|
if metadata_json
|
710
710
|
metadata_file = metadata_json[9..-1]
|
711
711
|
mainBlock = Blocks::ALL_BLOCKS[@mainConfig.parent.name + "," + @mainConfig.name]
|
712
712
|
if Metamodel::ExecutableConfig === mainBlock.config || Metamodel::LibraryConfig === mainBlock.config
|
713
|
+
Subst.substToolchain(@defaultToolchain)
|
713
714
|
File.open(metadata_file, "w") do |f|
|
714
715
|
f.puts "{"
|
715
716
|
f.puts " \"module_path\": \"#{mainBlock.projectDir}\","
|
@@ -720,7 +721,8 @@ module Bake
|
|
720
721
|
f.puts " \"compiler_c\": \"#{@defaultToolchain[:COMPILER][:C][:COMMAND]}\","
|
721
722
|
f.puts " \"compiler_cxx\": \"#{@defaultToolchain[:COMPILER][:CPP][:COMMAND]}\","
|
722
723
|
f.puts " \"flags_c\": \"#{@defaultToolchain[:COMPILER][:C][:FLAGS]}\","
|
723
|
-
f.puts " \"flags_cxx\": \"#{@defaultToolchain[:COMPILER][:CPP][:FLAGS]}\""
|
724
|
+
f.puts " \"flags_cxx\": \"#{@defaultToolchain[:COMPILER][:CPP][:FLAGS]}\","
|
725
|
+
f.puts " \"toolchain\": \"#{@mainConfig.defaultToolchain.basedOn}\""
|
724
726
|
f.puts "}"
|
725
727
|
end
|
726
728
|
puts "File #{metadata_file} written."
|
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.2
|
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-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rtext
|