| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.types.DataType
net.sf.antcontrib.cpptasks.ProcessorDef
net.sf.antcontrib.cpptasks.CompilerDef
public final class CompilerDef
A compiler definition. compiler elements may be placed either as children of a cc element or the project element. A compiler element with an id attribute may be referenced from compiler elements with refid or extends attributes.
| Field Summary | 
|---|
| Fields inherited from class net.sf.antcontrib.cpptasks.ProcessorDef | 
|---|
| newEnvironment | 
| Fields inherited from class org.apache.tools.ant.types.DataType | 
|---|
| checked, description, ref | 
| Fields inherited from class org.apache.tools.ant.ProjectComponent | 
|---|
| project | 
| Constructor Summary | |
|---|---|
| CompilerDef() | |
| Method Summary | |
|---|---|
|  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. | 
|  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". | 
| Methods inherited from class net.sf.antcontrib.cpptasks.ProcessorDef | 
|---|
| 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, visitFiles | 
| Methods inherited from class org.apache.tools.ant.types.DataType | 
|---|
| checkAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, getCheckedRef, getDescription, getRefid, isChecked, isReference, noChildrenAllowed, setChecked, tooManyAttributes | 
| Methods inherited from class org.apache.tools.ant.ProjectComponent | 
|---|
| getProject, log, log, setProject | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public CompilerDef()
| Method Detail | 
|---|
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()
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()
ProcessorDef
getProcessor in class ProcessorDef
public 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 CompilerAdapter
org.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.BuildException
protected void setProcessor(Processor proc)
                     throws org.apache.tools.ant.BuildException
ProcessorDef
setProcessor 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| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||