net.sf.antcontrib.cpptasks.compiler
Class AbstractLinker
- Cloneable, Linker, Processor
public abstract class AbstractLinker
An abstract Linker implementation.
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.
|
int | bid(String inputFile) - Returns the bid of the processor for the file.
|
Processor | changeEnvironment(boolean newEnvironment, Environment env)
|
protected abstract LinkerConfiguration | createConfiguration(CCTask task, LinkType linkType, ProcessorDef[] baseConfigs, LinkerDef specificConfig, TargetDef targetPlatform, VersionInfo versionInfo)
|
ProcessorConfiguration | createConfiguration(CCTask task, LinkType linkType, ProcessorDef[] baseConfigs, ProcessorDef specificConfig, TargetDef targetPlatform, VersionInfo versionInfo) - Returns the compiler configuration for or element.
|
String | getLibraryKey(File libfile) - Extracts the significant part of a library name to ensure there aren't
collisions
|
abstract String[] | getOutputFileNames(String fileName, VersionInfo versionInfo) - Output file name (no path components) corresponding to source file
|
bid , changeEnvironment , clone , getHeaderExtensions , getIdentifier , getIdentifier , getOSArch , getOSName , getSourceExtensions , isDarwin , toString |
AbstractLinker
public AbstractLinker(String[] objExtensions,
String[] ignoredExtensions)
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.
- addVersionFiles in interface Linker
versionInfo
- version informationlinkType
- link typeisDebug
- true if debug buildobjDir
- directory for generated filesmatcher
- bidded fileset
bid
public int bid(String inputFile)
Returns the bid of the processor for the file.
A linker will bid 1 on any unrecognized file type.
- bid in interface Processor
- bid in interface AbstractProcessor
inputFile
- filename of input file
- bid for the file, 0 indicates no interest, 1 indicates that the
processor recognizes the file but doesn't process it (header
files, for example), 100 indicates strong interest
getLibraryKey
public String getLibraryKey(File libfile)
Extracts the significant part of a library name to ensure there aren't
collisions
- getLibraryKey in interface Linker
getOutputFileNames
public abstract String[] getOutputFileNames(String fileName,
VersionInfo versionInfo)
Output file name (no path components) corresponding to source file
- getOutputFileNames in interface Processor
- output file name or null if no output file or name not
determined by input file
Copyright B) 2001-2006 Ant-Contrib project. All Rights Reserved.