net.sf.antcontrib.cpptasks.gcc.cross

Class GccLibrarian

Implemented Interfaces:
Cloneable, Linker, Processor

public final class GccLibrarian
extends AbstractArLibrarian

Adapter for the 'ar' archiver
Author:
Adam Murdoch

Field Summary

Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor

DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID

Method Summary

protected Object
clone()
static GccLibrarian
getInstance()
Linker
getLinker(LinkType type)
Gets the linker for the specified link type.
void
link(CCTask task, File outputFile, String[] sourceFiles, CommandLineLinkerConfiguration config)

Methods inherited from class net.sf.antcontrib.cpptasks.gcc.AbstractArLibrarian

addBase, addEntry, addFixed, addImpliedArgs, addIncremental, addMap, addStack, getCommandFileSwitch, getLibraryPath, getLibraryPatterns, getMaximumCommandLength, getOutputFileNames, getOutputFileSwitch, isCaseSensitive, link

Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker

addBase, addEntry, addFixed, addImpliedArgs, addIncremental, addLibrarySets, addMap, addStack, createConfiguration, decorateLinkerOption, getCommand, getCommandFileSwitch, getIdentifier, getLibtoolLinker, getMaximumCommandLength, getOutputFileNames, getOutputFileSwitch, getOutputFileSwitch, getStartupObject, link, prepareArguments, prepareFilename, prepareResponseFile, quoteFilename, runCommand, setCommand

Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractLinker

addVersionFiles, bid, changeEnvironment, createConfiguration, createConfiguration, getLibraryKey, getOutputFileNames

Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor

bid, changeEnvironment, clone, getHeaderExtensions, getIdentifier, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString

Method Details

clone

protected Object clone()
            throws CloneNotSupportedException
Overrides:
clone in interface AbstractProcessor

getInstance

public static GccLibrarian getInstance()

getLinker

public Linker getLinker(LinkType type)
Gets the linker for the specified link type.
Specified by:
getLinker in interface Linker
getLinker in interface Processor
Returns:
appropriate linker or null, will return this if this linker can handle the specified link type

link

public void link(CCTask task,
                 File outputFile,
                 String[] sourceFiles,
                 CommandLineLinkerConfiguration config)
            throws BuildException
Overrides:
link in interface AbstractArLibrarian

Copyright B) 2001-2006 Ant-Contrib project. All Rights Reserved.