Top Level Namespace

Defined Under Namespace

Modules: Wiretap Classes: Node, ServerInfo, ServerList

Instance Method Summary collapse

Instance Method Details

#clear_locations(locations) ⇒ Object



55
56
57
# File 'ext/extconf.rb', line 55

def clear_locations(locations)
  locations.reject {|location| !File.exists?(location)}
end

#include_flagsObject



59
60
61
# File 'ext/extconf.rb', line 59

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

#include_locationsObject



47
48
49
# File 'ext/extconf.rb', line 47

def include_locations
  locations("/api") + @includes
end

#library_flagsObject



62
63
64
# File 'ext/extconf.rb', line 62

def library_flags
  " " + (clear_locations(library_locations) || []).map { |place| "-L"+place}.join(" ")
end

#library_locationsObject



51
52
53
# File 'ext/extconf.rb', line 51

def library_locations
  locations("/lib/dbg/"+library_path) + locations("/libs/"+old_library_path) + @libraries
end

#library_pathObject



29
30
31
32
33
34
35
36
# File 'ext/extconf.rb', line 29

def library_path
	case PLATFORM
		when /linux/
			"LINUX/i686/RHEL4/GCC_3_4_4"
		when /darwin/
			"MACOSX/fat/Darwin_8_3_0/GCC_4_0_1/"
	end
end

#locations(suffix) ⇒ Object



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

def locations(suffix)
  @wiretap_placements.map {|place| place + suffix}
end

#old_library_pathObject



38
39
40
41
42
43
44
45
# File 'ext/extconf.rb', line 38

def old_library_path
	case PLATFORM
		when /linux/
			"Linux/i686/RedHat/40/gcc_3.4.4/dbg/"
		when /darwin/
			"Mac/OSX/gcc_3.3/dbg"
	end
end