bake-toolkit 2.16.1 → 2.17.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/documentation/_build/html/_images/debug_app.png +0 -0
- data/documentation/_build/html/_images/debug_debug.png +0 -0
- data/documentation/_build/html/_images/debug_flag.png +0 -0
- data/documentation/_build/html/_images/debug_map.png +0 -0
- data/documentation/_build/html/_images/debug_path.png +0 -0
- data/documentation/_build/html/_sources/changelog.txt +13 -1
- data/documentation/_build/html/_sources/ide/eclipse/eclipse.txt +1 -0
- data/documentation/_build/html/_sources/ide/eclipse/how_to_debug_in_eclipse.txt +38 -0
- data/documentation/_build/html/_sources/index.txt +1 -1
- data/documentation/_build/html/_static/debugEclipse/app.png +0 -0
- data/documentation/_build/html/_static/debugEclipse/debug.png +0 -0
- data/documentation/_build/html/_static/debugEclipse/flag.png +0 -0
- data/documentation/_build/html/_static/debugEclipse/map.png +0 -0
- data/documentation/_build/html/_static/debugEclipse/path.png +0 -0
- data/documentation/_build/html/_static/debug_app.png +0 -0
- data/documentation/_build/html/_static/debug_debug.png +0 -0
- data/documentation/_build/html/_static/debug_flag.png +0 -0
- data/documentation/_build/html/_static/debug_map.png +0 -0
- data/documentation/_build/html/_static/debug_path.png +0 -0
- data/documentation/_build/html/changelog.html +20 -4
- data/documentation/_build/html/commandline/commandline.html +3 -3
- data/documentation/_build/html/concepts/build_hierarchy.html +3 -3
- data/documentation/_build/html/concepts/concepts.html +3 -3
- data/documentation/_build/html/concepts/the_main_project.html +3 -3
- data/documentation/_build/html/concepts/the_project_meta_file.html +3 -3
- data/documentation/_build/html/genindex.html +3 -3
- data/documentation/_build/html/ide/eclipse/eclipse.html +4 -3
- data/documentation/_build/html/ide/eclipse/how_to_convert_existing_cdt_workspace.html +3 -3
- data/documentation/_build/html/ide/eclipse/how_to_create_a_new_project_in_eclipse.html +5 -5
- data/documentation/_build/html/ide/eclipse/how_to_create_a_workspace_in_eclipse.html +3 -3
- data/documentation/_build/html/ide/eclipse/how_to_debug_in_eclipse.html +199 -0
- data/documentation/_build/html/ide/eclipse/how_to_install_eclipse_plugin.html +3 -3
- data/documentation/_build/html/ide/eclipse/how_to_use_bake_in_eclipse.html +3 -3
- data/documentation/_build/html/ide/ide_integrations.html +4 -3
- data/documentation/_build/html/ide/vs/how_to_create_vs_projects.html +3 -3
- data/documentation/_build/html/ide/vs/how_to_debug_in_vs.html +3 -3
- data/documentation/_build/html/ide/vs/how_to_used_bake_in_vs.html +3 -3
- data/documentation/_build/html/ide/vs/vs.html +5 -5
- data/documentation/_build/html/ide/vs/vs_install.html +3 -3
- data/documentation/_build/html/index.html +6 -6
- data/documentation/_build/html/install/install_bake.html +3 -3
- data/documentation/_build/html/internal.html +3 -3
- data/documentation/_build/html/known_issues.html +3 -3
- data/documentation/_build/html/license.html +3 -3
- data/documentation/_build/html/performance/performance.html +3 -3
- data/documentation/_build/html/quickstart/quickstart.html +3 -3
- data/documentation/_build/html/search.html +3 -3
- data/documentation/_build/html/searchindex.js +1 -1
- data/documentation/_build/html/syntax/adapt_configs.html +3 -3
- data/documentation/_build/html/syntax/derive_configs.html +3 -3
- data/documentation/_build/html/syntax/project_meta_syntax.html +3 -3
- data/documentation/_build/html/syntax/syntax.html +3 -3
- data/documentation/_build/html/syntax/variable_substitutions.html +3 -3
- data/documentation/_build/html/tips_and_tricks/bundle.html +3 -3
- data/documentation/_build/html/tips_and_tricks/how_to_use_bake_with_cygwin.html +3 -3
- data/documentation/_build/html/tips_and_tricks/static_code_analysis.html +3 -3
- data/documentation/_build/html/tips_and_tricks/the_bakery.html +3 -3
- data/documentation/_build/html/tips_and_tricks/the_clang.html +3 -3
- data/documentation/_build/html/tips_and_tricks/tips_and_tricks.html +3 -3
- data/documentation/_build/html/why_bake/why_bake.html +5 -5
- data/lib/bake/config/loader.rb +60 -32
- data/lib/bake/libElement.rb +1 -1
- data/lib/bake/options/options.rb +1 -4
- data/lib/blocks/block.rb +5 -2
- data/lib/blocks/blockBase.rb +15 -1
- data/lib/blocks/compile.rb +3 -17
- data/lib/blocks/executable.rb +16 -15
- data/lib/common/exit_helper.rb +11 -1
- data/lib/common/version.rb +1 -1
- metadata +47 -3
- data/lib/bake/options/showConfigNames.rb +0 -41
@@ -1,41 +0,0 @@
|
|
1
|
-
require 'bake/model/loader'
|
2
|
-
require 'bake/options/options'
|
3
|
-
|
4
|
-
module Bake
|
5
|
-
|
6
|
-
class ConfigNames
|
7
|
-
|
8
|
-
def self.print(configs, default, filename)
|
9
|
-
foundValidConfig = false
|
10
|
-
configs.each do |c|
|
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"
|
17
|
-
end
|
18
|
-
Bake.formatter.printWarning("No configuration with a DefaultToolchain found", filename) unless foundValidConfig
|
19
|
-
|
20
|
-
ExitHelper.exit(0)
|
21
|
-
end
|
22
|
-
|
23
|
-
def self.show
|
24
|
-
loader = Loader.new
|
25
|
-
filename = Bake.options.main_dir+"/Project.meta"
|
26
|
-
f = loader.load(filename)
|
27
|
-
|
28
|
-
if f.root_elements.length != 1 or not Metamodel::Project === f.root_elements[0]
|
29
|
-
Bake.formatter.printError("Config file must have exactly one 'Project' element as root element", filename)
|
30
|
-
ExitHelper.exit(1)
|
31
|
-
end
|
32
|
-
|
33
|
-
default = f.root_elements[0].default
|
34
|
-
configs = f.root_elements[0].getConfig
|
35
|
-
|
36
|
-
ConfigNames.print(configs, default, filename)
|
37
|
-
end
|
38
|
-
|
39
|
-
end
|
40
|
-
|
41
|
-
end
|