Merge pull request #776 from carsonmcdonald/displaybuildinfo

Add build summary at the end of a build.
This commit is contained in:
Yukihiro "Matz" Matsumoto
2013-01-23 18:08:01 -08:00
2 changed files with 18 additions and 1 deletions
+8 -1
View File
@@ -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
+10
View File
@@ -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