|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.github.maven_nar.cpptasks.compiler.AbstractProcessor
com.github.maven_nar.cpptasks.compiler.AbstractLinker
com.github.maven_nar.cpptasks.compiler.CommandLineLinker
com.github.maven_nar.cpptasks.borland.BorlandLibrarian
public class BorlandLibrarian
Adapter for the Borland(r) tlib Librarian
| Field Summary |
|---|
| Fields inherited from class com.github.maven_nar.cpptasks.compiler.AbstractProcessor |
|---|
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class com.github.maven_nar.cpptasks.compiler.CommandLineLinker |
|---|
addBase, addEntry, addFixed, addImpliedArgs, addIncremental, addLibrarySets, addMap, addStack, createConfiguration, decorateLinkerOption, getCommand, getCommandWithPath, getLibtoolLinker, getOutputFileNames, getOutputFileSwitch, getStartupObject, prepareFilename, runCommand, setCommand |
| Methods inherited from class com.github.maven_nar.cpptasks.compiler.AbstractLinker |
|---|
addVersionFiles, bid, changeEnvironment, createConfiguration, getLibraryKey |
| Methods inherited from class com.github.maven_nar.cpptasks.compiler.AbstractProcessor |
|---|
clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, isWindows, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static BorlandLibrarian getInstance()
protected String getCommandFileSwitch(String cmdFile)
getCommandFileSwitch in class CommandLineLinkerpublic File[] getLibraryPath()
Linker
public String[] getLibraryPatterns(String[] libnames,
LibraryTypeEnum libType)
Linker
libnames - array of library namespublic Linker getLinker(LinkType type)
Linker
public int getMaximumCommandLength()
getMaximumCommandLength in class CommandLineLinkerpublic String[] getOutputFileSwitch(String outFile)
getOutputFileSwitch in class CommandLineLinkerpublic boolean isCaseSensitive()
Linker
public String getIdentifier()
getIdentifier in interface ProcessorgetIdentifier in class CommandLineLinker
protected 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 prepareArguments
IOException
public void link(CCTask task,
File outputFile,
String[] sourceFiles,
CommandLineLinkerConfiguration config)
throws org.apache.tools.ant.BuildException
link in class CommandLineLinkerorg.apache.tools.ant.BuildException
protected String quoteFilename(StringBuffer buf,
String filename)
quoteFilename in class CommandLineLinkerbuf - string bufferfilename - source file name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||