net.sf.antcontrib.cpptasks
public final class CompilerDef extends ProcessorDef
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() |
String[] | getActiveIncludePaths()
Returns the compiler-specific include path. |
PrecompileDef | getActivePrecompile(CompilerDef ccElement) |
String[] | getActiveSysIncludePaths() |
boolean | getExceptions(CompilerDef[] defaultProviders, int index) |
boolean | getMultithreaded(CompilerDef[] defaultProviders, int index) |
OptimizationEnum | getOptimization(CompilerDef[] defaultProviders, int index) |
Processor | getProcessor() |
Boolean | getRtti(CompilerDef[] defaultProviders, int index) |
int | getWarnings(CompilerDef[] defaultProviders, int index) |
void | setClassname(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) |
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". |
Parameters: classname fully qualified classname which implements CompilerAdapter
Parameters: exceptions if true, exceptions are supported.
Parameters: multithreaded If true, generated code may be multithreaded.
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 |
Parameters: value optimization level
Parameters: rtti if true, run-time type information is supported.