Package net.sf.antcontrib.cpptasks.gcc
Class GccCCompiler
- java.lang.Object
-
public final class GccCCompiler extends GccCompatibleCCompiler
Adapter for the GCC C/C++ compiler- Author:
- Adam Murdoch
-
-
Field Summary
-
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addImpliedArgs(java.util.Vector args, boolean debug, boolean multithreaded, boolean exceptions, LinkType linkType, java.lang.Boolean rtti, OptimizationEnum optimization)
Processor
changeEnvironment(boolean newEnvironment, org.apache.tools.ant.types.Environment env)
protected Parser
createParser(java.io.File source)
Create parser to determine dependencies.static GccCCompiler
getCppInstance()
Gets c++ adapterjava.io.File[]
getEnvironmentIncludePath()
static GccCCompiler
getG77Instance()
Gets g77 adapterstatic GccCCompiler
getGppInstance()
Gets gpp adapterjava.lang.String
getIdentifier()
Retrieve an identifier that identifies the specific version of the compiler.static GccCCompiler
getInstance()
Gets gcc adapterLinker
getLinker(LinkType linkType)
Gets the linker that is associated with this processorsint
getMaximumCommandLength()
-
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
-
-
-
-
Method Detail
-
getCppInstance
public static GccCCompiler getCppInstance()
Gets c++ adapter
-
getG77Instance
public static GccCCompiler getG77Instance()
Gets g77 adapter
-
getGppInstance
public static GccCCompiler getGppInstance()
Gets gpp adapter
-
getInstance
public static GccCCompiler getInstance()
Gets gcc adapter
-
addImpliedArgs
public void addImpliedArgs(java.util.Vector args, boolean debug, boolean multithreaded, boolean exceptions, LinkType linkType, java.lang.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
protected Parser createParser(java.io.File source)
Create parser to determine dependencies. Will create appropriate parser (C++, FORTRAN) based on file extension.- Overrides:
createParser
in classCommandLineCCompiler
-
getEnvironmentIncludePath
public java.io.File[] getEnvironmentIncludePath()
- Overrides:
getEnvironmentIncludePath
in classGccCompatibleCCompiler
-
getIdentifier
public java.lang.String getIdentifier() throws org.apache.tools.ant.BuildException
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
public Linker getLinker(LinkType linkType)
Description copied from interface:Processor
Gets the linker that is associated with this processors
-
getMaximumCommandLength
public int getMaximumCommandLength()
- Specified by:
getMaximumCommandLength
in classCommandLineCompiler
-
-