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
ConstructorsModifierConstructorDescriptionprotected
OpenWatcomLinker
(String command, String outputSuffix) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected final void
Add specified base address to linker options.protected final void
Adds non-default entry point.protected final void
Adds fixed option.protected final void
addImpliedArgs
(boolean debug, LinkType linkType, Vector args) Adds other command line parameters.protected final void
addIncremental
(boolean incremental, Vector args) Add command line switch to force incremental linking.protected final void
Add command line switch to force map generation.protected final void
Add command line switch for stack reservation.final void
addVersionFiles
(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 String
getCommandFileSwitch
(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 int
Get maximum command line length.final String[]
getOutputFileSwitch
(String outFile) Get output file switch.final boolean
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
-
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:
addBase
in classCommandLineLinker
- Parameters:
base
- long base addressargs
- Vector command options
-
addEntry
Adds non-default entry point.- Specified by:
addEntry
in classCommandLineLinker
- Parameters:
entry
- entry point nameargs
- command line parameters
-
addFixed
Adds fixed option.- Specified by:
addFixed
in classCommandLineLinker
- Parameters:
fixed
- if executable is fixedargs
- command line parameters
-
addImpliedArgs
Adds other command line parameters.- Specified by:
addImpliedArgs
in classCommandLineLinker
- Parameters:
debug
- boolean is debuglinkType
- LinkType link typeargs
- Vector command line arguments
-
addIncremental
Add command line switch to force incremental linking.- Specified by:
addIncremental
in classCommandLineLinker
- Parameters:
incremental
- boolean do incremental linkingargs
- Vector command line arguments
-
addMap
Add command line switch to force map generation.- Specified by:
addMap
in classCommandLineLinker
- Parameters:
map
- boolean build mapargs
- Vector command line arguments
-
addStack
Add command line switch for stack reservation.- Specified by:
addStack
in 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:
addVersionFiles
in interfaceLinker
- Overrides:
addVersionFiles
in classAbstractLinker
- Parameters:
versionInfo
- version informationlinkType
- link typeisDebug
- true if debug buildoutputFile
- name of generated executableobjDir
- directory for generated filesmatcher
- bidded fileset- Throws:
IOException
- if unable to write version resource
-
getCommandFileSwitch
Get command file switch.- Specified by:
getCommandFileSwitch
in 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:
getMaximumCommandLength
in classCommandLineLinker
- Returns:
- int command line length
-
getOutputFileSwitch
Get output file switch.- Specified by:
getOutputFileSwitch
in 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.
-