mirror of
https://github.com/rubyjs/therubyracer
synced 2023-03-27 23:21:42 -04:00
23 lines
551 B
Ruby
23 lines
551 B
Ruby
require 'bundler'
|
|
require 'bundler/setup'
|
|
require "rake/extensiontask"
|
|
require "rspec/core/rake_task"
|
|
Bundler::GemHelper.install_tasks
|
|
|
|
task :default => :spec
|
|
|
|
desc "remove all generated artifacts except built v8 objects"
|
|
task :clean do
|
|
sh "rm -rf pkg"
|
|
sh "rm -rf ext/v8/*.bundle ext/v8/*.so"
|
|
sh "rm -rf lib/v8/*.bundle lib/v8/*.so"
|
|
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)
|
|
|
|
|