Sha256: f3d83bbbd9fc0a3d7169ec14f00f5b4567eb5f7ae1fdd5921246522d13399ae9

Contents?: true

Size: 847 Bytes

Versions: 132

Compression:

Stored size: 847 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,
                                   platform,
                                   'libv8',
                                   'obj',
                                   "libv8_monolith.#{config['LIBEXT']}"))]
    end

    def platform
      Gem::Platform.local.tap { |p| RUBY_PLATFORM =~ /musl/ && p.version.nil? && p.instance_eval { @version = 'musl' } }.to_s.gsub(/-darwin-?\d+/, '-darwin')
    end

    def config
      RbConfig::MAKEFILE_CONFIG
    end

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

Version data entries

132 entries across 132 versions & 1 rubygems

Version Path
libv8-node-22.7.0.4-arm64-darwin ext/libv8-node/paths.rb
libv8-node-22.7.0.4-x86_64-linux-musl ext/libv8-node/paths.rb
libv8-node-22.7.0.4-x86_64-linux ext/libv8-node/paths.rb
libv8-node-22.7.0.4-x86_64-darwin ext/libv8-node/paths.rb
libv8-node-22.7.0.4 ext/libv8-node/paths.rb
libv8-node-22.7.0.4-aarch64-linux ext/libv8-node/paths.rb
libv8-node-22.7.0.3-x86_64-linux-musl ext/libv8-node/paths.rb
libv8-node-22.7.0.3-x86_64-linux ext/libv8-node/paths.rb
libv8-node-22.7.0.3 ext/libv8-node/paths.rb
libv8-node-22.7.0.3-arm64-darwin ext/libv8-node/paths.rb
libv8-node-22.7.0.3-aarch64-linux ext/libv8-node/paths.rb
libv8-node-22.7.0.2-x86_64-linux-musl ext/libv8-node/paths.rb
libv8-node-22.7.0.2-x86_64-linux ext/libv8-node/paths.rb
libv8-node-22.7.0.2-x86_64-darwin ext/libv8-node/paths.rb
libv8-node-22.7.0.2 ext/libv8-node/paths.rb
libv8-node-22.7.0.2-arm64-darwin ext/libv8-node/paths.rb
libv8-node-22.7.0.2-aarch64-linux ext/libv8-node/paths.rb
libv8-node-22.7.0.1-x86_64-linux-musl ext/libv8-node/paths.rb
libv8-node-22.7.0.1-x86_64-linux ext/libv8-node/paths.rb
libv8-node-22.7.0.1-x86_64-darwin ext/libv8-node/paths.rb