net.sf.antcontrib.cpptasks.gcc
Class GccLinker

java.lang.Object
  |
  +--net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
        |
        +--net.sf.antcontrib.cpptasks.compiler.AbstractLinker
              |
              +--net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
                    |
                    +--net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker
                          |
                          +--net.sf.antcontrib.cpptasks.gcc.GccLinker

public final class GccLinker
extends AbstractLdLinker

Adapter for the GCC linker

Author:
Adam Murdoch

Method Summary
protected  void addImpliedArgs(boolean debug, LinkType linkType, java.util.Vector args)
           
 java.lang.String decorateLinkerOption(java.lang.StringBuffer buf, java.lang.String arg)
          Allows drived linker to decorate linker option.
static GccLinker getInstance()
           
 java.io.File[] getLibraryPath()
          Returns library path.
 Linker getLinker(LinkType type)
          Gets the linker for the specified link type.
 
Methods inherited from class net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker
addBase, addFixed, addIncremental, addLibraryPatterns, addLibrarySets, addMap, addStack, getCommandFileSwitch, getEnvironmentIncludePath, getLibraryKey, getLibraryPatterns, getMaximumCommandLength, getOutputFileName, getOutputFileSwitch, isCaseSensitive, isHPUX, prepareArguments
 
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
createConfiguration, getCommand, getIdentifier, getLibtoolLinker, getOutputFileSwitch, getStartupObject, link, prepareFilename, prepareResponseFile, quoteFilename, runCommand
 
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractLinker
bid, createConfiguration
 
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
getIdentifier, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getInstance

public static GccLinker getInstance()

addImpliedArgs

protected void addImpliedArgs(boolean debug,
                              LinkType linkType,
                              java.util.Vector args)
Overrides:
addImpliedArgs in class AbstractLdLinker

getLibraryPath

public java.io.File[] getLibraryPath()
Returns library path.
Overrides:
getLibraryPath in class AbstractLdLinker

getLinker

public Linker getLinker(LinkType type)
Description copied from interface: Linker
Gets the linker for the specified link type.
Tags copied from interface: Linker
Returns:
appropriate linker or null, will return this if this linker can handle the specified link type

decorateLinkerOption

public java.lang.String decorateLinkerOption(java.lang.StringBuffer buf,
                                             java.lang.String arg)
Allows drived linker to decorate linker option. Override by GccLinker to prepend a "-Wl," to pass option to through gcc to linker.
Overrides:
decorateLinkerOption in class CommandLineLinker
Parameters:
buf - buffer that may be used and abused in the decoration process, must not be null.
arg - linker argument


Copyright © 2001-2002 Ant-Contrib project. All Rights Reserved.