|
||||||||||
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.openwatcom.OpenWatcomLinker
public abstract class OpenWatcomLinker
Adapter for the OpenWatcom linker.
Field Summary |
---|
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor |
---|
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID |
Constructor Summary | |
---|---|
protected |
OpenWatcomLinker(java.lang.String command,
java.lang.String outputSuffix)
Constructor. |
Method Summary | |
---|---|
protected void |
addBase(long base,
java.util.Vector args)
Add specified base address to linker options. |
protected void |
addEntry(java.lang.String entry,
java.util.Vector args)
Adds non-default entry point. |
protected void |
addFixed(java.lang.Boolean fixed,
java.util.Vector args)
Adds fixed option. |
protected void |
addImpliedArgs(boolean debug,
LinkType linkType,
java.util.Vector args)
Adds other command line parameters. |
protected void |
addIncremental(boolean incremental,
java.util.Vector args)
Add command line switch to force incremental linking. |
protected void |
addMap(boolean map,
java.util.Vector args)
Add command line switch to force map generation. |
protected void |
addStack(int stack,
java.util.Vector args)
Add command line switch for stack reservation. |
void |
addVersionFiles(VersionInfo versionInfo,
LinkType linkType,
java.io.File outputFile,
boolean isDebug,
java.io.File objDir,
TargetMatcher matcher)
Adds source or object files to the bidded fileset to support version information. |
java.lang.String |
getCommandFileSwitch(java.lang.String commandFile)
Get command file switch. |
java.io.File[] |
getLibraryPath()
Get search path for libraries. |
java.lang.String[] |
getLibraryPatterns(java.lang.String[] libnames,
LibraryTypeEnum libType)
Get file selectors for libraries. |
int |
getMaximumCommandLength()
Get maximum command line length. |
java.lang.String[] |
getOutputFileSwitch(java.lang.String outFile)
Get output file switch. |
boolean |
isCaseSensitive()
Gets file name sensitivity of processors. |
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker |
---|
addLibrarySets, createConfiguration, decorateLinkerOption, getCommand, getIdentifier, getLibtoolLinker, getOutputFileNames, getOutputFileSwitch, getStartupObject, link, prepareArguments, prepareFilename, prepareResponseFile, quoteFilename, runCommand, setCommand |
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractLinker |
---|
bid, changeEnvironment, createConfiguration, getLibraryKey |
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 OpenWatcomLinker(java.lang.String command, java.lang.String outputSuffix)
command
- String command string (wcl386 or wfl386)outputSuffix
- String output suffixMethod Detail |
---|
protected final void addBase(long base, java.util.Vector args)
addBase
in class CommandLineLinker
base
- long base addressargs
- Vector command optionsprotected final void addEntry(java.lang.String entry, java.util.Vector args)
addEntry
in class CommandLineLinker
entry
- entry point nameargs
- command line parametersprotected final void addFixed(java.lang.Boolean fixed, java.util.Vector args)
addFixed
in class CommandLineLinker
fixed
- if executable is fixedargs
- command line parametersprotected final void addImpliedArgs(boolean debug, LinkType linkType, java.util.Vector args)
addImpliedArgs
in class CommandLineLinker
debug
- boolean is debuglinkType
- LinkType link typeargs
- Vector command line argumentsprotected final void addIncremental(boolean incremental, java.util.Vector args)
addIncremental
in class CommandLineLinker
incremental
- boolean do incremental linkingargs
- Vector command line argumentsprotected final void addMap(boolean map, java.util.Vector args)
addMap
in class CommandLineLinker
map
- boolean build mapargs
- Vector command line argumentsprotected final void addStack(int stack, java.util.Vector args)
addStack
in class CommandLineLinker
stack
- int stack size.args
- Vector command line arguments.public final void addVersionFiles(VersionInfo versionInfo, LinkType linkType, java.io.File outputFile, boolean isDebug, java.io.File objDir, TargetMatcher matcher) throws java.io.IOException
addVersionFiles
in interface Linker
addVersionFiles
in class AbstractLinker
versionInfo
- version informationlinkType
- link typeisDebug
- true if debug buildoutputFile
- name of generated executableobjDir
- directory for generated filesmatcher
- bidded fileset
java.io.IOException
- if unable to write version resourcepublic final java.lang.String getCommandFileSwitch(java.lang.String commandFile)
getCommandFileSwitch
in class CommandLineLinker
commandFile
- String command file name
public final java.io.File[] getLibraryPath()
public final java.lang.String[] getLibraryPatterns(java.lang.String[] libnames, LibraryTypeEnum libType)
libnames
- String[]libType
- LibraryTypeEnum
public final int getMaximumCommandLength()
getMaximumCommandLength
in class CommandLineLinker
public final java.lang.String[] getOutputFileSwitch(java.lang.String outFile)
getOutputFileSwitch
in class CommandLineLinker
outFile
- Output file name
public final boolean isCaseSensitive()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |