net.sf.antcontrib.cpptasks.gcc

Class GccCompatibleCCompiler

Implemented Interfaces:
Cloneable, Compiler, Processor
Known Direct Subclasses:
aCCCompiler, ForteCCCompiler, GccCCompiler, GccCCompiler, GccCCompiler, IntelLinux32CCompiler, IntelLinux64CCompiler, VisualAgeCCompiler

public abstract class GccCompatibleCCompiler
extends CommandLineCCompiler

Abstract base class for compilers that attempt to be command line compatible with GCC
Authors:
Adam Murdoch
Curt Arnold

Field Summary

Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor

DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID

Constructor Summary

GccCompatibleCCompiler(String command, String identifierArg, String[] sourceExtensions, String[] headerExtensions, boolean libtool, GccCompatibleCCompiler libtoolCompiler, boolean newEnvironment, Environment env)
Private constructor.
GccCompatibleCCompiler(String command, String identifierArg, boolean libtool, GccCompatibleCCompiler libtoolCompiler, boolean newEnvironment, Environment env)
Private constructor.

Method Summary

void
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[]
getEnvironmentIncludePath()
String
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

addImpliedArgs, addIncludes, addWarningSwitch, buildDefineArguments, compile, createConfiguration, getArgumentCountPerInputFile, getCommand, getDefineSwitch, getEnvironmentIncludePath, getIdentifier, getIncludeDirSwitch, getInputFileArgument, getLibtool, getLibtoolCompiler, getMaximumCommandLength, getMaximumInputFilesPerCommand, getTotalArgumentLengthForInputFile, getUndefineSwitch, runCommand, setCommand

Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractCompiler

canParse, createConfiguration, createConfiguration, createParser, getBaseOutputName, getOutputFileNames, parseIncludes, resolveInclude

Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor

bid, changeEnvironment, clone, getHeaderExtensions, getIdentifier, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString

Constructor Details

GccCompatibleCCompiler

protected GccCompatibleCCompiler(String command,
                                 String identifierArg,
                                 String[] sourceExtensions,
                                 String[] headerExtensions,
                                 boolean libtool,
                                 GccCompatibleCCompiler libtoolCompiler,
                                 boolean newEnvironment,
                                 Environment env)
Private constructor. Use GccCCompiler.getInstance() to get singleton instance of this class.

GccCompatibleCCompiler

protected GccCompatibleCCompiler(String command,
                                 String identifierArg,
                                 boolean libtool,
                                 GccCompatibleCCompiler libtoolCompiler,
                                 boolean newEnvironment,
                                 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)
Overrides:
addImpliedArgs in interface CommandLineCompiler

addIncludePath

public void addIncludePath(String path,
                           Vector cmd)
Adds an include path to the command.

addWarningSwitch

public void addWarningSwitch(Vector args,
                             int level)
Overrides:
addWarningSwitch in interface CommandLineCompiler

getDefineSwitch

public void getDefineSwitch(StringBuffer buffer,
                            String define,
                            String value)
Overrides:
getDefineSwitch in interface CommandLineCompiler

getEnvironmentIncludePath

protected File[] getEnvironmentIncludePath()
Overrides:
getEnvironmentIncludePath in interface CommandLineCompiler

getIncludeDirSwitch

public String getIncludeDirSwitch(String includeDir)
Overrides:
getIncludeDirSwitch in interface CommandLineCompiler

getUndefineSwitch

public void getUndefineSwitch(StringBuffer buffer,
                              String define)
Overrides:
getUndefineSwitch in interface CommandLineCompiler

Copyright B) 2001-2006 Ant-Contrib project. All Rights Reserved.