Show variants in -T output
This commit is contained in:
1 parent
e9e3c6711f
commit
ea66501311
2 files changed
+41
-1
No files matched your search
@@ -69,12 +69,12 @@ module Rscons
|
||||
end
|
||||
@script = Script.new
|
||||
@script.load(rsconscript)
|
||||
enable_variants
|
||||
if show_tasks
|
||||
show_script_tasks
|
||||
return 0
|
||||
end
|
||||
apply_task_params(tasks_and_params)
|
||||
enable_variants
|
||||
if tasks_and_params.empty?
|
||||
check_process_environments
|
||||
if Task.tasks["default"]
|
||||
@@ -354,6 +354,15 @@ module Rscons
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
unless @variant_groups.empty?
|
||||
@variant_groups.each do |variant_group|
|
||||
puts "\nVariant group#{variant_group[:name] ? " '#{variant_group[:name]}'" : ""}:"
|
||||
variant_group[:variants].each do |variant|
|
||||
puts " #{variant[:name]}#{variant[:enabled] ? " (enabled)" : ""}"
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def apply_task_params(tasks_and_params)
|
||||
|
||||
Reference in new issue
Block a user