mirror of
https://github.com/rubyjs/therubyracer
synced 2023-03-27 23:21:42 -04:00
Add dependency back on libv8
therubyracer now delegates all lookup for its v8 compilation dependencies to the libv8 gem. if you pass the --with-system-v8 flag to the libv8 gem on install, try to configure therubyracer upon compile with the following options. --with-v8-include, --with-v8-lib and --with-v8-dir Otherwise, it will configure therubyracer to use the vendored version of v8.
This commit is contained in:
parent
040bcf3c84
commit
fa2787ab4e
4 changed files with 10 additions and 12 deletions
7
Gemfile
7
Gemfile
|
@ -7,10 +7,3 @@ gem "rake"
|
|||
gem "rspec", "~> 2.0"
|
||||
gem "rake-compiler"
|
||||
gem 'gem-compiler' unless Object.const_defined?(:RUBY_ENGINE) && RUBY_ENGINE == 'rbx'
|
||||
|
||||
group :libv8 do
|
||||
gem 'libv8', "~> 3.11.8"
|
||||
end
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -16,10 +16,14 @@ end
|
|||
if enable_config('debug')
|
||||
$CFLAGS += " -O0 -ggdb3"
|
||||
end
|
||||
if have_rubygem_libv8?
|
||||
build_with_rubygem_libv8
|
||||
else
|
||||
build_with_system_libv8
|
||||
|
||||
begin
|
||||
require 'libv8'
|
||||
rescue LoadError
|
||||
require 'rubygems'
|
||||
gem 'libv8'
|
||||
require 'libv8'
|
||||
end
|
||||
Libv8.configure_makefile
|
||||
|
||||
create_makefile('v8/init')
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
module V8
|
||||
VERSION = "0.11.0"
|
||||
VERSION = "0.11.1beta1"
|
||||
end
|
||||
|
|
|
@ -17,4 +17,5 @@ Gem::Specification.new do |gem|
|
|||
gem.version = V8::VERSION
|
||||
|
||||
gem.add_dependency 'ref'
|
||||
gem.add_dependency 'libv8', '~> 3.11.8.5'
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue