Class: Bake::Plugins::Cpp::Executable

Inherits:
Target show all
Includes:
MainTarget
Defined in:
lib/bake/plugins/cpp.rb

Instance Attribute Summary

Attributes inherited from Target

#children, #deps, #name, #parent, #posts, #toolset

Instance Method Summary collapse

Methods included from MainTarget

#add_dep, #build, #stale?

Methods inherited from Target

#add_dep, #build_r, #built?, #clean, #clean_r, #current_project, #dep, #initialize, #mtimes, #post, #products, #stale?, #to_s

Methods included from Configuration

#[], #default, #get, #has_prop?, #is?, #opt

Constructor Details

This class inherits a constructor from Bake::Target

Instance Method Details

#post_initialize(name) ⇒ Object



71
72
73
74
# File 'lib/bake/plugins/cpp.rb', line 71

def post_initialize(name)
    @name = name
    default(:debug_symbols? => false)
end

#run_commandObject

Enables Executable to be run via a Runner target.



77
78
79
# File 'lib/bake/plugins/cpp.rb', line 77

def run_command
    return toolset.exe_fn(self)
end