|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
Abstract adapter for ld-like linkers
Field Summary |
---|
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor |
---|
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID |
Constructor Summary | |
---|---|
protected |
AbstractLdLinker(java.lang.String command,
java.lang.String identifierArg,
java.lang.String[] extensions,
java.lang.String[] ignoredExtensions,
java.lang.String outputPrefix,
java.lang.String outputSuffix,
boolean isLibtool,
AbstractLdLinker libtoolLinker)
|
Method Summary | |
---|---|
void |
addBase(long base,
java.util.Vector args)
|
protected void |
addEntry(java.lang.String entry,
java.util.Vector args)
|
void |
addFixed(java.lang.Boolean fixed,
java.util.Vector args)
|
protected void |
addImpliedArgs(boolean debug,
LinkType linkType,
java.util.Vector args)
|
void |
addIncremental(boolean incremental,
java.util.Vector args)
|
protected int |
addLibraryPatterns(java.lang.String[] libnames,
java.lang.StringBuffer buf,
java.lang.String prefix,
java.lang.String extension,
java.lang.String[] patterns,
int offset)
|
java.lang.String[] |
addLibrarySets(CCTask task,
LibrarySet[] libsets,
java.util.Vector preargs,
java.util.Vector midargs,
java.util.Vector endargs)
|
void |
addMap(boolean map,
java.util.Vector args)
|
void |
addStack(int stack,
java.util.Vector args)
|
java.lang.String |
getCommandFileSwitch(java.lang.String commandFile)
|
protected java.lang.String |
getDynamicLibFlag()
|
protected java.io.File[] |
getEnvironmentIncludePath()
Returns library path. |
java.lang.String |
getLibraryKey(java.io.File libfile)
Extracts the significant part of a library name to ensure there aren't collisions |
java.io.File[] |
getLibraryPath()
Returns library path. |
java.lang.String[] |
getLibraryPatterns(java.lang.String[] libnames,
LibraryTypeEnum libType)
Returns a set of filename patterns corresponding to library names. |
int |
getMaximumCommandLength()
|
java.lang.String[] |
getOutputFileNames(java.lang.String baseName,
VersionInfo versionInfo)
Output file name (no path components) corresponding to source file |
java.lang.String[] |
getOutputFileSwitch(java.lang.String outputFile)
|
protected java.lang.String |
getStaticLibFlag()
|
boolean |
isCaseSensitive()
Returns true if the linker is case-sensitive |
protected boolean |
isHPUX()
|
java.lang.String[] |
prepareArguments(CCTask task,
java.lang.String outputDir,
java.lang.String outputFile,
java.lang.String[] sourceFiles,
CommandLineLinkerConfiguration config)
Prepares argument list for exec command. |
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker |
---|
createConfiguration, decorateLinkerOption, getCommand, getIdentifier, getLibtoolLinker, getOutputFileSwitch, getStartupObject, link, prepareFilename, prepareResponseFile, quoteFilename, runCommand, setCommand |
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractLinker |
---|
addVersionFiles, bid, changeEnvironment, createConfiguration |
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor |
---|
clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface net.sf.antcontrib.cpptasks.compiler.Linker |
---|
getLinker |
Constructor Detail |
---|
protected AbstractLdLinker(java.lang.String command, java.lang.String identifierArg, java.lang.String[] extensions, java.lang.String[] ignoredExtensions, java.lang.String outputPrefix, java.lang.String outputSuffix, boolean isLibtool, AbstractLdLinker libtoolLinker)
Method Detail |
---|
public void addBase(long base, java.util.Vector args)
addBase
in class CommandLineLinker
public void addFixed(java.lang.Boolean fixed, java.util.Vector args)
addFixed
in class CommandLineLinker
protected void addImpliedArgs(boolean debug, LinkType linkType, java.util.Vector args)
addImpliedArgs
in class CommandLineLinker
public void addIncremental(boolean incremental, java.util.Vector args)
addIncremental
in class CommandLineLinker
protected int addLibraryPatterns(java.lang.String[] libnames, java.lang.StringBuffer buf, java.lang.String prefix, java.lang.String extension, java.lang.String[] patterns, int offset)
public java.lang.String[] addLibrarySets(CCTask task, LibrarySet[] libsets, java.util.Vector preargs, java.util.Vector midargs, java.util.Vector endargs)
addLibrarySets
in class CommandLineLinker
public void addMap(boolean map, java.util.Vector args)
addMap
in class CommandLineLinker
public void addStack(int stack, java.util.Vector args)
addStack
in class CommandLineLinker
protected void addEntry(java.lang.String entry, java.util.Vector args)
addEntry
in class CommandLineLinker
public java.lang.String getCommandFileSwitch(java.lang.String commandFile)
getCommandFileSwitch
in class CommandLineLinker
protected java.io.File[] getEnvironmentIncludePath()
public java.lang.String getLibraryKey(java.io.File libfile)
Linker
getLibraryKey
in interface Linker
getLibraryKey
in class AbstractLinker
public java.io.File[] getLibraryPath()
public java.lang.String[] getLibraryPatterns(java.lang.String[] libnames, LibraryTypeEnum libType)
Linker
libnames
- array of library namespublic int getMaximumCommandLength()
getMaximumCommandLength
in class CommandLineLinker
public java.lang.String[] getOutputFileNames(java.lang.String baseName, VersionInfo versionInfo)
Processor
getOutputFileNames
in interface Processor
getOutputFileNames
in class CommandLineLinker
baseName
- input file
public java.lang.String[] getOutputFileSwitch(java.lang.String outputFile)
getOutputFileSwitch
in class CommandLineLinker
public boolean isCaseSensitive()
Linker
protected boolean isHPUX()
public java.lang.String[] prepareArguments(CCTask task, java.lang.String outputDir, java.lang.String outputFile, java.lang.String[] sourceFiles, CommandLineLinkerConfiguration config)
prepareArguments
in class CommandLineLinker
outputFile
- linker output filesourceFiles
- linker input files (.obj, .o, .res)config
- linker configurationtask
- compilation task.
protected java.lang.String getDynamicLibFlag()
protected java.lang.String getStaticLibFlag()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |