Sha256: 83e43975c3f77e52625d51c44a0e3c3ca367ebefe683066000b78a251cfed78f
Contents?: true
Size: 1.07 KB
Versions: 2
Compression:
Stored size: 1.07 KB
Contents
# -*- coding: utf-8 -*- File.expand_path('../../../lib', __FILE__).tap do |path| $:.unshift path if !$:.include?(path) && File.directory?(path) end require 'mkmf' require 'xot/rake' require 'xot/module' include Xot::Rake debug = env :DEBUG, false DEFS = [] INCDIRS = %w[ /opt/local/include /opt/include ] LIBDIRS = [] HEADERS = %w[ boost/noncopyable.hpp ruby.h xot.h ] LIBS = %w[ stdc++ xot ] DEFS << '_DEBUG' if debug DEFS << 'NDEBUG' unless debug DEFS << 'WINDOWS' << 'WIN32' if win32? DEFS << 'COCOA' if cocoa? DEFS << $~[0].upcase if RUBY_PLATFORM =~ /mswin|ming|cygwin|darwin/i $CPPFLAGS << DEFS.map {|s| " -D#{s}"}.join $CPPFLAGS << INCDIRS.map {|s| " -I#{s}"}.join $LDFLAGS << LIBDIRS.map {|s| " -L#{s}"}.join $CFLAGS << ' --stdlib=libc++' if clang? RbConfig::CONFIG.each do |key, val| {'gcc' => 'g++', 'clang' => 'clang++'}.each {|from, to| val.gsub! from, to} end dir_config 'boost' dir_config 'xot', Xot.root_dir exit 1 unless HEADERS.all? {|s| have_header(s)} exit 1 unless LIBS.all? {|s| have_library(s)} create_makefile 'xot/tester'
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
xot-0.1.6 | ext/xot/extconf.rb |
xot-0.1.5 | ext/xot/extconf.rb |