Class: PaperHouse::ExecutableTask
- Includes:
- LinkerOptions
- Defined in:
- lib/paper_house/executable_task.rb
Overview
Compiles *.c files into an executable file.
Instance Attribute Summary collapse
-
#executable_name ⇒ Object
(also: #target_file_name)
Name of target executable file.
Attributes included from LinkerOptions
Attributes inherited from BuildTask
Attributes included from CcOptions
Instance Method Summary collapse
-
#initialize(name, &block) ⇒ ExecutableTask
constructor
A new instance of ExecutableTask.
Methods included from LinkerOptions
#library_dependencies, #library_dependencies=
Methods inherited from BuildTask
Constructor Details
#initialize(name, &block) ⇒ ExecutableTask
Returns a new instance of ExecutableTask.
31 32 33 34 35 36 |
# File 'lib/paper_house/executable_task.rb', line 31 def initialize(name, &block) super name, &block Rake::Task[name].prerequisites.each do |each| find_prerequisites each, [StaticLibraryTask, SharedLibraryTask] end end |
Instance Attribute Details
#executable_name ⇒ Object Also known as: target_file_name
Name of target executable file.
40 |
# File 'lib/paper_house/executable_task.rb', line 40 attr_writer :executable_name |