Class: Daedalus::SharedLibrary

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



709
710
711
712
713
714
715
# File 'lib/daedalus.rb', line 709

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.link_shared name, object_files
  end
end

#libraryObject



705
706
707
# File 'lib/daedalus.rb', line 705

def library
  "#{@library}.#{RbConfig::CONFIG["DLEXT"]}"
end