Top Level Namespace

Defined Under Namespace

Modules: ActionDispatch, ActiveSupport, Couchbase, Rack Classes: MultiJson

Constant Summary collapse

LIBDIR =
INCLUDEDIR =
HEADER_DIRS =
[
  # First search /opt/local for macports
  '/opt/local/include',
  # Then search /usr/local for people that installed from source
  '/usr/local/include',
  # Check the ruby install locations
  INCLUDEDIR,
  # Finally fall back to /usr
  '/usr/include'
]
LIB_DIRS =
[
  # First search /opt/local for macports
  '/opt/local/lib',
  # Then search /usr/local for people that installed from source
  '/usr/local/lib',
  # Check the ruby install locations
  LIBDIR,
  # Finally fall back to /usr
  '/usr/lib'
]

Instance Method Summary collapse

Instance Method Details

#define(macro, value = nil) ⇒ Object



38
39
40
# File 'ext/couchbase_ext/extconf.rb', line 38

def define(macro, value = nil)
  $defs.push("-D #{[macro.upcase, value].compact.join('=')}")
end

#die(message) ⇒ Object



122
123
124
125
126
127
# File 'ext/couchbase_ext/extconf.rb', line 122

def die(message)
  STDERR.puts "\n#{"*" * 70}"
  STDERR.puts "#{message.gsub(/^/, "* ")}"
  STDERR.puts "#{"*" * 70}\n\n"
  abort
end