net.sf.antcontrib.cpptasks.gcc

Class GccCompatibleCCompiler

public abstract class GccCompatibleCCompiler extends CommandLineCCompiler

Abstract base class for compilers that attempt to be command line compatible with GCC

Author: Adam Murdoch Curt Arnold

Constructor Summary
protected GccCompatibleCCompiler(String command, String identifierArg, boolean libtool, GccCompatibleCCompiler libtoolCompiler, boolean newEnvironment, Environment env)
Private constructor.
protected GccCompatibleCCompiler(String command, String identifierArg, String[] sourceExtensions, String[] headerExtensions, boolean libtool, GccCompatibleCCompiler libtoolCompiler, boolean newEnvironment, Environment env)
Private constructor.
Method Summary
voidaddImpliedArgs(Vector args, boolean debug, boolean multithreaded, boolean exceptions, LinkType linkType, Boolean rtti, OptimizationEnum optimization)
voidaddIncludePath(String path, Vector cmd)
Adds an include path to the command.
voidaddWarningSwitch(Vector args, int level)
voidgetDefineSwitch(StringBuffer buffer, String define, String value)
protected File[]getEnvironmentIncludePath()
StringgetIncludeDirSwitch(String includeDir)
voidgetUndefineSwitch(StringBuffer buffer, String define)

Constructor Detail

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.

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.

Method Detail

addImpliedArgs

public void addImpliedArgs(Vector args, boolean debug, boolean multithreaded, boolean exceptions, LinkType linkType, Boolean rtti, OptimizationEnum optimization)

addIncludePath

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

addWarningSwitch

public void addWarningSwitch(Vector args, int level)

getDefineSwitch

public void getDefineSwitch(StringBuffer buffer, String define, String value)

getEnvironmentIncludePath

protected File[] getEnvironmentIncludePath()

getIncludeDirSwitch

public String getIncludeDirSwitch(String includeDir)

getUndefineSwitch

public void getUndefineSwitch(StringBuffer buffer, String define)
Copyright ? 2001-2011 Ant-Contrib project. All Rights Reserved.