Class OpenWatcomLinker
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
- Direct Known Subclasses:
OpenWatcomCLinker,OpenWatcomFortranLinker
Adapter for the OpenWatcom linker.
- Author:
- Curt Arnold
-
Field Summary
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedOpenWatcomLinker(String command, String outputSuffix) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidAdd specified base address to linker options.protected final voidAdds non-default entry point.protected final voidAdds fixed option.protected final voidaddImpliedArgs(boolean debug, LinkType linkType, Vector args) Adds other command line parameters.protected final voidaddIncremental(boolean incremental, Vector args) Add command line switch to force incremental linking.protected final voidAdd command line switch to force map generation.protected final voidAdd command line switch for stack reservation.final voidaddVersionFiles(VersionInfo versionInfo, LinkType linkType, File outputFile, boolean isDebug, File objDir, TargetMatcher matcher) Adds source or object files to the bidded fileset to support version information.final StringgetCommandFileSwitch(String commandFile) Get command file switch.final File[]Get search path for libraries.final String[]getLibraryPatterns(String[] libnames, LibraryTypeEnum libType) Get file selectors for libraries.final intGet maximum command line length.final String[]getOutputFileSwitch(String outFile) Get output file switch.final booleanGets 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, setCommandMethods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractLinker
bid, changeEnvironment, createConfiguration, getLibraryKeyMethods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
-
Constructor Details
-
OpenWatcomLinker
Constructor.- Parameters:
command- String command string (wcl386 or wfl386)outputSuffix- String output suffix
-
-
Method Details
-
addBase
Add specified base address to linker options.- Specified by:
addBasein classCommandLineLinker- Parameters:
base- long base addressargs- Vector command options
-
addEntry
Adds non-default entry point.- Specified by:
addEntryin classCommandLineLinker- Parameters:
entry- entry point nameargs- command line parameters
-
addFixed
Adds fixed option.- Specified by:
addFixedin classCommandLineLinker- Parameters:
fixed- if executable is fixedargs- command line parameters
-
addImpliedArgs
Adds other command line parameters.- Specified by:
addImpliedArgsin classCommandLineLinker- Parameters:
debug- boolean is debuglinkType- LinkType link typeargs- Vector command line arguments
-
addIncremental
Add command line switch to force incremental linking.- Specified by:
addIncrementalin classCommandLineLinker- Parameters:
incremental- boolean do incremental linkingargs- Vector command line arguments
-
addMap
Add command line switch to force map generation.- Specified by:
addMapin classCommandLineLinker- Parameters:
map- boolean build mapargs- Vector command line arguments
-
addStack
Add command line switch for stack reservation.- Specified by:
addStackin classCommandLineLinker- Parameters:
stack- int stack size.args- Vector command line arguments.
-
addVersionFiles
public final void addVersionFiles(VersionInfo versionInfo, LinkType linkType, File outputFile, boolean isDebug, File objDir, TargetMatcher matcher) throws IOException Adds source or object files to the bidded fileset to support version information.- Specified by:
addVersionFilesin interfaceLinker- Overrides:
addVersionFilesin classAbstractLinker- Parameters:
versionInfo- version informationlinkType- link typeoutputFile- name of generated executableisDebug- true if debug buildobjDir- directory for generated filesmatcher- bidded fileset- Throws:
IOException- if unable to write version resource
-
getCommandFileSwitch
Get command file switch.- Specified by:
getCommandFileSwitchin classCommandLineLinker- Parameters:
commandFile- String command file name- Returns:
- String command line option
-
getLibraryPath
Get search path for libraries.- Returns:
- File[] library path
-
getLibraryPatterns
Get file selectors for libraries.- Parameters:
libnames- String[]libType- LibraryTypeEnum- Returns:
- String[]
-
getMaximumCommandLength
public final int getMaximumCommandLength()Get maximum command line length.- Specified by:
getMaximumCommandLengthin classCommandLineLinker- Returns:
- int command line length
-
getOutputFileSwitch
Get output file switch.- Specified by:
getOutputFileSwitchin classCommandLineLinker- Parameters:
outFile- Output file name- Returns:
- String[] command line switches
-
isCaseSensitive
public final boolean isCaseSensitive()Gets file name sensitivity of processors.- Returns:
- boolean true if case sensitive.
-