Sha256: 258bdf540a42e5d6cc46334262e4352ed6a9d10df99b5891bbf82dcf0cef49a1
Contents?: true
Size: 836 Bytes
Versions: 8
Compression:
Stored size: 836 Bytes
Contents
require 'mkmf' require 'pathname' # Find the Gecode libraries. find_library("gecodeint", "" ) find_library("gecodekernel", "") find_library("gecodeminimodel", "") find_library("gecodesearch", "") find_library("gecodeset", "") # Set up some important locations. ROOT = Pathname.new(File.dirname(__FILE__) + '/..').realpath RUST_INCLUDES = "#{ROOT}/vendor/rust/include" BINDINGS_DIR = "#{ROOT}/lib/gecoder/bindings" EXT_DIR = "#{ROOT}/ext" ORIGINAL_DIR = Pathname.new('.').realpath cppflags = "-I#{RUST_INCLUDES} -I#{EXT_DIR}" with_cppflags(cppflags) { find_header("rust_conversions.hh", RUST_INCLUDES) find_header("rust_checks.hh", RUST_INCLUDES) } # Load the specification of the bindings. This creates the headers in the # current directory. load "#{BINDINGS_DIR}/bindings.rb" # Create the makefile. create_makefile("gecode")
Version data entries
8 entries across 8 versions & 1 rubygems