Sha256: d03c74812ff0fc5787227ff8b22405bd5cee65ca35016276c4215578eee72171
Contents?: true
Size: 732 Bytes
Versions: 1
Compression:
Stored size: 732 Bytes
Contents
require "mkmf" LIBDIR = RbConfig::CONFIG['libdir'] INCLUDEDIR = RbConfig::CONFIG['includedir'] HEADER_DIRS = [INCLUDEDIR, File.dirname(__FILE__)] # TODO: x86 or x86-64 (ming) # setup constant that is equal to that of the file path that holds that static libraries that will need to be compiled against LIB_DIRS = [LIBDIR, File.expand_path(File.join(File.dirname(__FILE__), "lib"))] # array of all libraries that the C extension should be compiled against libs = ['-lglfw3 -lgdi32 -lopengl32'] dir_config('glfw', HEADER_DIRS, LIB_DIRS) # iterate though the libs array, and append them to the $LOCAL_LIBS array used for the makefile creation libs.each do |lib| $LOCAL_LIBS << "#{lib} " end create_makefile("glfw/glfw")
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
glfw-0.9.8 | ext/glfw/extconf.rb |