Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
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
public abstract class AbstractLdLinker
extends CommandLineLinker
Field Summary |
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor | |
DEFAULT_DISCARD_BID , DEFAULT_PROCESS_BID |
Constructor Summary | |
|
Method Summary | |
void |
|
protected void |
|
void |
|
protected void |
|
void |
|
protected int |
|
String[] |
|
void |
|
void |
|
String |
|
protected File[] |
|
String |
|
File[] |
|
String[] |
|
int | |
String[] |
|
String[] |
|
boolean |
|
protected boolean |
|
String[] |
|
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 |
protected AbstractLdLinker(String command, String identifierArg, String[] extensions, String[] ignoredExtensions, String outputPrefix, String outputSuffix, boolean isLibtool, AbstractLdLinker libtoolLinker)
protected void addEntry(String entry, Vector args)
- Overrides:
- addEntry in interface CommandLineLinker
public void addFixed(Boolean fixed, Vector args)
- Overrides:
- addFixed in interface CommandLineLinker
protected void addImpliedArgs(boolean debug, LinkType linkType, Vector args)
- Overrides:
- addImpliedArgs in interface CommandLineLinker
public void addIncremental(boolean incremental, Vector args)
- Overrides:
- addIncremental in interface CommandLineLinker
protected int addLibraryPatterns(String[] libnames, StringBuffer buf, String prefix, String extension, String[] patterns, int offset)
public String[] addLibrarySets(CCTask task, LibrarySet[] libsets, Vector preargs, Vector midargs, Vector endargs)
- Overrides:
- addLibrarySets in interface CommandLineLinker
public void addStack(int stack, Vector args)
- Overrides:
- addStack in interface CommandLineLinker
public String getCommandFileSwitch(String commandFile)
- Overrides:
- getCommandFileSwitch in interface CommandLineLinker
protected File[] getEnvironmentIncludePath()
Returns library path.
public String getLibraryKey(File libfile)
Extracts the significant part of a library name to ensure there aren't collisions
- Specified by:
- getLibraryKey in interface Linker
- Overrides:
- getLibraryKey in interface AbstractLinker
public File[] getLibraryPath()
Returns library path.
- Specified by:
- getLibraryPath in interface Linker
public String[] getLibraryPatterns(String[] libnames, LibraryTypeEnum libType)
Returns a set of filename patterns corresponding to library names. For example, "advapi32" would be expanded to "advapi32.dll" by DevStudioLinker and to "libadvapi32.a" and "libadvapi32.so" by GccLinker.
- Specified by:
- getLibraryPatterns in interface Linker
- Parameters:
libnames
- array of library names
public int getMaximumCommandLength()
- Overrides:
- getMaximumCommandLength in interface CommandLineLinker
public String[] getOutputFileNames(String baseName, VersionInfo versionInfo)
Output file name (no path components) corresponding to source file
- Specified by:
- getOutputFileNames in interface Processor
- Overrides:
- getOutputFileNames in interface CommandLineLinker
- Parameters:
- Returns:
- output file name or null if no output file or name not determined by input file
public String[] getOutputFileSwitch(String outputFile)
- Overrides:
- getOutputFileSwitch in interface CommandLineLinker
public boolean isCaseSensitive()
Returns true if the linker is case-sensitive
- Specified by:
- isCaseSensitive in interface Linker
protected boolean isHPUX()
public String[] prepareArguments(CCTask task, String outputDir, String outputFile, String[] sourceFiles, CommandLineLinkerConfiguration config)
Prepares argument list for exec command. Will return null if command line would exceed allowable command line buffer.
- Overrides:
- prepareArguments in interface CommandLineLinker
- Parameters:
outputFile
- linker output filesourceFiles
- linker input files (.obj, .o, .res)
- Returns:
- arguments for runTask