Sha256: 573eea35275267a282e7f80264eee1c4caa11806088f0b3ecc0bd72bb51e0e3b

Contents?: true

Size: 1.06 KB

Versions: 30

Compression:

Stored size: 1.06 KB

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
  
  # Add the correct lib directory for the current version of Ruby (major.minor).
  $LOAD_PATH.unshift File.join(binary_path, RUBY_VERSION[/^\d+.\d+/])
end

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

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

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
gosu-0.15.2-x64-mingw32 lib/gosu.rb
gosu-0.15.2-x86-mingw32 lib/gosu.rb
gosu-0.15.1-x64-mingw32 lib/gosu.rb
gosu-0.15.1-x86-mingw32 lib/gosu.rb
gosu-0.15.0-x64-mingw32 lib/gosu.rb
gosu-0.15.0-x86-mingw32 lib/gosu.rb
gosu-0.14.5-x64-mingw32 lib/gosu.rb
gosu-0.14.5-x86-mingw32 lib/gosu.rb
gosu-0.14.4-x64-mingw32 lib/gosu.rb
gosu-0.14.4-x86-mingw32 lib/gosu.rb
gosu-0.14.3-x64-mingw32 lib/gosu.rb
gosu-0.14.3-x86-mingw32 lib/gosu.rb
gosu-0.14.1-x64-mingw32 lib/gosu.rb
gosu-0.14.1-x86-mingw32 lib/gosu.rb
gosu-0.14.0-x64-mingw32 lib/gosu.rb
gosu-0.14.0-x86-mingw32 lib/gosu.rb
gosu-0.14.0.pre3-x64-mingw32 lib/gosu.rb
gosu-0.14.0.pre3-x86-mingw32 lib/gosu.rb
gosu-0.14.0.pre2-x64-mingw32 lib/gosu.rb
gosu-0.14.0.pre2-x86-mingw32 lib/gosu.rb