public class BorlandLibrarian extends CommandLineLinker
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID| Modifier and Type | Method and Description |
|---|---|
protected void |
addBase(long base,
Vector args) |
protected void |
addEntry(String entry,
Vector args) |
protected void |
addFixed(Boolean fixed,
Vector args) |
protected void |
addImpliedArgs(boolean debug,
LinkType linkType,
Vector args) |
protected void |
addIncremental(boolean incremental,
Vector args) |
protected void |
addMap(boolean map,
Vector args) |
protected void |
addStack(int stack,
Vector args) |
protected String |
getCommandFileSwitch(String cmdFile) |
String |
getIdentifier()
Gets identifier for the linker.
|
static BorlandLibrarian |
getInstance() |
File[] |
getLibraryPath()
returns the library path for the linker
|
String[] |
getLibraryPatterns(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() |
String[] |
getOutputFileSwitch(String outFile) |
boolean |
isCaseSensitive()
Returns true if the linker is case-sensitive
|
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.
|
protected String[] |
prepareResponseFile(File outputFile,
String[] args)
Prepares argument list to execute the linker using a response file.
|
protected String |
quoteFilename(StringBuffer buf,
String filename)
Encloses problematic file names within quotes.
|
addLibrarySets, createConfiguration, decorateLinkerOption, getCommand, getLibtoolLinker, getOutputFileNames, getOutputFileSwitch, getStartupObject, prepareFilename, runCommand, setCommandaddVersionFiles, bid, changeEnvironment, createConfiguration, getLibraryKeyclone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toStringpublic static BorlandLibrarian getInstance()
protected void addBase(long base,
Vector args)
addBase in class CommandLineLinkerprotected void addFixed(Boolean fixed, Vector args)
addFixed in class CommandLineLinkerprotected void addImpliedArgs(boolean debug,
LinkType linkType,
Vector args)
addImpliedArgs in class CommandLineLinkerprotected void addIncremental(boolean incremental,
Vector args)
addIncremental in class CommandLineLinkerprotected void addMap(boolean map,
Vector args)
addMap in class CommandLineLinkerprotected void addStack(int stack,
Vector args)
addStack in class CommandLineLinkerprotected void addEntry(String entry, Vector args)
addEntry in class CommandLineLinkerprotected String getCommandFileSwitch(String cmdFile)
getCommandFileSwitch in class CommandLineLinkerpublic File[] getLibraryPath()
Linkerpublic String[] getLibraryPatterns(String[] libnames, LibraryTypeEnum libType)
Linkerlibnames - array of library namespublic Linker getLinker(LinkType type)
Linkerpublic int getMaximumCommandLength()
getMaximumCommandLength in class CommandLineLinkerpublic String[] getOutputFileSwitch(String outFile)
getOutputFileSwitch in class CommandLineLinkerpublic boolean isCaseSensitive()
Linkerpublic String getIdentifier()
getIdentifier in interface ProcessorgetIdentifier in class CommandLineLinkerprotected String[] prepareArguments(CCTask task, String outputDir, String outputName, String[] sourceFiles, CommandLineLinkerConfiguration config)
prepareArguments in class CommandLineLinkeroutputDir - linker output directoryoutputName - linker output namesourceFiles - linker input files (.obj, .o, .res)config - linker configurationtask - compilation task.protected String[] prepareResponseFile(File outputFile, String[] args) throws IOException
prepareResponseFile in class CommandLineLinkeroutputFile - linker output fileargs - output of prepareArgumentsIOExceptionpublic void link(CCTask task, File outputFile, String[] sourceFiles, CommandLineLinkerConfiguration config) throws org.apache.tools.ant.BuildException
link in class CommandLineLinkerorg.apache.tools.ant.BuildExceptionprotected String quoteFilename(StringBuffer buf, String filename)
quoteFilename in class CommandLineLinkerbuf - string bufferfilename - source file nameCopyright © 2001–2025 Ant-Contrib Project. All rights reserved.