Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

Commit

Permalink
Merge branch 'libv8'
Browse files Browse the repository at this point in the history
  • Loading branch information
cowboyd committed May 27, 2011
1 parent a6c7757 commit d302bd6
Show file tree
Hide file tree
Showing 210 changed files with 6 additions and 74,190 deletions.
11 changes: 0 additions & 11 deletions Rakefile
Expand Up @@ -9,21 +9,10 @@ task :default => :spec
desc "remove all generated artifacts except built v8 objects"
task :clean do
sh "rm -rf pkg"
sh "rm -rf ext/v8/Makefile"
sh "rm -rf ext/v8/*.bundle ext/v8/*.so"
sh "rm -rf lib/v8/*.bundle lib/v8/*.so"
end

desc "remove all built v8 objects"
task "v8:clean" => "clean" do
sh "cd ext/v8/upstream && make clean"
end

desc "build v8 with debugging symbols (much slower)"
task "v8:debug" do
sh "cd ext/v8/upstream && make debug"
end

Rake::ExtensionTask.new("v8", eval(File.read("therubyracer.gemspec"))) do |ext|
ext.lib_dir = "lib/v8"
ext.source_pattern = "*.{cpp,h}"
Expand Down
13 changes: 4 additions & 9 deletions ext/v8/extconf.rb
@@ -1,23 +1,18 @@
require 'mkmf'
require 'set'
require 'libv8'

UPSTREAM = File.expand_path(File.dirname(__FILE__) + "/upstream")
BUILD = "#{UPSTREAM}/build/v8"
puts "Compiling The Ruby Racer..."


puts "Compiling V8"

system("cd #{UPSTREAM} && make") or raise "Error compiling V8"

find_header('v8.h', "#{BUILD}/include")
find_header('v8.h', Libv8.include_path)
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"

$DEFLIBPATH.unshift(BUILD)
$DEFLIBPATH.unshift(Libv8.library_path)
$LIBS << ' -lv8'

CONFIG['LDSHARED'] = '$(CXX) -shared' unless RUBY_PLATFORM =~ /darwin/
Expand Down
38 changes: 0 additions & 38 deletions ext/v8/upstream/Makefile

This file was deleted.

27 changes: 0 additions & 27 deletions ext/v8/upstream/detect_cpu.rb

This file was deleted.

13 changes: 0 additions & 13 deletions ext/v8/upstream/fpic-on-linux-amd64.patch

This file was deleted.

0 comments on commit d302bd6

Please sign in to comment.