net.sf.antcontrib.cpptasks.compiler

Class AbstractLinker

public abstract class AbstractLinker extends AbstractProcessor implements Linker

An abstract Linker implementation.

Author: Adam Murdoch

Constructor Summary
AbstractLinker(String[] objExtensions, String[] ignoredExtensions)
Method Summary
voidaddVersionFiles(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.
intbid(String inputFile)
Returns the bid of the processor for the file.
ProcessorchangeEnvironment(boolean newEnvironment, Environment env)
protected abstract LinkerConfigurationcreateConfiguration(CCTask task, LinkType linkType, ProcessorDef[] baseConfigs, LinkerDef specificConfig, TargetDef targetPlatform, VersionInfo versionInfo)
ProcessorConfigurationcreateConfiguration(CCTask task, LinkType linkType, ProcessorDef[] baseConfigs, ProcessorDef specificConfig, TargetDef targetPlatform, VersionInfo versionInfo)
StringgetLibraryKey(File libfile)
abstract String[]getOutputFileNames(String fileName, VersionInfo versionInfo)

Constructor Detail

AbstractLinker

public AbstractLinker(String[] objExtensions, String[] ignoredExtensions)

Method Detail

addVersionFiles

public 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.

Parameters: versionInfo version information linkType link type isDebug true if debug build outputFile name of generated executable objDir directory for generated files matcher 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.

Parameters: inputFile filename of input file

Returns: 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

changeEnvironment

public Processor changeEnvironment(boolean newEnvironment, Environment env)

createConfiguration

protected abstract LinkerConfiguration createConfiguration(CCTask task, LinkType linkType, ProcessorDef[] baseConfigs, LinkerDef specificConfig, TargetDef targetPlatform, VersionInfo versionInfo)

createConfiguration

public ProcessorConfiguration createConfiguration(CCTask task, LinkType linkType, ProcessorDef[] baseConfigs, ProcessorDef specificConfig, TargetDef targetPlatform, VersionInfo versionInfo)

getLibraryKey

public String getLibraryKey(File libfile)

getOutputFileNames

public abstract String[] getOutputFileNames(String fileName, VersionInfo versionInfo)
Copyright ? 2001-2011 Ant-Contrib project. All Rights Reserved.