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