Sha256: 4e5d97677928ea5ae1f31b8961bd47fdf7cebdb5c405831c0c887846187cb787
Contents?: true
Size: 989 Bytes
Versions: 19
Compression:
Stored size: 989 Bytes
Contents
require 'rbconfig' require 'shellwords' require File.expand_path '../arch', __FILE__ module Libv8 module Paths module_function def include_paths [Shellwords.escape(File.join(vendored_source_path, 'include'))] end def object_paths [:base, :libplatform, :libbase, :snapshot].map do |name| Shellwords.escape libv8_object(name) end end def config RbConfig::MAKEFILE_CONFIG end def libv8_object(name) filename = "#{libv8_profile}/libv8_#{name}.#{config['LIBEXT']}" unless File.exist? filename filename = "#{libv8_profile}/obj.target/tools/gyp/libv8_#{name}.#{config['LIBEXT']}" end return filename end def libv8_profile base = "#{vendored_source_path}/out/#{Libv8::Arch.libv8_arch}" debug = "#{base}.debug" File.exist?(debug) ? debug : "#{base}.release" end def vendored_source_path File.expand_path "../../../vendor/v8", __FILE__ end end end
Version data entries
19 entries across 19 versions & 1 rubygems