Top Level Namespace

Defined Under Namespace

Modules: Melbourne Classes: File, String

Instance Method Summary collapse

Instance Method Details

#add_define(name) ⇒ Object



15
16
17
# File 'ext/melbourne/extconf.rb', line 15

def add_define(name)
  $defs.push("-D#{name}")
end

#check_heads(heads = [], fatal = false) ⇒ Object



11
12
13
# File 'ext/melbourne/extconf.rb', line 11

def check_heads(heads = [], fatal = false)
  heads.all? { |head| have_header(head) || (abort("could not find header: #{head}") if fatal)}
end

#check_libs(libs = [], fatal = false) ⇒ Object

Courtesy of EventMachine. Thank you EventMachine and tmm1 !



7
8
9
# File 'ext/melbourne/extconf.rb', line 7

def check_libs(libs = [], fatal = false)
  libs.all? { |lib| have_library(lib) || (abort("could not find library: #{lib}") if fatal) }
end