Top Level Namespace

Defined Under Namespace

Modules: ActiveRecord, Intersys

Constant Summary collapse

WIN32 =
RUBY_PLATFORM.match(/mswin/)
MACOS =
RUBY_PLATFORM.match(/darwin/)

Instance Method Summary collapse

Instance Method Details

#include_flagsObject



34
35
36
# File 'lib/extconf.rb', line 34

def include_flags
  " "+(include_locations.map { |place| "-I"+place} + ["-Wall"]).join(" ")
end

#include_locationsObject



25
26
27
# File 'lib/extconf.rb', line 25

def include_locations
  locations("/dev/cpp/include") + ["./sql_include"]
end

#library_locationsObject



29
30
31
# File 'lib/extconf.rb', line 29

def library_locations
  locations("/dev/cpp/lib")
end


48
49
50
# File 'lib/extconf.rb', line 48

def link_flags
  " "+(library_locations.map { |place| WIN32 ? "-libpath:\"#{place}\"" :  ("-L"+place)} + ["-Wall"]).join(" ")
end

#locations(suffix) ⇒ Object



20
21
22
23
# File 'lib/extconf.rb', line 20

def locations(suffix)
  # .map{|place| place.split("/").join(WIN32 ? "\\" : "/")}
  @cache_placements.map {|place| place + suffix }
end