public abstract class AbstractLinker extends AbstractProcessor implements Linker
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
Constructor and Description |
---|
AbstractLinker(String[] objExtensions,
String[] ignoredExtensions) |
Modifier and Type | Method and Description |
---|---|
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,
org.apache.tools.ant.types.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
|
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
|
clone, getHeaderExtensions, getIdentifier, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, isWindows, toString
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getLibraryPath, getLibraryPatterns, getLinker, isCaseSensitive
getIdentifier
public void addVersionFiles(VersionInfo versionInfo, LinkType linkType, File outputFile, boolean isDebug, File objDir, TargetMatcher matcher) throws IOException
addVersionFiles
in interface Linker
versionInfo
- version informationlinkType
- link typeisDebug
- true if debug buildoutputFile
- name of generated executableobjDir
- directory for generated filesmatcher
- bidded filesetIOException
public int bid(String inputFile)
bid
in interface Processor
bid
in class AbstractProcessor
inputFile
- filename of input filepublic Processor changeEnvironment(boolean newEnvironment, org.apache.tools.ant.types.Environment env)
changeEnvironment
in interface Processor
changeEnvironment
in class AbstractProcessor
protected abstract LinkerConfiguration createConfiguration(CCTask task, LinkType linkType, ProcessorDef[] baseConfigs, LinkerDef specificConfig, TargetDef targetPlatform, VersionInfo versionInfo)
public ProcessorConfiguration createConfiguration(CCTask task, LinkType linkType, ProcessorDef[] baseConfigs, ProcessorDef specificConfig, TargetDef targetPlatform, VersionInfo versionInfo)
Processor
createConfiguration
in interface Processor
baseConfigs
- When specificConfig corresponds to a specificConfig
- A public String getLibraryKey(File libfile)
Linker
getLibraryKey
in interface Linker
public abstract String[] getOutputFileNames(String fileName, VersionInfo versionInfo)
Processor
getOutputFileNames
in interface Processor
fileName
- input fileCopyright © 2005-2016 NAR Maven Plugin developers. All Rights Reserved.