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.
- Author:
- Curt Arnold
-
Field Summary
Fields inherited from class AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID -
Method Summary
Modifier and TypeMethodDescriptionprotected voidAdd base address.protected voidAdd alternative entry point.protected voidAdd fixed parameter.protected voidaddImpliedArgs(boolean debug, LinkType linkType, Vector args) Add implied arguments.protected voidaddIncremental(boolean incremental, Vector args) Add incremental option.protected voidAdd map option.protected voidAdd stack size option.protected StringgetCommandFileSwitch(String cmdFile) Get command file switch.static OpenWatcomLibrarianSingleton accessor.File[]Get library search path.String[]getLibraryPatterns(String[] libnames, LibraryTypeEnum libType) Get file selectors for specified library names.Get linker.intGets maximum command line.String[]getOutputFileSwitch(String outFile) Create output file switch.booleanGets case-sensisitivity of processor.voidlink(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 CommandLineLinker
addLibrarySets, createConfiguration, decorateLinkerOption, getCommand, getIdentifier, getLibtoolLinker, getOutputFileNames, getOutputFileSwitch, getStartupObject, prepareFilename, prepareResponseFile, quoteFilename, runCommand, setCommandMethods inherited from class AbstractLinker
addVersionFiles, bid, changeEnvironment, createConfiguration, getLibraryKeyMethods inherited from class AbstractProcessor
clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
-
Method Details
-
getInstance
Singleton accessor.- Returns:
- OpenWatcomLibrarian librarian instance
-
addBase
Add base address.- Specified by:
addBasein classCommandLineLinker- Parameters:
base- long base addressargs- Vector command line arguments
-
addEntry
Add alternative entry point.- Specified by:
addEntryin classCommandLineLinker- Parameters:
entry- String entry pointargs- Vector command line arguments
-
addFixed
Add fixed parameter.- Specified by:
addFixedin classCommandLineLinker- Parameters:
fixed- Boolean true if fixedargs- Vector command line arguments
-
addImpliedArgs
Add implied arguments.- Specified by:
addImpliedArgsin classCommandLineLinker- Parameters:
debug- boolean true if debugginglinkType- LinkType link typeargs- Vector command line arguments
-
addIncremental
Add incremental option.- Specified by:
addIncrementalin classCommandLineLinker- Parameters:
incremental- boolean true if incrementalargs- Vector command line arguments
-
addMap
Add map option.- Specified by:
addMapin classCommandLineLinker- Parameters:
map- boolean true to create map fileargs- Vector command line argument
-
addStack
Add stack size option.- Specified by:
addStackin classCommandLineLinker- Parameters:
stack- int stack sizeargs- Vector command line arguments
-
getCommandFileSwitch
Get command file switch.- Specified by:
getCommandFileSwitchin classCommandLineLinker- Parameters:
cmdFile- String command file- Returns:
- String command file switch
-
getLibraryPath
-
getLibraryPatterns
Get file selectors for specified library names.- Parameters:
libnames- String[] library nameslibType- LibraryTypeEnum library type enum- Returns:
- String[] file selection patterns
-
getLinker
-
getMaximumCommandLength
public int getMaximumCommandLength()Gets maximum command line.- Specified by:
getMaximumCommandLengthin classCommandLineLinker- Returns:
- int maximum command line
-
getOutputFileSwitch
Create output file switch.- Specified by:
getOutputFileSwitchin 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:
linkin 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:
prepareArgumentsin classCommandLineLinker- Parameters:
task- taskoutputDir- output directoryoutputName- output file namesourceFiles- object filesconfig- linker configuration- Returns:
- arguments for runTask
-