Sha256: b1c15f76e6a2a58d3bb13c0fbca1739683cd29527414947b7aff5bca8e027dae
Contents?: true
Size: 975 Bytes
Versions: 9
Compression:
Stored size: 975 Bytes
Contents
#---------------------------------- # extconf.rb # $Revision: $ # $Date: $ #---------------------------------- require 'mkmf' class Path def initialize() if File::ALT_SEPARATOR.nil? @file_separator = File::SEPARATOR else @file_separator = File::ALT_SEPARATOR end end def include(parent, child) inc = joint(parent, child) $INCFLAGS += " -I#{inc}" $CFLAGS += " -I#{inc}" inc end def joint(parent, child) parent + @file_separator + child end end javahome = ENV['JAVA_HOME'] if !javahome.nil? p = Path.new inc = p.include(javahome, 'include') Dir.open(inc).each do |d| next if d[0] == ?. if File.directory?(p.joint(inc, d)) p.include(inc, d) break end end end def create_rjb_makefile if have_header("jni.h") create_makefile("rjbcore") end end case RUBY_PLATFORM when /mswin32/ $CFLAGS += ' /W3' when /cygwin/, /mingw/ $defs << '-DNONAMELESSUNION' end create_rjb_makefile
Version data entries
9 entries across 9 versions & 1 rubygems