1
0
Fork 0
mirror of https://github.com/rubyjs/therubyracer synced 2023-03-27 23:21:42 -04:00
therubyracer/Rakefile

35 lines
819 B
Text
Raw Normal View History

require 'bundler'
require 'bundler/setup'
require "rake/extensiontask"
require "rspec/core/rake_task"
Bundler::GemHelper.install_tasks
2009-12-15 00:35:55 -05:00
2010-08-19 11:34:16 -04:00
task :default => :spec
desc "remove all generated artifacts except built v8 objects"
2010-02-08 12:23:57 -05:00
task :clean do
sh "rm -rf pkg"
2010-06-07 13:08:22 -04:00
sh "rm -rf ext/v8/Makefile"
sh "rm -rf ext/v8/*.bundle ext/v8/*.so"
sh "rm -rf lib/v8/*.bundle lib/v8/*.so"
2010-02-08 12:23:57 -05:00
end
desc "remove all built v8 objects"
task "v8:clean" => "clean" do
sh "cd ext/v8/upstream && make clean"
end
desc "build v8 with debugging symbols (much slower)"
task "v8:debug" do
sh "cd ext/v8/upstream && make debug"
end
Rake::ExtensionTask.new("v8", eval(File.read("therubyracer.gemspec"))) do |ext|
ext.lib_dir = "lib/v8"
ext.source_pattern = "*.{cpp,h}"
end
RSpec::Core::RakeTask.new(:spec)