Sha256: 11bedc934f4bf7025dc56ebb18a2859db1bc2cc5f1fc4eef1792a00503fa06b5
Contents?: true
Size: 681 Bytes
Versions: 4
Compression:
Stored size: 681 Bytes
Contents
# frozen_string_literal: true require 'ffi' require 'singleton' module SleepingKangaroo12 module Build # mostly taken from: # https://github.com/ffi/ffi-compiler/blob/master/lib/ffi-compiler/platform.rb class Platform include ::Singleton LIBSUFFIX = ::FFI::Platform.mac? ? 'bundle' : ::FFI::Platform::LIBSUFFIX def map_library_name(name) "#{::FFI::Platform::LIBPREFIX}#{name}.#{LIBSUFFIX}" end def arch ::FFI::Platform::ARCH end def os ::FFI::Platform::OS end def name ::FFI::Platform.name end def mac? ::FFI::Platform.mac? end end end end
Version data entries
4 entries across 4 versions & 1 rubygems