Sha256: eb70feb391329864569ab31cd3bbf5a3681e4ad2ac34de3acc821ea8376332f6

Contents?: true

Size: 767 Bytes

Versions: 3

Compression:

Stored size: 767 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?"

$CPPFLAGS += " -Wall" unless $CPPFLAGS.split.include? "-Wall"

CONFIG['LDSHARED'] = '$(CXX) -shared'

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

3 entries across 3 versions & 1 rubygems

Version Path
therubyracer-0.4.9-x86-linux ext/v8/extconf.rb
therubyracer-0.4.9-x86-darwin-10 ext/v8/extconf.rb
therubyracer-0.4.9 ext/v8/extconf.rb