public final class OpenWatcomLibrarian extends CommandLineLinker
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
Modifier and Type | Method and Description |
---|---|
protected void |
addBase(long base,
Vector<String> args)
Add base address.
|
protected void |
addEntry(String entry,
Vector<String> args)
Add alternative entry point.
|
protected void |
addFixed(Boolean fixed,
Vector<String> args)
Add fixed parameter.
|
protected void |
addImpliedArgs(boolean debug,
LinkType linkType,
Vector<String> args)
Add implied arguments.
|
protected void |
addIncremental(boolean incremental,
Vector<String> args)
Add incremental option.
|
protected void |
addMap(boolean map,
Vector<String> args)
Add map option.
|
protected void |
addStack(int stack,
Vector<String> args)
Add stack size option.
|
protected String |
getCommandFileSwitch(String cmdFile)
Get command file switch.
|
static OpenWatcomLibrarian |
getInstance()
Singleton accessor.
|
File[] |
getLibraryPath()
Get library search path.
|
String[] |
getLibraryPatterns(String[] libnames,
LibraryTypeEnum libType)
Get file selectors for specified library names.
|
Linker |
getLinker(LinkType type)
Get linker.
|
int |
getMaximumCommandLength()
Gets maximum command line.
|
String[] |
getOutputFileSwitch(String outFile)
Create output file switch.
|
boolean |
isCaseSensitive()
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.
|
addBase, addEntry, addFixed, addImpliedArgs, addIncremental, addLibraryDirectory, addLibraryPath, addLibrarySets, addMap, addStack, createConfiguration, decorateLinkerOption, getCommand, getCommandWithPath, getIdentifier, getLibtoolLinker, getOutputFileNames, getOutputFileSwitch, getStartupObject, prepareFilename, prepareResponseFile, quoteFilename, runCommand, setCommand
addVersionFiles, bid, changeEnvironment, createConfiguration, getLibraryKey
clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, isWindows, toString
public static OpenWatcomLibrarian getInstance()
protected void addBase(long base, Vector<String> args)
base
- long base addressargs
- Vector command line argumentsprotected void addEntry(String entry, Vector<String> args)
entry
- String entry pointargs
- Vector command line argumentsprotected void addFixed(Boolean fixed, Vector<String> args)
fixed
- Boolean true if fixedargs
- Vector command line argumentsprotected void addImpliedArgs(boolean debug, LinkType linkType, Vector<String> args)
debug
- boolean true if debugginglinkType
- LinkType link typeargs
- Vector command line argumentsprotected void addIncremental(boolean incremental, Vector<String> args)
incremental
- boolean true if incrementalargs
- Vector command line argumentsprotected void addMap(boolean map, Vector<String> args)
map
- boolean true to create map fileargs
- Vector command line argumentprotected void addStack(int stack, Vector<String> args)
stack
- int stack sizeargs
- Vector command line argumentsprotected String getCommandFileSwitch(String cmdFile)
getCommandFileSwitch
in class CommandLineLinker
cmdFile
- String command filepublic File[] getLibraryPath()
public String[] getLibraryPatterns(String[] libnames, LibraryTypeEnum libType)
libnames
- String[] library nameslibType
- LibraryTypeEnum library type enumpublic Linker getLinker(LinkType type)
type
- LinkType link typepublic int getMaximumCommandLength()
getMaximumCommandLength
in class CommandLineLinker
public String[] getOutputFileSwitch(String outFile)
getOutputFileSwitch
in class CommandLineLinker
outFile
- String output file switchpublic boolean isCaseSensitive()
public void link(CCTask task, File outputFile, String[] sourceFiles, CommandLineLinkerConfiguration config)
link
in class CommandLineLinker
task
- taskoutputFile
- generated librarysourceFiles
- object filesconfig
- linker configurationprotected String[] prepareArguments(CCTask task, String outputDir, String outputName, String[] sourceFiles, CommandLineLinkerConfiguration config)
prepareArguments
in class CommandLineLinker
task
- taskoutputDir
- output directoryoutputName
- output file namesourceFiles
- object filesconfig
- linker configurationCopyright © 2005-2016 NAR Maven Plugin developers. All Rights Reserved.