Sha256: bdb5523f9efc52010ebb15cd4e9bac5221aa614b8a8d4333f985dabf202f560f
Contents?: true
Size: 1000 Bytes
Versions: 2
Compression:
Stored size: 1000 Bytes
Contents
require 'mkmf' UPSTREAM = File.expand_path(File.dirname(__FILE__) + "/upstream") BUILD = "#{UPSTREAM}/build/v8" puts "Compiling V8" system("cd #{UPSTREAM} && make") or raise "Error compiling V8" dir_config('v8', "#{BUILD}/include", "#{BUILD}") have_library('v8') or raise "Unable to find libv8 in #{BUILD}, was there an error compiling it?" 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" CONFIG['LDSHARED'] = '$(CXX) -shared' unless RUBY_PLATFORM =~ /darwin/ create_makefile('v8') # now add a few extra targets File.open("Makefile", "a") do |makefile| makefile.print <<EOF test: all @echo running spec... spec -O spec/spec.opts spec/therubyracer_spec.rb docs/cpp: mkdir -p docs/cpp docs: all docs/cpp @echo Generate C++ docs to docs/cpp/html doxygen Doxyfile EOF end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
therubyracer-0.7.0 | ext/v8/extconf.rb |
therubyracer-0.7.0.pre | ext/v8/extconf.rb |