Sha256: beda0186ec682032f14a100ec7fa256dced8d551560acff5e59e83fa730c65b8
Contents?: true
Size: 797 Bytes
Versions: 2
Compression:
Stored size: 797 Bytes
Contents
require 'mkmf' RbConfig::MAKEFILE_CONFIG['CC'] = ENV['CC'] if ENV['CC'] $CFLAGS << " #{ENV["CFLAGS"]}" $CFLAGS << " -g" $CFLAGS << " -O3" unless $CFLAGS[/-O\d/] $CFLAGS << " -Wall -Wno-comment" def sys(cmd) puts " -- #{cmd}" unless ret = xsystem(cmd) raise "ERROR: '#{cmd}' failed" end ret end if !(MAKE = find_executable('gmake') || find_executable('make')) abort "ERROR: GNU make is required to build Rugged." end CWD = File.expand_path(File.dirname(__FILE__)) FREEIMAGE_DIR = File.join(CWD, '..', '..', 'vendor', 'FreeImage') Dir.chdir(FREEIMAGE_DIR) do sys(MAKE) end $DEFLIBPATH.unshift("#{FREEIMAGE_DIR}/Dist") dir_config('freeimage', "#{FREEIMAGE_DIR}/Dist", "#{FREEIMAGE_DIR}/Dist") have_library('stdc++') have_library('freeimage') create_makefile("rfreeimage/rfreeimage")
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rfreeimage-0.1.1 | ext/rfreeimage/extconf.rb |
rfreeimage-0.1.0 | ext/rfreeimage/extconf.rb |