public final class CompilerDef extends ProcessorDef
| Modifier and Type | Field and Description |
|---|---|
private java.util.Vector |
defineSets
The source file sets.
|
private java.lang.Boolean |
exceptions |
private java.util.Vector |
includePaths |
private java.lang.Boolean |
multithreaded |
private OptimizationEnum |
optimization |
private java.util.Vector |
precompileDefs |
private java.lang.Boolean |
rtti |
private java.util.Vector |
sysIncludePaths |
private int |
warnings |
newEnvironment| Constructor and Description |
|---|
CompilerDef() |
| Modifier and Type | Method and Description |
|---|---|
void |
addConfiguredCompilerArg(CompilerArgument arg)
Adds a compiler command-line arg.
|
void |
addConfiguredCompilerParam(CompilerParam param)
Adds a compiler command-line arg.
|
void |
addConfiguredDefineset(DefineSet defs)
Adds a defineset.
|
IncludePath |
createIncludePath()
Creates an include path.
|
PrecompileDef |
createPrecompile()
Specifies precompilation prototype file and exclusions.
|
SystemIncludePath |
createSysIncludePath()
Creates a system include path.
|
void |
execute() |
UndefineArgument[] |
getActiveDefines() |
java.lang.String[] |
getActiveIncludePaths()
Returns the compiler-specific include path.
|
private java.lang.String[] |
getActivePaths(java.util.Vector paths) |
PrecompileDef |
getActivePrecompile(CompilerDef ccElement) |
java.lang.String[] |
getActiveSysIncludePaths() |
boolean |
getExceptions(CompilerDef[] defaultProviders,
int index) |
boolean |
getMultithreaded(CompilerDef[] defaultProviders,
int index) |
OptimizationEnum |
getOptimization(CompilerDef[] defaultProviders,
int index) |
Processor |
getProcessor()
Obtains the appropriate processor (compiler, linker)
|
java.lang.Boolean |
getRtti(CompilerDef[] defaultProviders,
int index) |
int |
getWarnings(CompilerDef[] defaultProviders,
int index) |
void |
setClassname(java.lang.String classname)
Sets the default compiler adapter.
|
void |
setExceptions(boolean exceptions)
Enables or disables exception support.
|
void |
setMultithreaded(boolean multithreaded)
Enables or disables generation of multithreaded code.
|
void |
setName(CompilerEnum name)
Sets compiler type.
|
void |
setOptimize(OptimizationEnum value)
Sets optimization level.
|
protected void |
setProcessor(Processor proc)
Sets the processor
|
void |
setRtti(boolean rtti)
Enables or disables run-time type information.
|
void |
setWarnings(WarningLevelEnum level)
Enumerated attribute with the values "none", "severe", "default",
"production", "diagnostic", and "aserror".
|
addConfiguredProcessorArg, addConfiguredProcessorParam, addEnv, addFileset, booleanValueOf, createConfiguration, getActiveProcessorArgs, getActiveProcessorParams, getDebug, getDefaultProviders, getExtends, getInherit, getLibtool, getProcessor, getRebuild, hasFileSets, isActive, setDebug, setDescription, setExtends, setId, setIf, setInherit, setLibtool, setNewenvironment, setRebuild, setRefid, setUnless, visitFilescheckAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, tooManyAttributes, toStringprivate final java.util.Vector defineSets
private java.lang.Boolean exceptions
private java.lang.Boolean rtti
private final java.util.Vector includePaths
private java.lang.Boolean multithreaded
private final java.util.Vector precompileDefs
private final java.util.Vector sysIncludePaths
private OptimizationEnum optimization
private int warnings
public void addConfiguredCompilerArg(CompilerArgument arg)
public void addConfiguredCompilerParam(CompilerParam param)
public void addConfiguredDefineset(DefineSet defs)
public IncludePath createIncludePath()
public PrecompileDef createPrecompile() throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildExceptionpublic SystemIncludePath createSysIncludePath()
public void execute()
throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildExceptionpublic UndefineArgument[] getActiveDefines()
public java.lang.String[] getActiveIncludePaths()
private java.lang.String[] getActivePaths(java.util.Vector paths)
public PrecompileDef getActivePrecompile(CompilerDef ccElement)
public java.lang.String[] getActiveSysIncludePaths()
public final boolean getExceptions(CompilerDef[] defaultProviders, int index)
public final java.lang.Boolean getRtti(CompilerDef[] defaultProviders, int index)
public final OptimizationEnum getOptimization(CompilerDef[] defaultProviders, int index)
public boolean getMultithreaded(CompilerDef[] defaultProviders, int index)
public Processor getProcessor()
ProcessorDefgetProcessor in class ProcessorDefpublic int getWarnings(CompilerDef[] defaultProviders, int index)
public void setClassname(java.lang.String classname)
throws org.apache.tools.ant.BuildException
setClassname in class ProcessorDefclassname - fully qualified classname which implements CompilerAdapterorg.apache.tools.ant.BuildExceptionpublic void setExceptions(boolean exceptions)
exceptions - if true, exceptions are supported.public void setRtti(boolean rtti)
rtti - if true, run-time type information is supported.public void setMultithreaded(boolean multithreaded)
multithreaded - If true, generated code may be multithreaded.public void setName(CompilerEnum name) throws org.apache.tools.ant.BuildException
| gcc (default) | GCC C++ compiler |
| g++ | GCC C++ compiler |
| c++ | GCC C++ compiler |
| g77 | GNU Fortran compiler |
| msvc | Microsoft Visual C++ |
| bcc | Borland C++ Compiler |
| msrc | Microsoft Resource Compiler |
| brc | Borland Resource Compiler |
| df | Compaq Visual Fortran Compiler |
| midl | Microsoft MIDL Compiler |
| icl | Intel C++ compiler for Windows (IA-32) |
| ecl | Intel C++ compiler for Windows (IA-64) |
| icc | Intel C++ compiler for Linux (IA-32) |
| ecc | Intel C++ compiler for Linux (IA-64) |
| CC | Sun ONE C++ compiler |
| aCC | HP aC++ C++ Compiler |
| os390 | OS390 C Compiler |
| os400 | Icc Compiler |
| sunc89 | Sun C89 C Compiler |
| xlC | VisualAge C Compiler |
| uic | Qt user interface compiler |
| moc | Qt meta-object compiler |
| wcl | OpenWatcom C/C++ compiler |
| wfl | OpenWatcom FORTRAN compiler |
org.apache.tools.ant.BuildExceptionprotected void setProcessor(Processor proc) throws org.apache.tools.ant.BuildException
ProcessorDefsetProcessor in class ProcessorDefproc - processor, may not be null.org.apache.tools.ant.BuildException - if ProcessorDef is a referencepublic void setWarnings(WarningLevelEnum level)
public void setOptimize(OptimizationEnum value)
value - optimization level