Interface Linker
- All Superinterfaces:
Processor
- All Known Implementing Classes:
AbstractArLibrarian, AbstractLdLinker, AbstractLinker, aCCLinker, ADSLibrarian, ADSLinker, BorlandLibrarian, BorlandLinker, C89Linker, ClxxLibrarian, ClxxLinker, CommandLineLinker, CompaqVisualFortranLibrarian, CompaqVisualFortranLinker, DevStudioCompatibleLibrarian, DevStudioCompatibleLinker, DevStudioLibrarian, DevStudioLinker, ForteCCLinker, GccLibrarian, GccLibrarian, GccLibrarian, GccLinker, GccLinker, GccLinker, GppLinker, GppLinker, GppLinker, IccLinker, IntelLinux32Linker, IntelLinux64Linker, IntelWin32Librarian, IntelWin32Linker, LdLinker, LdLinker, LdLinker, OpenWatcomCLinker, OpenWatcomFortranLinker, OpenWatcomLibrarian, OpenWatcomLinker, OS390Linker, VisualAgeLinker
A linker for executables, and static and dynamic libraries.
- Author:
- Adam Murdoch
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddVersionFiles(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.getLibraryKey(File libname) Extracts the significant part of a library name to ensure there aren't collisionsFile[]returns the library path for the linkerString[]getLibraryPatterns(String[] libnames, LibraryTypeEnum libraryType) Returns a set of filename patterns corresponding to library names.Gets the linker for the specified link type.booleanReturns true if the linker is case-sensitiveMethods inherited from interface Processor
bid, changeEnvironment, createConfiguration, getIdentifier, getOutputFileNames
-
Method Details
-
getLibraryKey
-
getLibraryPath
File[] getLibraryPath()returns the library path for the linker -
getLibraryPatterns
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
-
getLinker
-
isCaseSensitive
boolean isCaseSensitive()Returns true if the linker is case-sensitive -
addVersionFiles
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.- Parameters:
versionInfo- version informationlinkType- link typeoutputFile- name of generated executableisDebug- true if debug buildobjDir- directory for generated filesmatcher- bidded fileset- Throws:
IOException
-