Sha256: f7744514a95a5a8e6498970e0f4aeae61c2f38bfa6bf42c3d7a5fc6751ae7774

Contents?: true

Size: 494 Bytes

Versions: 3

Compression:

Stored size: 494 Bytes

Contents

require "mkmf"


headers = [RbConfig::CONFIG['includedir'], File.dirname(__FILE__)]
libdirs = [RbConfig::CONFIG['libdir']]

dir = 0.size == 4 ? 'ming32' : 'ming64'
libdirs << File.expand_path(File.join(File.dirname(__FILE__), dir))

case RbConfig::CONFIG['host_os']
when /mingw/
  $LOCAL_LIBS << '-lglfw3 -lgdi32 -lopengl32'
when /darwin/
  find_library("glfw", "glfwInit")
when /linux/
  find_library("glfw", "glfwInit")
end

dir_config('glfw', headers, libdirs)

create_makefile("glfw/glfw")

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
glfw-1.0.3 ext/glfw/extconf.rb
glfw-1.0.2 ext/glfw/extconf.rb
glfw-1.0.1 ext/glfw/extconf.rb