Top Level Namespace

Defined Under Namespace

Modules: Gecode, GecodeR, GecodeRaw

Constant Summary collapse

RUST_PATH =
File.dirname(__FILE__) + '/../../../vendor/rust'
ROOT =

Set up some important locations.

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
GECODE_LIB_DIR =

gecoder-with-gecode distribution.

"#{ROOT}/lib/lib"
GECODE_INCLUDE_DIR =
"#{ROOT}/lib/include"

Instance Method Summary collapse

Instance Method Details

#configuration(srcdir) ⇒ Object



36
37
38
# File 'ext/extconf.rb', line 36

def configuration(srcdir)
  old_configuration(srcdir) << "export LD_RUN_PATH=#{GECODE_LIB_DIR}"
end

#old_configurationObject

This is an ugly way to set LD_RUN_PATH. I couldn’t see any other way provided by mkmf or RubyGems.



35
# File 'ext/extconf.rb', line 35

alias old_configuration configuration