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

Rake task to build binary gem for native platform

This commit is contained in:
Charles Lowell 2012-06-14 04:20:28 -05:00
parent 795b66a092
commit aeaad343b8
2 changed files with 8 additions and 0 deletions

View file

@ -21,5 +21,12 @@ task :sanity => [:clean, :compile] do
sh %q{ruby -Ilib -e "require 'v8'"}
end
desc "Build therubyracer-#{V8::VERSION}-#{Gem::Platform.new(RUBY_PLATFORM)}.gem into the pkg directory"
task "build:native" => :build do
require "rubygems/compiler"
compiler = Gem::Compiler.new("pkg/therubyracer-#{V8::VERSION}.gem", File.expand_path('../pkg', __FILE__))
compiler.compile
end
task :default => :spec

View file

@ -20,5 +20,6 @@ Gem::Specification.new do |gem|
gem.add_development_dependency "rake"
gem.add_development_dependency "rake-compiler"
gem.add_development_dependency "gem-compiler"
gem.add_development_dependency "rspec", "~> 2.0"
end