Module: Rscons::Builders::Mixins::Object::ClassMethods

Defined in:
lib/rscons/builders/mixins/object.rb

Overview

Object mixin class methods.

Instance Method Summary collapse

Instance Method Details

#providersArray<Hash>

Returns Parameters used to build.

Returns:

  • (Array<Hash>)

    Parameters used to build.



27
28
29
# File 'lib/rscons/builders/mixins/object.rb', line 27

def providers
  @providers ||= []
end

#register(params) ⇒ Object

Register a set of parameters that can be used to build an Object.

Parameters:

  • params (Hash)

    Build parameters.

Options Hash (params):

  • :command (Array, String)

    Command or construction variable reference thereto.

  • :suffix (Array, String)

    Suffix(es) or construction variable reference thereto.

  • :short_description (String)

    Short description to be printed when the builder runs (default: “Compiling”)

  • :preferred_ld (String)

    Preferred linker for this object file, or a construction variable reference thereto.



45
46
47
# File 'lib/rscons/builders/mixins/object.rb', line 45

def register(params)
  providers << params
end