private void writeLinkOptions ( final String baseDir , final PropertyWriter writer , final TargetInfo linkTarget ) throws SAXException { if ( linkTarget != null ) { final ProcessorConfiguration config = linkTarget . getConfiguration ( ) ; if ( config instanceof CommandLineLinkerConfiguration ) { final CommandLineLinkerConfiguration linkConfig = ( CommandLineLinkerConfiguration ) config ; if ( linkConfig . getLinker ( ) instanceof BorlandLinker ) { final String linkID = "win32.Debug_Build.win32b.ilink32" ; writeIlinkArgs ( writer , linkID , linkConfig . getPreArguments ( ) ) ; writeIlinkArgs ( writer , linkID , linkConfig . getEndArguments ( ) ) ; writer . write ( linkID , "param.libfiles.1" , "cw32mt.lib" ) ; writer . write ( linkID , "param.libfiles.2" , "import32.lib" ) ; int libIndex = 3 ; final String [ ] libNames = linkConfig . getLibraryNames ( ) ; for ( final String libName : libNames ) { writer . write ( linkID , "param.libfiles." + libIndex ++ , libName ) ; } final String startup = linkConfig . getStartupObject ( ) ; if ( startup != null ) { writer . write ( linkID , "param.objfiles.1" , startup ) ; } } else { final String linkID = "linux.Debug_Build.gnuc++.g++link" ; writeLdArgs ( writer , linkID , linkConfig . getPreArguments ( ) ) ; writeLdArgs ( writer , linkID , linkConfig . getEndArguments ( ) ) ; } } } }
Writes elements corresponding to link options .