|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
public final class OpenWatcomLibrarian
Adapter for the OpenWatcom Librarian.
Field Summary |
---|
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor |
---|
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID |
Method Summary | |
---|---|
protected void |
addBase(long base,
java.util.Vector args)
Add base address. |
protected void |
addEntry(java.lang.String entry,
java.util.Vector args)
Add alternative entry point. |
protected void |
addFixed(java.lang.Boolean fixed,
java.util.Vector args)
Add fixed parameter. |
protected void |
addImpliedArgs(boolean debug,
LinkType linkType,
java.util.Vector args)
Add implied arguments. |
protected void |
addIncremental(boolean incremental,
java.util.Vector args)
Add incremental option. |
protected void |
addMap(boolean map,
java.util.Vector args)
Add map option. |
protected void |
addStack(int stack,
java.util.Vector args)
Add stack size option. |
protected java.lang.String |
getCommandFileSwitch(java.lang.String cmdFile)
Get command file switch. |
static OpenWatcomLibrarian |
getInstance()
Singleton accessor. |
java.io.File[] |
getLibraryPath()
Get library search path. |
java.lang.String[] |
getLibraryPatterns(java.lang.String[] libnames,
LibraryTypeEnum libType)
Get file selectors for specified library names. |
Linker |
getLinker(LinkType type)
Get linker. |
int |
getMaximumCommandLength()
Gets maximum command line. |
java.lang.String[] |
getOutputFileSwitch(java.lang.String outFile)
Create output file switch. |
boolean |
isCaseSensitive()
Gets case-sensisitivity of processor. |
void |
link(CCTask task,
java.io.File outputFile,
java.lang.String[] sourceFiles,
CommandLineLinkerConfiguration config)
Builds a library. |
protected java.lang.String[] |
prepareArguments(CCTask task,
java.lang.String outputDir,
java.lang.String outputName,
java.lang.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 |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static OpenWatcomLibrarian getInstance()
protected void addBase(long base, java.util.Vector args)
addBase
in class CommandLineLinker
base
- long base addressargs
- Vector command line argumentsprotected void addEntry(java.lang.String entry, java.util.Vector args)
addEntry
in class CommandLineLinker
entry
- String entry pointargs
- Vector command line argumentsprotected void addFixed(java.lang.Boolean fixed, java.util.Vector args)
addFixed
in class CommandLineLinker
fixed
- Boolean true if fixedargs
- Vector command line argumentsprotected void addImpliedArgs(boolean debug, LinkType linkType, java.util.Vector args)
addImpliedArgs
in class CommandLineLinker
debug
- boolean true if debugginglinkType
- LinkType link typeargs
- Vector command line argumentsprotected void addIncremental(boolean incremental, java.util.Vector args)
addIncremental
in class CommandLineLinker
incremental
- boolean true if incrementalargs
- Vector command line argumentsprotected void addMap(boolean map, java.util.Vector args)
addMap
in class CommandLineLinker
map
- boolean true to create map fileargs
- Vector command line argumentprotected void addStack(int stack, java.util.Vector args)
addStack
in class CommandLineLinker
stack
- int stack sizeargs
- Vector command line argumentsprotected java.lang.String getCommandFileSwitch(java.lang.String cmdFile)
getCommandFileSwitch
in class CommandLineLinker
cmdFile
- String command file
public java.io.File[] getLibraryPath()
public java.lang.String[] getLibraryPatterns(java.lang.String[] libnames, LibraryTypeEnum libType)
libnames
- String[] library nameslibType
- LibraryTypeEnum library type enum
public Linker getLinker(LinkType type)
type
- LinkType link type
public int getMaximumCommandLength()
getMaximumCommandLength
in class CommandLineLinker
public java.lang.String[] getOutputFileSwitch(java.lang.String outFile)
getOutputFileSwitch
in class CommandLineLinker
outFile
- String output file switch
public boolean isCaseSensitive()
public void link(CCTask task, java.io.File outputFile, java.lang.String[] sourceFiles, CommandLineLinkerConfiguration config)
link
in class CommandLineLinker
task
- taskoutputFile
- generated librarysourceFiles
- object filesconfig
- linker configurationprotected java.lang.String[] prepareArguments(CCTask task, java.lang.String outputDir, java.lang.String outputName, java.lang.String[] sourceFiles, CommandLineLinkerConfiguration config)
prepareArguments
in class CommandLineLinker
task
- taskoutputDir
- output directoryoutputName
- output file namesourceFiles
- object filesconfig
- linker configuration
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |