Sha256: bd9248013a7a9302f7d33c0673dff0ccfe015af4f1564347ab67f7b505c1f43d
Contents?: true
Size: 1.06 KB
Versions: 3
Compression:
Stored size: 1.06 KB
Contents
require 'mkmf' have_library('pthread') have_library('objc') if RUBY_PLATFORM =~ /darwin/ $CPPFLAGS += " -Wall" unless $CPPFLAGS.split.include? "-Wall" $CPPFLAGS += " -g" unless $CPPFLAGS.split.include? "-g" $CPPFLAGS += " -rdynamic" unless $CPPFLAGS.split.include? "-rdynamic" $CPPFLAGS += " -fPIC" unless $CPPFLAGS.split.include? "-rdynamic" or RUBY_PLATFORM =~ /darwin/ CONFIG['LDSHARED'] = '$(CXX) -shared' unless RUBY_PLATFORM =~ /darwin/ if CONFIG['warnflags'] CONFIG['warnflags'].gsub!('-Wdeclaration-after-statement', '') CONFIG['warnflags'].gsub!('-Wimplicit-function-declaration', '') end if enable_config('debug') $CFLAGS += " -O0 -ggdb3" end LIBV8_COMPATIBILITY = '~> 3.11.8' begin require 'rubygems' gem 'libv8', LIBV8_COMPATIBILITY rescue Gem::LoadError warn "Warning! Selecting libv8 #{LIBV8_COMPATIBILITY} failed. Has it been added to the gemspec?" rescue LoadError warn "Warning! Could not load rubygems. Please make sure you have libv8 #{LIBV8_COMPATIBILITY} installed." ensure require 'libv8' end Libv8.configure_makefile create_makefile('v8/init')
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
ish_lib_manager-0.0.1 | test/dummy/vendor/bundle/ruby/2.3.0/gems/therubyracer-0.11.4/ext/v8/extconf.rb |
therubyracer-0.11.4 | ext/v8/extconf.rb |
therubyracer-0.11.3 | ext/v8/extconf.rb |