Class GccCCompiler
java.lang.Object
net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
net.sf.antcontrib.cpptasks.compiler.CommandLineCCompiler
net.sf.antcontrib.cpptasks.gcc.GccCompatibleCCompiler
net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GccCCompiler
Adapter for the GCC C/C++ compiler
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
private static final GccCCompiler
private static final GccCCompiler
private static final GccCCompiler
private static final String[]
private String
private File[]
private static final GccCCompiler
private boolean
private static final String[]
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
GccCCompiler
(String command, String[] sourceExtensions, String[] headerExtensions, boolean isLibtool, GccCCompiler libtoolCompiler, boolean newEnvironment, org.apache.tools.ant.types.Environment env) Private constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addImpliedArgs
(Vector args, boolean debug, boolean multithreaded, boolean exceptions, LinkType linkType, Boolean rtti, OptimizationEnum optimization) changeEnvironment
(boolean newEnvironment, org.apache.tools.ant.types.Environment env) protected Parser
createParser
(File source) Create parser to determine dependencies.static GccCCompiler
Gets c++ adapterFile[]
static GccCCompiler
Gets g77 adapterstatic GccCCompiler
Gets gpp adapterRetrieve an identifier that identifies the specific version of the compiler.static GccCCompiler
Gets gcc adapterGets the linker that is associated with this processorsint
Methods inherited from class net.sf.antcontrib.cpptasks.gcc.GccCompatibleCCompiler
addIncludePath, addWarningSwitch, getDefineSwitch, getIncludeDirSwitch, getUndefineSwitch
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
addIncludes, buildDefineArguments, compile, createConfiguration, getArgumentCountPerInputFile, getCommand, getInputFileArgument, getLibtool, getLibtoolCompiler, getMaximumInputFilesPerCommand, getTotalArgumentLengthForInputFile, runCommand, setCommand
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
canParse, createConfiguration, getBaseOutputName, getOutputFileNames, parseIncludes, resolveInclude
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
bid, clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
-
Field Details
-
sourceExtensions
-
headerExtensions
-
CMD_PREFIX
- See Also:
-
cppInstance
-
g77Instance
-
gppInstance
-
instance
-
identifier
-
includePath
-
isPICMeaningful
private boolean isPICMeaningful
-
-
Constructor Details
-
GccCCompiler
private GccCCompiler(String command, String[] sourceExtensions, String[] headerExtensions, boolean isLibtool, GccCCompiler libtoolCompiler, boolean newEnvironment, org.apache.tools.ant.types.Environment env) Private constructor. Use GccCCompiler.getInstance() to get singleton instance of this class.
-
-
Method Details
-
getCppInstance
Gets c++ adapter -
getG77Instance
Gets g77 adapter -
getGppInstance
Gets gpp adapter -
getInstance
Gets gcc adapter -
addImpliedArgs
public void addImpliedArgs(Vector args, boolean debug, boolean multithreaded, boolean exceptions, LinkType linkType, Boolean rtti, OptimizationEnum optimization) - Overrides:
addImpliedArgs
in classGccCompatibleCCompiler
-
changeEnvironment
public Processor changeEnvironment(boolean newEnvironment, org.apache.tools.ant.types.Environment env) - Specified by:
changeEnvironment
in interfaceProcessor
- Overrides:
changeEnvironment
in classAbstractProcessor
-
createParser
Create parser to determine dependencies. Will create appropriate parser (C++, FORTRAN) based on file extension.- Overrides:
createParser
in classCommandLineCCompiler
-
getEnvironmentIncludePath
- Overrides:
getEnvironmentIncludePath
in classGccCompatibleCCompiler
-
getIdentifier
Description copied from interface:Processor
Retrieve an identifier that identifies the specific version of the compiler. Compilers with the same identifier should produce the same output files for the same input files and command line switches.- Specified by:
getIdentifier
in interfaceProcessor
- Overrides:
getIdentifier
in classCommandLineCompiler
- Throws:
org.apache.tools.ant.BuildException
-
getLinker
Description copied from interface:Processor
Gets the linker that is associated with this processors -
getMaximumCommandLength
public int getMaximumCommandLength()- Specified by:
getMaximumCommandLength
in classCommandLineCompiler
-