#NEWLINE# def generate_ending( self , outfile ) : #NEWLINE# #INDENT# targetlist = [ self . get_target_filename ( t ) for t in self . build . get_targets ( ) . values ( ) if ( not isinstance ( t , build . RunTarget ) ) ] #NEWLINE# elem = NinjaBuildElement ( self . all_outputs , 'all' , 'phony' , targetlist ) #NEWLINE# elem . write ( outfile ) #NEWLINE# default = 'default all\n\n' #NEWLINE# outfile . write ( default ) #NEWLINE# ninja_command = environment . detect_ninja ( ) #NEWLINE# if ( ninja_command is None ) : #NEWLINE# #INDENT# raise MesonException ( 'Could not detect ninja command' ) #NEWLINE# #UNINDENT# elem = NinjaBuildElement ( self . all_outputs , 'clean' , 'CUSTOM_COMMAND' , 'PHONY' ) #NEWLINE# elem . add_item ( 'COMMAND' , [ ninja_command , '-t' , 'clean' ] ) #NEWLINE# elem . add_item ( 'description' , 'Cleaning' ) #NEWLINE# if ( ( 'b_coverage' in self . environment . coredata . base_options ) and self . environment . coredata . base_options [ 'b_coverage' ] . value ) : #NEWLINE# #INDENT# self . generate_gcov_clean ( outfile ) #NEWLINE# elem . add_dep ( 'clean-gcda' ) #NEWLINE# elem . add_dep ( 'clean-gcno' ) #NEWLINE# #UNINDENT# elem . write ( outfile ) #NEWLINE# deps = self . get_regen_filelist ( ) #NEWLINE# elem = NinjaBuildElement ( self . all_outputs , 'build.ninja' , 'REGENERATE_BUILD' , deps ) #NEWLINE# elem . add_item ( 'pool' , 'console' ) #NEWLINE# elem . write ( outfile ) #NEWLINE# elem = NinjaBuildElement ( self . all_outputs , deps , 'phony' , '' ) #NEWLINE# elem . write ( outfile )