Class: Library
Overview
A generic Library class that builds both shared and static
Direct Known Subclasses
Instance Attribute Summary collapse
-
#buildable ⇒ Object
readonly
Returns the value of attribute buildable.
Attributes inherited from Buildable
#cflags, #distributable, #enable, #id, #installable, #ldadd, #localdep, #output, #output_type, #project, #rpath, #sources, #sysdep, #topdir
Instance Method Summary collapse
-
#initialize(options) ⇒ Library
constructor
A new instance of Library.
Methods inherited from Buildable
#binary?, #build, #expand_sources, #finalize, #library?, #library_type, #makedepends, #objects
Constructor Details
#initialize(options) ⇒ Library
Returns a new instance of Library.
7 8 9 10 |
# File 'lib/makeconf/library.rb', line 7 def initialize() raise ArgumentError unless .kind_of?(Hash) @buildable = [SharedLibrary.new(), StaticLibrary.new()] end |
Instance Attribute Details
#buildable ⇒ Object (readonly)
Returns the value of attribute buildable.
5 6 7 |
# File 'lib/makeconf/library.rb', line 5 def buildable @buildable end |