Sha256: d8960986ce64484b0ccfa63be369ea1f3e375703569e0683476391c518f84e70
Contents?: true
Size: 630 Bytes
Versions: 3
Compression:
Stored size: 630 Bytes
Contents
require 'mkmf' require 'rubygems' require 'pkg-config' ver = RUBY_VERSION.split(/\./).join.to_i $defs << "-DRUBY_VERSION=#{ver}" $CFLAGS << ' -Wall -Wextra -Wshadow' dir_config('jpeg') have_header('jpeglib.h') have_library('jpeg') if PKGConfig.have_package('cairo', 1, 2, 0) unless have_header('rb_cairo.h') if cairo = Gem.searcher.find('cairo') extconf_rb = File.expand_path(cairo.extensions[0], cairo.full_gem_path) rb_cairo_h = File.expand_path('../rb_cairo.h', extconf_rb) $CFLAGS << " -I#{File.dirname(rb_cairo_h)}" have_header('rb_cairo.h') end end end create_makefile('image_file')
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
image-file-0.1.2 | ext/image_file/extconf.rb |
image-file-0.1.1 | ext/image_file/extconf.rb |
image-file-0.1.0 | ext/image_file/extconf.rb |