|
||||||||||
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.borland.BorlandLibrarian
public class BorlandLibrarian
Adapter for the Borland(r) tlib 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)
|
protected void |
addEntry(java.lang.String entry,
java.util.Vector args)
|
protected void |
addFixed(java.lang.Boolean fixed,
java.util.Vector args)
|
protected void |
addImpliedArgs(boolean debug,
LinkType linkType,
java.util.Vector args)
|
protected void |
addIncremental(boolean incremental,
java.util.Vector args)
|
protected void |
addMap(boolean map,
java.util.Vector args)
|
protected void |
addStack(int stack,
java.util.Vector args)
|
protected java.lang.String |
getCommandFileSwitch(java.lang.String cmdFile)
|
java.lang.String |
getIdentifier()
Gets identifier for the linker. |
static BorlandLibrarian |
getInstance()
|
java.io.File[] |
getLibraryPath()
returns the library path for the linker |
java.lang.String[] |
getLibraryPatterns(java.lang.String[] libnames,
LibraryTypeEnum libType)
Returns a set of filename patterns corresponding to library names. |
Linker |
getLinker(LinkType type)
Gets the linker for the specified link type. |
int |
getMaximumCommandLength()
|
java.lang.String[] |
getOutputFileSwitch(java.lang.String outFile)
|
boolean |
isCaseSensitive()
Returns true if the linker is case-sensitive |
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. |
protected java.lang.String[] |
prepareResponseFile(java.io.File outputFile,
java.lang.String[] args)
Prepares argument list to execute the linker using a response file. |
protected java.lang.String |
quoteFilename(java.lang.StringBuffer buf,
java.lang.String filename)
Encloses problematic file names within quotes. |
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker |
---|
addLibrarySets, createConfiguration, decorateLinkerOption, getCommand, getLibtoolLinker, getOutputFileNames, getOutputFileSwitch, getStartupObject, prepareFilename, 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 BorlandLibrarian getInstance()
protected void addBase(long base, java.util.Vector args)
addBase
in class CommandLineLinker
protected void addFixed(java.lang.Boolean fixed, java.util.Vector args)
addFixed
in class CommandLineLinker
protected void addImpliedArgs(boolean debug, LinkType linkType, java.util.Vector args)
addImpliedArgs
in class CommandLineLinker
protected void addIncremental(boolean incremental, java.util.Vector args)
addIncremental
in class CommandLineLinker
protected void addMap(boolean map, java.util.Vector args)
addMap
in class CommandLineLinker
protected void addStack(int stack, java.util.Vector args)
addStack
in class CommandLineLinker
protected void addEntry(java.lang.String entry, java.util.Vector args)
addEntry
in class CommandLineLinker
protected java.lang.String getCommandFileSwitch(java.lang.String cmdFile)
getCommandFileSwitch
in class CommandLineLinker
public java.io.File[] getLibraryPath()
Linker
public java.lang.String[] getLibraryPatterns(java.lang.String[] libnames, LibraryTypeEnum libType)
Linker
libnames
- array of library namespublic Linker getLinker(LinkType type)
Linker
public int getMaximumCommandLength()
getMaximumCommandLength
in class CommandLineLinker
public java.lang.String[] getOutputFileSwitch(java.lang.String outFile)
getOutputFileSwitch
in class CommandLineLinker
public boolean isCaseSensitive()
Linker
public java.lang.String getIdentifier()
getIdentifier
in interface Processor
getIdentifier
in class CommandLineLinker
protected java.lang.String[] prepareArguments(CCTask task, java.lang.String outputDir, java.lang.String outputName, java.lang.String[] sourceFiles, CommandLineLinkerConfiguration config)
prepareArguments
in class CommandLineLinker
outputDir
- linker output directoryoutputName
- linker output namesourceFiles
- linker input files (.obj, .o, .res)config
- linker configurationtask
- compilation task.
protected java.lang.String[] prepareResponseFile(java.io.File outputFile, java.lang.String[] args) throws java.io.IOException
prepareResponseFile
in class CommandLineLinker
outputFile
- linker output fileargs
- output of prepareArguments
java.io.IOException
public void link(CCTask task, java.io.File outputFile, java.lang.String[] sourceFiles, CommandLineLinkerConfiguration config) throws org.apache.tools.ant.BuildException
link
in class CommandLineLinker
org.apache.tools.ant.BuildException
protected java.lang.String quoteFilename(java.lang.StringBuffer buf, java.lang.String filename)
quoteFilename
in class CommandLineLinker
buf
- string bufferfilename
- source file name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |