%w[../xot ../rucy .] .map {|s| File.expand_path "../../#{s}/lib", __dir__} .each {|s| $:.unshift s if !$:.include?(s) && File.directory?(s)} require 'mkmf' require 'xot/extconf' require 'xot/extension' require 'rucy/extension' require 'rays/extension' Xot::ExtConf.new Xot, Rucy, Rays do setup do headers << 'ruby.h' libs.unshift 'gdi32', 'opengl32', 'glew32' if win32? frameworks << 'AppKit' << 'OpenGL' << 'AVFoundation' if osx? $LDFLAGS << ' -Wl,--out-implib=native.dll.a' if mingw? || cygwin? $CPPFLAGS << ' -DRAYS_32BIT_PIXELS_STRING' if RUBY_PLATFORM == 'x64-mingw-ucrt' end create_makefile 'rays/native' end