Class OpenWatcomLibrarian
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.OpenWatcomLibrarian
Adapter for the OpenWatcom Librarian.
-
Field Summary
FieldsFields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Add base address.protected void
Add alternative entry point.protected void
Add fixed parameter.protected void
addImpliedArgs
(boolean debug, LinkType linkType, Vector args) Add implied arguments.protected void
addIncremental
(boolean incremental, Vector args) Add incremental option.protected void
Add map option.protected void
Add stack size option.protected String
getCommandFileSwitch
(String cmdFile) Get command file switch.static OpenWatcomLibrarian
Singleton accessor.File[]
Get library search path.String[]
getLibraryPatterns
(String[] libnames, LibraryTypeEnum libType) Get file selectors for specified library names.Get linker.int
Gets maximum command line.String[]
getOutputFileSwitch
(String outFile) Create output file switch.boolean
Gets case-sensisitivity of processor.void
link
(CCTask task, File outputFile, String[] sourceFiles, CommandLineLinkerConfiguration config) Builds a library.protected String[]
prepareArguments
(CCTask task, String outputDir, String outputName, String[] sourceFiles, CommandLineLinkerConfiguration config) Prepares argument list for exec command.Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
addLibrarySets, createConfiguration, decorateLinkerOption, getCommand, getIdentifier, getLibtoolLinker, getOutputFileNames, getOutputFileSwitch, getStartupObject, prepareFilename, prepareResponseFile, quoteFilename, runCommand, setCommand
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractLinker
addVersionFiles, bid, changeEnvironment, createConfiguration, getLibraryKey
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
-
Field Details
-
INSTANCE
Singleton.
-
-
Constructor Details
-
OpenWatcomLibrarian
private OpenWatcomLibrarian()Constructor.
-
-
Method Details
-
getInstance
Singleton accessor.- Returns:
- OpenWatcomLibrarian librarian instance
-
addBase
Add base address.- Specified by:
addBase
in classCommandLineLinker
- Parameters:
base
- long base addressargs
- Vector command line arguments
-
addEntry
Add alternative entry point.- Specified by:
addEntry
in classCommandLineLinker
- Parameters:
entry
- String entry pointargs
- Vector command line arguments
-
addFixed
Add fixed parameter.- Specified by:
addFixed
in classCommandLineLinker
- Parameters:
fixed
- Boolean true if fixedargs
- Vector command line arguments
-
addImpliedArgs
Add implied arguments.- Specified by:
addImpliedArgs
in classCommandLineLinker
- Parameters:
debug
- boolean true if debugginglinkType
- LinkType link typeargs
- Vector command line arguments
-
addIncremental
Add incremental option.- Specified by:
addIncremental
in classCommandLineLinker
- Parameters:
incremental
- boolean true if incrementalargs
- Vector command line arguments
-
addMap
Add map option.- Specified by:
addMap
in classCommandLineLinker
- Parameters:
map
- boolean true to create map fileargs
- Vector command line argument
-
addStack
Add stack size option.- Specified by:
addStack
in classCommandLineLinker
- Parameters:
stack
- int stack sizeargs
- Vector command line arguments
-
getCommandFileSwitch
Get command file switch.- Specified by:
getCommandFileSwitch
in classCommandLineLinker
- Parameters:
cmdFile
- String command file- Returns:
- String command file switch
-
getLibraryPath
Get library search path.- Returns:
- File[] library search path
-
getLibraryPatterns
Get file selectors for specified library names.- Parameters:
libnames
- String[] library nameslibType
- LibraryTypeEnum library type enum- Returns:
- String[] file selection patterns
-
getLinker
Get linker.- Parameters:
type
- LinkType link type- Returns:
- Linker linker
-
getMaximumCommandLength
public int getMaximumCommandLength()Gets maximum command line.- Specified by:
getMaximumCommandLength
in classCommandLineLinker
- Returns:
- int maximum command line
-
getOutputFileSwitch
Create output file switch.- Specified by:
getOutputFileSwitch
in classCommandLineLinker
- Parameters:
outFile
- String output file switch- Returns:
- String[] output file switch
-
isCaseSensitive
public boolean isCaseSensitive()Gets case-sensisitivity of processor.- Returns:
- boolean true if case sensitive
-
link
public void link(CCTask task, File outputFile, String[] sourceFiles, CommandLineLinkerConfiguration config) Builds a library.- Overrides:
link
in classCommandLineLinker
- Parameters:
task
- taskoutputFile
- generated librarysourceFiles
- object filesconfig
- linker configuration
-
prepareArguments
protected String[] prepareArguments(CCTask task, String outputDir, String outputName, String[] sourceFiles, CommandLineLinkerConfiguration config) Prepares argument list for exec command.- Overrides:
prepareArguments
in classCommandLineLinker
- Parameters:
task
- taskoutputDir
- output directoryoutputName
- output file namesourceFiles
- object filesconfig
- linker configuration- Returns:
- arguments for runTask
-