Commit 65623d7d authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

Merge pull request #776 from carsonmcdonald/displaybuildinfo

Add build summary at the end of a build.
parents 93fa5799 6e72fb47
......@@ -42,7 +42,14 @@ depfiles += MRuby.targets.reject { |n, t| n == 'host' }.map { |n, t|
}.flatten
desc "build all targets, install (locally) in-repo"
task :all => depfiles
task :all => depfiles do
puts
puts "Build summary:"
puts
MRuby.each_target do
print_build_summary
end
end
desc "run all mruby tests"
task :test => MRuby.targets.values.map { |t| t.exefile("#{t.build_dir}/test/mrbtest") } do
......
......@@ -146,6 +146,16 @@ module MRuby
sh "#{filename mrbtest}"
puts
end
def print_build_summary
puts "================================================"
puts " Config Name: #{@name}"
puts " Output Directory: #{self.build_dir}"
puts " Binaries: #{@bins.join(', ')}" unless @bins.empty?
puts " Included Gems: #{@gems.map{|g| g.name }.join(', ')}" unless @gems.empty?
puts "================================================"
puts
end
end # Build
class CrossBuild < Build
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment