bake-toolkit 2.9.2 → 2.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/doc/further/change.html +5 -0
- data/lib/bake/model/metamodel.rb +1 -0
- data/lib/bake/options/showConfigNames.rb +8 -11
- data/lib/blocks/compile.rb +9 -7
- data/lib/common/version.rb +1 -1
- data/lib/tocxx.rb +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7bba26c68d0bcaf88b3c88e7c9f225b45f2299f7
|
4
|
+
data.tar.gz: e2ee4accf56b90743fc1a11a9c93c77041b03973
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac5bc70b2cd476af88d06d4217eb825e39c27bd9523baeab0b4028aa77ddb877e26c1ef32e9bd47457f95784bd34895afed6c3ac1d2968d5830722b6c27a3029
|
7
|
+
data.tar.gz: c13e37d892c6e7e6b15d03bce73da8dfee15a338a6a159802ec4bebe5ca971ff4ba9d17d5e9de2942d108d36628b12aff445d4525bf0b2e9062ba28930ed8a3f
|
data/doc/further/change.html
CHANGED
@@ -7,6 +7,11 @@
|
|
7
7
|
<body>
|
8
8
|
<h1>Changelog</h1>
|
9
9
|
|
10
|
+
..., 2015 - bake-toolkit 2.10.0<br>
|
11
|
+
<ul>
|
12
|
+
<li><b>Added: Possibility to add descriptions for configs which will be printed when using <i>--show_configs</i></b>
|
13
|
+
</ul>
|
14
|
+
|
10
15
|
June 10, 2015 - bake-toolkit 2.9.2<br>
|
11
16
|
<ul>
|
12
17
|
<li><b>Cosmetic: Redundant include directories are now removed before calling the compiler</b>
|
data/lib/bake/model/metamodel.rb
CHANGED
@@ -192,6 +192,7 @@ module Bake
|
|
192
192
|
class BaseConfig_INTERNAL < ModelElement
|
193
193
|
has_attr 'name', String, :defaultValueLiteral => ""
|
194
194
|
has_attr 'extends', String, :defaultValueLiteral => ""
|
195
|
+
contains_one 'description', Description, 'parent'
|
195
196
|
contains_one 'startupSteps', StartupSteps, 'parent'
|
196
197
|
contains_one 'preSteps', PreSteps, 'parent'
|
197
198
|
contains_one 'postSteps', PostSteps, 'parent'
|
@@ -6,19 +6,16 @@ module Bake
|
|
6
6
|
class ConfigNames
|
7
7
|
|
8
8
|
def self.print(configs, default, filename)
|
9
|
-
|
9
|
+
foundValidConfig = false
|
10
10
|
configs.each do |c|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
puts "* " + v + d
|
18
|
-
end
|
19
|
-
else
|
20
|
-
Bake.formatter.printWarning("No configuration with a DefaultToolchain found", filename)
|
11
|
+
next if c.defaultToolchain.nil?
|
12
|
+
foundValidConfig = true
|
13
|
+
Kernel.print "* #{c.name}"
|
14
|
+
Kernel.print " (default)" if c.name == default
|
15
|
+
Kernel.print ": #{c.description.text}" if c.description
|
16
|
+
Kernel.print "\n"
|
21
17
|
end
|
18
|
+
Bake.formatter.printWarning("No configuration with a DefaultToolchain found", filename) unless foundValidConfig
|
22
19
|
|
23
20
|
ExitHelper.exit(0)
|
24
21
|
end
|
data/lib/blocks/compile.rb
CHANGED
@@ -32,15 +32,15 @@ module Bake
|
|
32
32
|
File.join([@output_dir, adaptedSource])
|
33
33
|
end
|
34
34
|
|
35
|
-
def
|
35
|
+
def maybe_needed?(source, object, type, dep_filename_conv)
|
36
36
|
return false if Bake.options.linkOnly
|
37
|
-
|
37
|
+
return false if Bake.options.prepro and type == ASM
|
38
|
+
return true
|
39
|
+
end
|
40
|
+
|
41
|
+
def needed?(source, object, type, dep_filename_conv)
|
38
42
|
return "because analyzer toolchain is configured" if Bake.options.analyze
|
39
|
-
|
40
|
-
if Bake.options.prepro
|
41
|
-
return "because prepro was specified and source is no assembler file" if type != :ASM
|
42
|
-
return false
|
43
|
-
end
|
43
|
+
return "because prepro was specified and source is no assembler file" if Bake.options.prepro
|
44
44
|
|
45
45
|
return "because object does not exist" if not File.exist?(object)
|
46
46
|
oTime = File.mtime(object)
|
@@ -114,6 +114,8 @@ module Bake
|
|
114
114
|
|
115
115
|
cmdLineCheck = false
|
116
116
|
cmdLineFile = calcCmdlineFile(object)
|
117
|
+
return true unless maybe_needed?(source, object, type, dep_filename_conv)
|
118
|
+
|
117
119
|
reason = needed?(source, object, type, dep_filename_conv)
|
118
120
|
if not reason
|
119
121
|
cmdLineCheck = true
|
data/lib/common/version.rb
CHANGED
data/lib/tocxx.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.10.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: 2015-
|
11
|
+
date: 2015-07-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rtext
|