Sha256: a715b8ce9dc494a5f576b778640434882c4e9be220125b2d22e753b1edb93dc4
Contents?: true
Size: 958 Bytes
Versions: 1
Compression:
Stored size: 958 Bytes
Contents
# -*- coding: utf-8 -*- %w[../../lib].each do |path| $: << File.expand_path(File.join File.dirname(__FILE__), *path.split('/')) end require 'rubygems' require 'mkmf' require 'rucy' DEBUG = ENV["DEBUG"] || false DEFS = [] INCDIRS = %w[/opt/local/include /opt/include] LIBDIRS = [] HEADERS = %w[ boost/noncopyable.hpp ruby.h rucy.h ] LIBS = %w[stdc++ rucy] DEFS << "_DEBUG" if DEBUG case RUBY_PLATFORM when /cygwin/ DEFS << "WIN32" << "WINDOWS" << "CYGWIN" when /mswin/ DEFS << "WIN32" << "WINDOWS" when /darwin/ DEFS << "COCOA" end $CPPFLAGS << DEFS.map {|s| " -D#{s}"}.join $CPPFLAGS << INCDIRS.map {|s| " -I#{s}"}.join $LDFLAGS << LIBDIRS.map {|s| " -L#{s}"}.join $LOCAL_LIBS << " -lrucy" dir_config "boost" dir_config "rucy", Rucy.root_dir Config::CONFIG.each {|key, val| val.gsub!(/gcc/, "g++")} exit 1 unless HEADERS.all? {|s| have_header(s)} exit 1 unless LIBS.all? {|s| have_library(s)} create_makefile "rucy/tester"
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rucy-0.1.0 | ext/rucy/extconf.rb |