#NEWLINE# def detect( conf ) : #NEWLINE# #INDENT# v = conf . env #NEWLINE# winrc = v [ 'WINRC' ] #NEWLINE# v [ 'WINRC_TGT_F' ] = '-o' #NEWLINE# v [ 'WINRC_SRC_F' ] = '-i' #NEWLINE# if ( not winrc ) : #NEWLINE# #INDENT# if ( v [ 'CC_NAME' ] in [ 'gcc' , 'cc' , 'g++' , 'c++' ] ) : #NEWLINE# #INDENT# winrc = conf . find_program ( 'windres' , var = 'WINRC' , path_list = v [ 'PATH' ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( v [ 'CC_NAME' ] == 'msvc' ) : #NEWLINE# #INDENT# winrc = conf . find_program ( 'RC' , var = 'WINRC' , path_list = v [ 'PATH' ] ) #NEWLINE# v [ 'WINRC_TGT_F' ] = '/fo' #NEWLINE# v [ 'WINRC_SRC_F' ] = '' #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# if ( not winrc ) : #NEWLINE# #INDENT# conf . fatal ( 'winrc was not found!' ) #NEWLINE# #UNINDENT# v [ 'WINRCFLAGS' ] = ''