net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2

Class GccCCompiler

Implemented Interfaces:
Cloneable, Compiler, Processor

public final class GccCCompiler
extends GccCompatibleCCompiler

Adapter for the GCC C/C++ compiler
Author:
Adam Murdoch

Field Summary

static String
CMD_PREFIX

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

DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID

Method Summary

void
addImpliedArgs(Vector args, boolean debug, boolean multithreaded, boolean exceptions, LinkType linkType, Boolean rtti, OptimizationEnum optimization)
Processor
changeEnvironment(boolean newEnvironment, Environment env)
protected Parser
createParser(File source)
Create parser to determine dependencies.
static GccCCompiler
getCppInstance()
Gets c++ adapter
File[]
getEnvironmentIncludePath()
static GccCCompiler
getG77Instance()
Gets g77 adapter
static GccCCompiler
getGppInstance()
Gets gpp adapter
String
getIdentifier()
static GccCCompiler
getInstance()
Gets gcc adapter
Linker
getLinker(LinkType linkType)
int
getMaximumCommandLength()

Methods inherited from class net.sf.antcontrib.cpptasks.gcc.GccCompatibleCCompiler

addImpliedArgs, addIncludePath, addWarningSwitch, getDefineSwitch, getEnvironmentIncludePath, getIncludeDirSwitch, getUndefineSwitch

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

Field Details

CMD_PREFIX

public static final String CMD_PREFIX

Method Details

addImpliedArgs

public void addImpliedArgs(Vector args,
                           boolean debug,
                           boolean multithreaded,
                           boolean exceptions,
                           LinkType linkType,
                           Boolean rtti,
                           OptimizationEnum optimization)
Overrides:
addImpliedArgs in interface GccCompatibleCCompiler

changeEnvironment

public Processor changeEnvironment(boolean newEnvironment,
                                   Environment env)
Specified by:
changeEnvironment in interface Processor
Overrides:
changeEnvironment in interface AbstractProcessor

createParser

protected Parser createParser(File source)
Create parser to determine dependencies. Will create appropriate parser (C++, FORTRAN) based on file extension.
Overrides:
createParser in interface CommandLineCCompiler

getCppInstance

public static GccCCompiler getCppInstance()
Gets c++ adapter

getEnvironmentIncludePath

public File[] getEnvironmentIncludePath()
Overrides:
getEnvironmentIncludePath in interface GccCompatibleCCompiler

getG77Instance

public static GccCCompiler getG77Instance()
Gets g77 adapter

getGppInstance

public static GccCCompiler getGppInstance()
Gets gpp adapter

getIdentifier

public String getIdentifier()
            throws BuildException
Specified by:
getIdentifier in interface Processor
Overrides:
getIdentifier in interface CommandLineCompiler

getInstance

public static GccCCompiler getInstance()
Gets gcc adapter

getLinker

public Linker getLinker(LinkType linkType)
Specified by:
getLinker in interface Processor

getMaximumCommandLength

public int getMaximumCommandLength()
Overrides:
getMaximumCommandLength in interface CommandLineCompiler

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