#NEWLINE# def getSourceTarget( self , project , source ) : #NEWLINE# #INDENT# if reCFiles . search ( source ) : #NEWLINE# #INDENT# if ( source . pch and ( source == project . pch . replace ( '.h' , '.cpp' ) ) ) : #NEWLINE# #INDENT# target = source . replace ( '.h' , '.pch' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# target = re . sub ( '\\.(cpp|c|cxx)$' , '.o' , source ) #NEWLINE# #UNINDENT# return target