Sha256: 5167679d6fedea398c47647dba2317b40e4b0b709aa73b01fb33440711d70bc7
Contents?: true
Size: 1.04 KB
Versions: 1
Compression:
Stored size: 1.04 KB
Contents
require 'mkmf' RUBY_VERSION =~ /(\d+.\d+)/ extension_name = "ashton/#{$1}/ashton" dir_config(extension_name) case RUBY_PLATFORM when /darwin/ # Everyone on OSX has plenty of OpenGL to go around. $LDFLAGS << " -framework OpenGL" when /win32|mingw/ gl_path = File.expand_path("../vendor/gl", __FILE__) $LDFLAGS << %{ -L"#{gl_path}/lib"} $CFLAGS << %{ -I"#{gl_path}/include"} exit unless have_library('opengl32.lib', 'glVertex3d') || have_library('opengl32') exit unless have_header 'GL/gl.h' else $LDFLAGS << " -lGL" # You are on Linux, so everything is hunky dory! exit unless have_library 'GL' end # 1.9 compatibility $CFLAGS << ' -DRUBY_19' # let's use a nicer C (rather than C90) $CFLAGS << " -std=gnu99" # Make it possible to use a debugger. #$CFLAGS << " -g -O0" if $warnflags # Stop getting annoying warnings for valid C99 code. $warnflags.gsub!('-Wdeclaration-after-statement', '') # Let's be good boys and girls! $warnflags << ' -Wall' end create_header create_makefile extension_name
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ashton-0.1.2 | ext/ashton/extconf.rb |