mirror of
https://github.com/rubyjs/therubyracer
synced 2023-03-27 23:21:42 -04:00
25 lines
529 B
Ruby
25 lines
529 B
Ruby
#!/usr/bin/env rake
|
|
require 'bundler/setup'
|
|
require "bundler/gem_tasks"
|
|
|
|
task :clean do
|
|
sh "rm -rf lib/v8/init.bundle lib/v8/init.so"
|
|
sh "rm -rf pkg"
|
|
end
|
|
|
|
require "rake/extensiontask"
|
|
Rake::ExtensionTask.new("init", eval(File.read("therubyracer.gemspec"))) do |ext|
|
|
ext.ext_dir = "ext/v8"
|
|
ext.lib_dir = "lib/v8"
|
|
ext.source_pattern = "*.{cc,h}"
|
|
end
|
|
|
|
require 'rspec/core/rake_task'
|
|
RSpec::Core::RakeTask.new(:spec)
|
|
|
|
task :sanity => [:clean, :compile] do
|
|
sh %q{ruby -Ilib -e "require 'v8'"}
|
|
end
|
|
|
|
task :default => :spec
|
|
|