Class: Library

Inherits:
Buildable show all
Defined in:
lib/makeconf/library.rb

Overview

A generic Library class that builds both shared and static

Direct Known Subclasses

UnionLibrary

Instance Attribute Summary collapse

Attributes inherited from Buildable

#cflags, #distributable, #enable, #id, #installable, #ldadd, #localdep, #output, #output_type, #project, #rpath, #sources, #sysdep, #topdir

Instance Method Summary collapse

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.

Raises:

  • (ArgumentError)


7
8
9
10
# File 'lib/makeconf/library.rb', line 7

def initialize(options)
  raise ArgumentError unless options.kind_of?(Hash)
  @buildable = [SharedLibrary.new(options), StaticLibrary.new(options)]
end

Instance Attribute Details

#buildableObject (readonly)

Returns the value of attribute buildable.



5
6
7
# File 'lib/makeconf/library.rb', line 5

def buildable
  @buildable
end