Sha256: e7ebb269786bc04067173318e9f7b8400285328109744f5054b3c3992eeef6e0

Contents?: true

Size: 882 Bytes

Versions: 3

Compression:

Stored size: 882 Bytes

Contents

require 'mkmf'
require 'libv8'

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/
$CPPFLAGS += " -std=c++0x"
$CPPFLAGS += " -fpermissive"

if ENV['CXX']
  puts "SETTING CXX"
  CONFIG['CXX'] = ENV['CXX']
end

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')
  CONFIG['debugflags'] << ' -ggdb3 -O0'
end

Libv8.configure_makefile

create_makefile 'mini_racer_extension'

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mini_racer-0.1.0.beta.2 ext/mini_racer_extension/extconf.rb
mini_racer-0.1.0.beta.1-x86_64-linux ext/mini_racer_extension/extconf.rb
mini_racer-0.1.0.beta.1 ext/mini_racer_extension/extconf.rb