Module: Libv8::Paths

Defined in:
ext/libv8/paths.rb

Class Method Summary collapse

Class Method Details

.configObject



20
21
22
# File 'ext/libv8/paths.rb', line 20

def config
  RbConfig::MAKEFILE_CONFIG
end

.include_pathsObject



8
9
10
# File 'ext/libv8/paths.rb', line 8

def include_paths
  [Shellwords.escape(File.join(vendored_source_path, 'include'))]
end

.object_pathsObject



12
13
14
15
16
17
18
# File 'ext/libv8/paths.rb', line 12

def object_paths
  [Shellwords.escape(File.join(vendored_source_path,
                               'out.gn',
                               'libv8',
                               'obj',
                               "libv8_monolith.#{config['LIBEXT']}"))]
end

.vendored_source_pathObject



24
25
26
# File 'ext/libv8/paths.rb', line 24

def vendored_source_path
  File.expand_path "../../../vendor/v8", __FILE__
end