Sha256: 3ff29fbd1929c027300d705fec84e27e61806a1ff3e759367d4b623cd0e1b3d1

Contents?: true

Size: 838 Bytes

Versions: 1

Compression:

Stored size: 838 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

1 entries across 1 versions & 1 rubygems

Version Path
gecoder-with-gecode-0.7.1 ext/extconf.rb