Class GccLibrarian
- 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.AbstractArLibrarian
-
- net.sf.antcontrib.cpptasks.gcc.cross.GccLibrarian
-
public final class GccLibrarian extends AbstractArLibrarian
Adapter for the 'ar' archiver
-
-
Field Summary
Fields Modifier and Type Field Description private static GccLibrarianinstanceprivate static java.lang.String[]objFileExtensions-
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
-
-
Constructor Summary
Constructors Modifier Constructor Description privateGccLibrarian(java.lang.String command, java.lang.String[] inputExtensions, boolean isLibtool, GccLibrarian libtoolLibrarian)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Objectclone()static GccLibrariangetInstance()LinkergetLinker(LinkType type)Gets the linker for the specified link type.voidlink(CCTask task, java.io.File outputFile, java.lang.String[] sourceFiles, CommandLineLinkerConfiguration config)Performs a link using a command line linkerprivate voidsuperlink(CCTask task, java.io.File outputFile, java.lang.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
-
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
addLibrarySets, createConfiguration, decorateLinkerOption, getCommand, getIdentifier, getLibtoolLinker, getOutputFileSwitch, getStartupObject, prepareArguments, prepareFilename, prepareResponseFile, quoteFilename, runCommand, setCommand
-
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractLinker
addVersionFiles, bid, changeEnvironment, createConfiguration, getLibraryKey
-
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
-
-
-
-
Field Detail
-
objFileExtensions
private static java.lang.String[] objFileExtensions
-
instance
private static GccLibrarian instance
-
-
Constructor Detail
-
GccLibrarian
private GccLibrarian(java.lang.String command, java.lang.String[] inputExtensions, boolean isLibtool, GccLibrarian libtoolLibrarian)
-
-
Method Detail
-
getInstance
public static GccLibrarian getInstance()
-
clone
protected java.lang.Object clone() throws java.lang.CloneNotSupportedException- Overrides:
clonein classAbstractProcessor- Throws:
java.lang.CloneNotSupportedException
-
getLinker
public Linker getLinker(LinkType type)
Description copied from interface:LinkerGets the linker for the specified link type.- Returns:
- appropriate linker or null, will return this if this linker can handle the specified link type
-
link
public void link(CCTask task, java.io.File outputFile, java.lang.String[] sourceFiles, CommandLineLinkerConfiguration config) throws org.apache.tools.ant.BuildException
Description copied from class:CommandLineLinkerPerforms a link using a command line linker- Overrides:
linkin classAbstractArLibrarian- Throws:
org.apache.tools.ant.BuildException
-
superlink
private void superlink(CCTask task, java.io.File outputFile, java.lang.String[] sourceFiles, CommandLineLinkerConfiguration config) throws org.apache.tools.ant.BuildException
- Throws:
org.apache.tools.ant.BuildException
-
-