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:
parent
795b66a092
commit
aeaad343b8
2 changed files with 8 additions and 0 deletions
7
Rakefile
7
Rakefile
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue