#NEWLINE# def shared_lib_suffix( ctx , platform = None ) : #NEWLINE# #INDENT# platform = ( platform if platform else guess_platform ( ctx ) ) #NEWLINE# if ( platform & { 'windows' , 'mingw' , 'cygwin' } ) : #NEWLINE# #INDENT# return '.dll' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( 'darwin' in platform ) : #NEWLINE# #INDENT# return '.dylib' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return '.so'