net.sf.antcontrib.cpptasks.gcc

Class GppLinker

public class GppLinker extends AbstractLdLinker

Adapter for the g++ variant of the GCC linker

Author: Stephen M. Webb

Field Summary
protected static String[]discardFiles
protected static String[]libtoolObjFiles
protected static String[]objFiles
Constructor Summary
protected GppLinker(String command, String[] extensions, String[] ignoredExtensions, String outputPrefix, String outputSuffix, boolean isLibtool, GppLinker libtoolLinker)
Method Summary
protected voidaddImpliedArgs(boolean debug, LinkType linkType, Vector args)
String[]addLibrarySets(CCTask task, LibrarySet[] libsets, Vector preargs, Vector midargs, Vector endargs)
StringdecorateLinkerOption(StringBuffer buf, String arg)
Allows drived linker to decorate linker option.
static GppLinkergetInstance()
File[]getLibraryPath()
Returns library path.
LinkergetLinker(LinkType type)

Field Detail

discardFiles

protected static final String[] discardFiles

libtoolObjFiles

protected static final String[] libtoolObjFiles

objFiles

protected static final String[] objFiles

Constructor Detail

GppLinker

protected GppLinker(String command, String[] extensions, String[] ignoredExtensions, String outputPrefix, String outputSuffix, boolean isLibtool, GppLinker libtoolLinker)

Method Detail

addImpliedArgs

protected void addImpliedArgs(boolean debug, LinkType linkType, Vector args)

addLibrarySets

public String[] addLibrarySets(CCTask task, LibrarySet[] libsets, Vector preargs, Vector midargs, Vector endargs)

decorateLinkerOption

public String decorateLinkerOption(StringBuffer buf, String arg)
Allows drived linker to decorate linker option. Override by GppLinker to prepend a "-Wl," to pass option to through gcc to linker.

Parameters: buf buffer that may be used and abused in the decoration process, must not be null. arg linker argument

getInstance

public static GppLinker getInstance()

getLibraryPath

public File[] getLibraryPath()
Returns library path.

getLinker

public Linker getLinker(LinkType type)
Copyright ? 2001-2011 Ant-Contrib project. All Rights Reserved.