Class: Daedalus::StaticLibrary

Inherits:
Library
  • Object
show all
Defined in:
lib/daedalus.rb

Instance Attribute Summary

Attributes inherited from Library

#sources

Instance Method Summary collapse

Methods inherited from Library

#clean, #consider, #initialize, #name, #object_files, #out_of_date?, #path, #source_files

Constructor Details

This class inherits a constructor from Daedalus::Library

Instance Method Details

#build(compiler) ⇒ Object



616
617
618
619
620
621
622
# File 'lib/daedalus.rb', line 616

def build(compiler)
  Dir.chdir @base do
    # TODO: out of date checking should be subsumed in building
    @sources.each { |s| s.build @compiler if s.out_of_date? @compiler }
    @compiler.ar name, object_files
  end
end

#libraryObject



612
613
614
# File 'lib/daedalus.rb', line 612

def library
  "#{@library}.a"
end