#NEWLINE# def addUniqueExecutables( self , graph , struct ) : #NEWLINE# #INDENT# allTools = [ ] #NEWLINE# for phase in struct . phaseInformation : #NEWLINE# #INDENT# phaseTools = [ ] #NEWLINE# for task in struct . phaseInformation [ phase ] . tasks : #NEWLINE# #INDENT# tool = graph . getGraphNodeAttribute ( task , 'tool' ) #NEWLINE# if ( tool in self . toolPaths ) : #NEWLINE# #INDENT# phaseTools . append ( self . toolPaths [ tool ] ) #NEWLINE# #UNINDENT# #UNINDENT# phaseTools = set ( phaseTools ) #NEWLINE# if self . isMultipleMakefiles : #NEWLINE# #INDENT# for key in self . filenames : #NEWLINE# #INDENT# if key . startswith ( str ( phase ) ) : #NEWLINE# #INDENT# filename = self . filenames [ key ] #NEWLINE# for tool in phaseTools : #NEWLINE# #INDENT# print ( str ( tool ) , file = self . filehandles [ filename ] ) #NEWLINE# #UNINDENT# print ( file = self . filehandles [ filename ] ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# allTools . extend ( phaseTools ) #NEWLINE# #UNINDENT# if ( not self . isMultipleMakefiles ) : #NEWLINE# #INDENT# for tool in list ( set ( allTools ) ) : #NEWLINE# #INDENT# print ( str ( tool ) , file = self . singleFilehandle ) #NEWLINE# #UNINDENT# print ( file = self . singleFilehandle )