Package net.sf.antcontrib.cpptasks.gcc
Class GccCompatibleCCompiler
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
- Direct Known Subclasses:
aCCCompiler
,ForteCCCompiler
,GccCCompiler
,GccCCompiler
,GccCCompiler
,IntelLinux32CCompiler
,IntelLinux64CCompiler
,VisualAgeCCompiler
Abstract base class for compilers that attempt to be command line compatible
with GCC
- Author:
- Adam Murdoch, Curt Arnold
-
Field Summary
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
GccCompatibleCCompiler
(String command, String identifierArg, boolean libtool, GccCompatibleCCompiler libtoolCompiler, boolean newEnvironment, org.apache.tools.ant.types.Environment env) Private constructor.protected
GccCompatibleCCompiler
(String command, String identifierArg, String[] sourceExtensions, String[] headerExtensions, boolean libtool, GccCompatibleCCompiler 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) void
addIncludePath
(String path, Vector cmd) Adds an include path to the command.void
addWarningSwitch
(Vector args, int level) void
getDefineSwitch
(StringBuffer buffer, String define, String value) protected File[]
getIncludeDirSwitch
(String includeDir) void
getUndefineSwitch
(StringBuffer buffer, String define) Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCCompiler
createParser
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
addIncludes, buildDefineArguments, compile, createConfiguration, getArgumentCountPerInputFile, getCommand, getIdentifier, getInputFileArgument, getLibtool, getLibtoolCompiler, getMaximumCommandLength, 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, changeEnvironment, clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.sf.antcontrib.cpptasks.compiler.Processor
bid, changeEnvironment, getLinker
-
Constructor Details
-
GccCompatibleCCompiler
protected GccCompatibleCCompiler(String command, String identifierArg, boolean libtool, GccCompatibleCCompiler libtoolCompiler, boolean newEnvironment, org.apache.tools.ant.types.Environment env) Private constructor. Use GccCCompiler.getInstance() to get singleton instance of this class. -
GccCompatibleCCompiler
protected GccCompatibleCCompiler(String command, String identifierArg, String[] sourceExtensions, String[] headerExtensions, boolean libtool, GccCompatibleCCompiler libtoolCompiler, boolean newEnvironment, org.apache.tools.ant.types.Environment env) Private constructor. Use GccCCompiler.getInstance() to get singleton instance of this class.
-
-
Method Details
-
addImpliedArgs
public void addImpliedArgs(Vector args, boolean debug, boolean multithreaded, boolean exceptions, LinkType linkType, Boolean rtti, OptimizationEnum optimization) - Specified by:
addImpliedArgs
in classCommandLineCompiler
-
addIncludePath
Adds an include path to the command. -
addWarningSwitch
- Specified by:
addWarningSwitch
in classCommandLineCompiler
-
getDefineSwitch
- Specified by:
getDefineSwitch
in classCommandLineCompiler
-
getEnvironmentIncludePath
- Specified by:
getEnvironmentIncludePath
in classCommandLineCompiler
-
getIncludeDirSwitch
- Specified by:
getIncludeDirSwitch
in classCommandLineCompiler
-
getUndefineSwitch
- Specified by:
getUndefineSwitch
in classCommandLineCompiler
-