Class CommandLineLinkerConfiguration
- java.lang.Object
-
- net.sf.antcontrib.cpptasks.compiler.CommandLineLinkerConfiguration
-
- All Implemented Interfaces:
LinkerConfiguration
,ProcessorConfiguration
public final class CommandLineLinkerConfiguration extends java.lang.Object implements LinkerConfiguration
A configuration for a command line linker- Author:
- Curt Arnold
-
-
Constructor Summary
Constructors Constructor Description CommandLineLinkerConfiguration(CommandLineLinker linker, java.lang.String identifier, java.lang.String[][] args, ProcessorParam[] params, boolean rebuild, boolean map, boolean debug, java.lang.String[] libraryNames, java.lang.String startupObject)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
bid(java.lang.String filename)
An indication of how much this compiler would like to process this filejava.lang.String[]
getEndArguments()
java.lang.String
getIdentifier()
Returns a string representation of this configuration.java.lang.String[]
getLibraryNames()
Linker
getLinker()
boolean
getMap()
java.lang.String[]
getOutputFileNames(java.lang.String inputFile, VersionInfo versionInfo)
Output file name (no path components) corresponding to source fileLinkerParam
getParam(java.lang.String name)
ProcessorParam[]
getParams()
java.lang.String[]
getPreArguments()
boolean
getRebuild()
If true, all files using this configuration should be rebuilt and any existing output files should be ignoredjava.lang.String
getStartupObject()
boolean
isDebug()
void
link(CCTask task, TargetInfo linkTarget)
java.lang.String
toString()
-
-
-
Constructor Detail
-
CommandLineLinkerConfiguration
public CommandLineLinkerConfiguration(CommandLineLinker linker, java.lang.String identifier, java.lang.String[][] args, ProcessorParam[] params, boolean rebuild, boolean map, boolean debug, java.lang.String[] libraryNames, java.lang.String startupObject)
-
-
Method Detail
-
bid
public int bid(java.lang.String filename)
Description copied from interface:ProcessorConfiguration
An indication of how much this compiler would like to process this file- Specified by:
bid
in interfaceProcessorConfiguration
- Returns:
- 0 is no interest to process, 100 is strong interest to process
-
getEndArguments
public java.lang.String[] getEndArguments()
-
getIdentifier
public java.lang.String getIdentifier()
Returns a string representation of this configuration. Should be canonical so that equivalent configurations will have equivalent string representations- Specified by:
getIdentifier
in interfaceProcessorConfiguration
-
getLibraryNames
public java.lang.String[] getLibraryNames()
-
getMap
public boolean getMap()
-
getOutputFileNames
public java.lang.String[] getOutputFileNames(java.lang.String inputFile, VersionInfo versionInfo)
Description copied from interface:ProcessorConfiguration
Output file name (no path components) corresponding to source file- Specified by:
getOutputFileNames
in interfaceProcessorConfiguration
- Parameters:
inputFile
- input file- Returns:
- output file names or zero-length array if no output file or name not determined by input file
-
getParam
public LinkerParam getParam(java.lang.String name)
- Specified by:
getParam
in interfaceLinkerConfiguration
-
getParams
public ProcessorParam[] getParams()
- Specified by:
getParams
in interfaceProcessorConfiguration
-
getPreArguments
public java.lang.String[] getPreArguments()
-
getRebuild
public boolean getRebuild()
Description copied from interface:ProcessorConfiguration
If true, all files using this configuration should be rebuilt and any existing output files should be ignored- Specified by:
getRebuild
in interfaceProcessorConfiguration
-
getStartupObject
public java.lang.String getStartupObject()
-
link
public void link(CCTask task, TargetInfo linkTarget) throws org.apache.tools.ant.BuildException
- Specified by:
link
in interfaceLinkerConfiguration
- Throws:
org.apache.tools.ant.BuildException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getLinker
public Linker getLinker()
- Specified by:
getLinker
in interfaceLinkerConfiguration
-
isDebug
public boolean isDebug()
- Specified by:
isDebug
in interfaceLinkerConfiguration
-
-