com.github.maven_nar.cpptasks.gcc.cross
Class GccLibrarian

java.lang.Object
  extended by com.github.maven_nar.cpptasks.compiler.AbstractProcessor
      extended by com.github.maven_nar.cpptasks.compiler.AbstractLinker
          extended by com.github.maven_nar.cpptasks.compiler.CommandLineLinker
              extended by com.github.maven_nar.cpptasks.gcc.AbstractArLibrarian
                  extended by com.github.maven_nar.cpptasks.gcc.cross.GccLibrarian
All Implemented Interfaces:
Linker, Processor, Cloneable

public final class GccLibrarian
extends AbstractArLibrarian

Adapter for the 'ar' archiver

Author:
Adam Murdoch

Field Summary
 
Fields inherited from class com.github.maven_nar.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)
          Performs a link using a command line linker
 
Methods inherited from class com.github.maven_nar.cpptasks.gcc.AbstractArLibrarian
addBase, addEntry, addFixed, addImpliedArgs, addIncremental, addMap, addStack, getCommandFileSwitch, getLibraryPath, getLibraryPatterns, getMaximumCommandLength, getOutputFileNames, getOutputFileSwitch, isCaseSensitive
 
Methods inherited from class com.github.maven_nar.cpptasks.compiler.CommandLineLinker
addLibrarySets, createConfiguration, decorateLinkerOption, getCommand, getCommandWithPath, getIdentifier, getLibtoolLinker, getOutputFileSwitch, getStartupObject, prepareArguments, prepareFilename, prepareResponseFile, quoteFilename, runCommand, setCommand
 
Methods inherited from class com.github.maven_nar.cpptasks.compiler.AbstractLinker
addVersionFiles, bid, changeEnvironment, createConfiguration, getLibraryKey
 
Methods inherited from class com.github.maven_nar.cpptasks.compiler.AbstractProcessor
getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, isWindows, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getInstance

public static GccLibrarian getInstance()

clone

protected Object clone()
                throws CloneNotSupportedException
Overrides:
clone in class AbstractProcessor
Throws:
CloneNotSupportedException

getLinker

public Linker getLinker(LinkType type)
Description copied from interface: Linker
Gets 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,
                 File outputFile,
                 String[] sourceFiles,
                 CommandLineLinkerConfiguration config)
          throws org.apache.tools.ant.BuildException
Description copied from class: CommandLineLinker
Performs a link using a command line linker

Overrides:
link in class AbstractArLibrarian
Throws:
org.apache.tools.ant.BuildException


Copyright © 2001-2013. All Rights Reserved.