summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2013-01-23 18:08:01 -0800
committerYukihiro "Matz" Matsumoto <[email protected]>2013-01-23 18:08:01 -0800
commit65623d7d66c2ef4e3136ab90077ece988c451750 (patch)
tree69cf8955b0b96c82d517d3e945e325d5ab11970b
parent93fa57993f29788de862a248fe6dc45ecaae43b6 (diff)
parent6e72fb4781197e9231e794667ac9f83e1db429bd (diff)
downloadmruby-65623d7d66c2ef4e3136ab90077ece988c451750.tar.gz
mruby-65623d7d66c2ef4e3136ab90077ece988c451750.zip
Merge pull request #776 from carsonmcdonald/displaybuildinfo
Add build summary at the end of a build.
-rw-r--r--Rakefile9
-rw-r--r--tasks/mruby_build.rake10
2 files changed, 18 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index f0991d323..7d8dd4117 100644
--- a/Rakefile
+++ b/Rakefile
@@ -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
diff --git a/tasks/mruby_build.rake b/tasks/mruby_build.rake
index 711f7f024..08c0a5a05 100644
--- a/tasks/mruby_build.rake
+++ b/tasks/mruby_build.rake
@@ -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