class Autorake::CheckLibrary

Constants

TYPE

Public Instance Methods

build_source() click to toggle source
# File lib/autorake/definition.rb, line 281
    def build_source
      <<-SRC
int main( int argc, char *argv[]) { return 0; }
      SRC
    end
check!() click to toggle source
Calls superclass method Autorake::Check#check!
# File lib/autorake/definition.rb, line 292
def check!
  super or raise "Library missing: #@name."
end
compile(t) click to toggle source
# File lib/autorake/definition.rb, line 286
def compile t
  c = Compiler.new @config.incdirs, @config.macros, "-w"
  c.cc t.obj, t.src
  l = Linker.new @config.libdirs, [ @name], "-w"
  l.cc t.bin, t.obj
end
set!() click to toggle source
# File lib/autorake/definition.rb, line 295
def set!
  @config.libs.push @name
end