Class: PaperHouse::ExecutableTask

Inherits:
BuildTask
  • Object
show all
Includes:
LinkerOptions
Defined in:
lib/paper_house/executable_task.rb

Overview

Compiles *.c files into an executable file.

Instance Attribute Summary collapse

Attributes included from LinkerOptions

#ldflags

Attributes inherited from BuildTask

#cc, #name, #target_directory

Attributes included from CcOptions

#cflags, #includes, #sources

Instance Method Summary collapse

Methods included from LinkerOptions

#library_dependencies, #library_dependencies=

Methods inherited from BuildTask

#target_path

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_nameObject 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