Sha256: 2ac027f75062d864629be35f64299cab635021a01731ad4c5e115f80c57f7416

Contents?: true

Size: 679 Bytes

Versions: 5

Compression:

Stored size: 679 Bytes

Contents

require 'rbconfig'
require 'shellwords'

module Libv8; end

module Libv8::Node
  module Paths
    module_function

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

    def object_paths
      [Shellwords.escape(File.join(vendored_source_path,
                                   Gem::Platform.local.to_s,
                                   'libv8',
                                   'obj',
                                   "libv8_monolith.#{config['LIBEXT']}"))]
    end

    def config
      RbConfig::MAKEFILE_CONFIG
    end

    def vendored_source_path
      File.expand_path('../../vendor/v8', __dir__)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
libv8-node-16.10.0.0 ext/libv8-node/paths.rb
libv8-node-16.10.0.0-x86_64-linux ext/libv8-node/paths.rb
libv8-node-16.10.0.0-x86_64-linux-musl ext/libv8-node/paths.rb
libv8-node-16.10.0.0-x86_64-darwin-19 ext/libv8-node/paths.rb
libv8-node-16.10.0.0-aarch64-linux ext/libv8-node/paths.rb