#NEWLINE# @ feature ( 'cshlib' ) #NEWLINE# @ after ( 'apply_link' , 'default_cc' ) #NEWLINE# @ before ( 'apply_lib_vars' , 'apply_objdeps' , 'default_link_install' ) #NEWLINE# def apply_implib( self ) : #NEWLINE# #INDENT# 'On mswindows, handle dlls and their import libs\n\tthe .dll.a is the import lib and it is required for linking so it is installed too\n\t' #NEWLINE# if ( not ( self . env . DEST_BINFMT == 'pe' ) ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# self . meths . remove ( 'default_link_install' ) #NEWLINE# bindir = self . install_path #NEWLINE# if ( not bindir ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# dll = self . link_task . outputs [ 0 ] #NEWLINE# self . bld . install_files ( bindir , dll , bindir . env , self . chmod ) #NEWLINE# implib = ( self . env [ 'implib_PATTERN' ] % os . path . split ( self . target ) [ 1 ] ) #NEWLINE# implib = dll . parent . find_or_declare ( implib ) #NEWLINE# self . link_task . outputs . append ( implib ) #NEWLINE# self . bld . install_as ( ( '${LIBDIR}/%s' % implib . name ) , implib , self . env ) #NEWLINE# self . env . append_value ( 'LINKFLAGS' , ( self . env [ 'IMPLIB_ST' ] % implib . bldpath ( self . env ) ) . split ( ) )