Class: Rscons::Builders::Program
- Inherits:
-
Rscons::Builder
- Object
- Rscons::Builder
- Rscons::Builders::Program
- Includes:
- Mixins::ObjectDeps, Mixins::Program
- Defined in:
- lib/rscons/builders/program.rb
Overview
A default Rscons builder that knows how to link object files into an executable program.
Instance Attribute Summary
Attributes inherited from Rscons::Builder
#build_step, #cache, #env, #preferred_ld, #side_effects, #sources, #target, #vars
Class Method Summary collapse
-
.new(options, *more) ⇒ Object
Custom new method which will delegate to the correct class depending on the options specified.
Instance Method Summary collapse
-
#initialize(options) ⇒ Program
constructor
Create an instance of the Builder to build a target.
Methods included from Mixins::Program
Methods included from Mixins::ObjectDeps
Methods inherited from Rscons::Builder
#depends, extra_path, #finalize_command, name, #name, #nop?, #print_run_message, #produces, #register_command, #run, #standard_command, #wait_for
Constructor Details
Class Method Details
.new(options, *more) ⇒ Object
Custom new method which will delegate to the correct class depending on the options specified.
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/rscons/builders/program.rb', line 13 def new(, *more) unless File.basename([:target])["."] [:target] += [:env].("${PROGSUFFIX}", [:vars]) end if [:vars][:direct] Object.new(, *more) else super end end |