Class DevStudioCompatibleLinker
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.devstudio.DevStudioCompatibleLinker
- Direct Known Subclasses:
CompaqVisualFortranLinker
,DevStudioLinker
,IntelWin32Linker
Abstract base class for linkers that try to mimic the command line arguments
for the Microsoft (r) Incremental Linker
- Author:
- Curt Arnold
-
Field Summary
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
-
Constructor Summary
ConstructorsConstructorDescriptionDevStudioCompatibleLinker
(String command, String identifierArg, String outputSuffix) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
protected void
protected void
addImpliedArgs
(boolean debug, LinkType linkType, Vector args) protected void
addIncremental
(boolean incremental, Vector args) protected void
protected void
void
addVersionFiles
(VersionInfo versionInfo, LinkType linkType, File outputFile, boolean isDebug, File objDir, TargetMatcher matcher) Adds source or object files to the bidded fileset to support version information.getCommandFileSwitch
(String commandFile) File[]
returns the library path for the linkerString[]
getLibraryPatterns
(String[] libnames, LibraryTypeEnum libType) Returns a set of filename patterns corresponding to library names.int
String[]
getOutputFileSwitch
(String outputFile) boolean
Returns true if the linker is case-sensitiveMethods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
addLibrarySets, createConfiguration, decorateLinkerOption, getCommand, getIdentifier, getLibtoolLinker, getOutputFileNames, getOutputFileSwitch, getStartupObject, link, prepareArguments, prepareFilename, prepareResponseFile, quoteFilename, runCommand, setCommand
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractLinker
bid, changeEnvironment, createConfiguration, getLibraryKey
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
-
Constructor Details
-
DevStudioCompatibleLinker
-
-
Method Details
-
addBase
- Specified by:
addBase
in classCommandLineLinker
-
addFixed
- Specified by:
addFixed
in classCommandLineLinker
-
addImpliedArgs
- Specified by:
addImpliedArgs
in classCommandLineLinker
-
addIncremental
- Specified by:
addIncremental
in classCommandLineLinker
-
addMap
- Specified by:
addMap
in classCommandLineLinker
-
addStack
- Specified by:
addStack
in classCommandLineLinker
-
addEntry
- Specified by:
addEntry
in classCommandLineLinker
-
getCommandFileSwitch
- Specified by:
getCommandFileSwitch
in classCommandLineLinker
-
getLibraryPath
Description copied from interface:Linker
returns the library path for the linker -
getLibraryPatterns
Description copied from interface:Linker
Returns a set of filename patterns corresponding to library names. For example, "advapi32" would be expanded to "advapi32.dll" by DevStudioLinker and to "libadvapi32.a" and "libadvapi32.so" by GccLinker.- Parameters:
libnames
- array of library names
-
getMaximumCommandLength
public int getMaximumCommandLength()- Specified by:
getMaximumCommandLength
in classCommandLineLinker
-
getOutputFileSwitch
- Specified by:
getOutputFileSwitch
in classCommandLineLinker
-
isCaseSensitive
public boolean isCaseSensitive()Description copied from interface:Linker
Returns true if the linker is case-sensitive -
addVersionFiles
public void addVersionFiles(VersionInfo versionInfo, LinkType linkType, File outputFile, boolean isDebug, File objDir, TargetMatcher matcher) throws IOException Adds source or object files to the bidded fileset to support version information.- Specified by:
addVersionFiles
in interfaceLinker
- Overrides:
addVersionFiles
in classAbstractLinker
- Parameters:
versionInfo
- version informationlinkType
- link typeisDebug
- true if debug buildoutputFile
- name of generated executableobjDir
- directory for generated filesmatcher
- bidded fileset- Throws:
IOException
-