Sha256: 75b5f8f801b3a1cea8742d169aa6a5a18de2df9befdece12bcb434a1bc1be9c9

Contents?: true

Size: 905 Bytes

Versions: 9

Compression:

Stored size: 905 Bytes

Contents

require 'rbconfig'

if RUBY_PLATFORM =~ /mswin$|mingw32|mingw64|win32\-|\-win32/
  binary_path = File.dirname(__FILE__)
  # 64-bit builds of Windows use "x64-mingw32" as RUBY_PLATFORM
  binary_path += "64" if RUBY_PLATFORM =~ /^x64-/
  
  begin
    # Make DLLs available as shown here:
    # https://github.com/oneclick/rubyinstaller2/wiki/For-gem-developers
    require 'ruby_installer'
    RubyInstaller::Runtime.add_dll_directory(binary_path)
  rescue LoadError
    # Add this gem to the PATH on Windows so that bundled DLLs can be found.
    # When running through Ocra on Windows, we need to be careful to preserve the ENV["PATH"]
    # encoding (see #385).
    path_encoding = ENV["PATH"].encoding
    ENV["PATH"] = "#{binary_path.encode(path_encoding)};#{ENV["PATH"]}"
  end
end

require "gosu.#{RbConfig::CONFIG["DLEXT"]}"

require "gosu/swig_patches"
require "gosu/patches"
require "gosu/compat"

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
gosu-1.3.0 lib/gosu.rb
gosu-1.2.0 lib/gosu.rb
gosu-1.1.1.1 lib/gosu.rb
gosu-1.1.0 lib/gosu.rb
gosu-1.1.0.pre2 lib/gosu.rb
gosu-1.1.0.pre1 lib/gosu.rb
gosu-1.0.0 lib/gosu.rb
gosu-1.0.0.pre2 lib/gosu.rb
gosu-1.0.0.pre1 lib/gosu.rb