#NEWLINE# def cxxprogram_task( self , name ) : #NEWLINE# #INDENT# objects = [ tsk . outputs [ 0 ] for tsk in self . object_tasks ] #NEWLINE# def declare_target( ) : #NEWLINE# #INDENT# ( folder , base ) = os . path . split ( name ) #NEWLINE# tmp = ( ( folder + os . path . sep ) + ( self . env [ 'PROGRAM_FMT' ] % base ) ) #NEWLINE# return self . bld . path . declare ( tmp ) #NEWLINE# #UNINDENT# target = declare_target ( ) #NEWLINE# ensure_dir ( target . abspath ( ) ) #NEWLINE# task = task_factory ( 'cxxprogram' ) ( inputs = objects , outputs = [ target ] ) #NEWLINE# task . gen = objects #NEWLINE# task . env = self . env #NEWLINE# task . func = cxxprogram #NEWLINE# task . env_vars = cxxprogram_vars #NEWLINE# return [ task ]