|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.tools.ant.ProjectComponent | +--org.apache.tools.ant.types.DataType | +--net.sf.antcontrib.cpptasks.ProcessorDef | +--net.sf.antcontrib.cpptasks.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.
Inner Class Summary | |
static class |
CompilerDef.WarningLevel
Enumerated attribute with the values "none", "severe", "default", "production", "diagnostic", and "failtask". |
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 |
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)
|
Processor |
getProcessor()
Obtains the appropriate processor (compiler, linker) |
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. |
protected void |
setProcessor(Processor proc)
Sets the processor |
void |
setWarnings(CompilerDef.WarningLevel level)
Enumerated attribute with the values "none", "severe", "default", "production", "diagnostic", and "failtask". |
Methods inherited from class net.sf.antcontrib.cpptasks.ProcessorDef |
addConfiguredProcessorArg,
addFileset,
booleanValueOf,
createConfiguration,
getActiveProcessorArgs,
getDebug,
getDefaultProviders,
getExtends,
getInherit,
getLibtool,
getRebuild,
hasFileSets,
isActive,
setDebug,
setDescription,
setExtends,
setId,
setIf,
setInherit,
setLibtool,
setRebuild,
setRefid,
setUnless,
visitFiles |
Methods inherited from class org.apache.tools.ant.types.DataType |
circularReference,
dieOnCircularReference,
getCheckedRef,
getDescription,
isReference,
noChildrenAllowed,
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 Processor getProcessor()
public PrecompileDef createPrecompile() throws org.apache.tools.ant.BuildException
public PrecompileDef getActivePrecompile(CompilerDef ccElement)
public void addConfiguredCompilerArg(CompilerArgument arg)
public void addConfiguredDefineset(DefineSet defs)
public IncludePath createIncludePath()
public SystemIncludePath createSysIncludePath()
public java.lang.String[] getActiveIncludePaths()
public java.lang.String[] getActiveSysIncludePaths()
public void setMultithreaded(boolean multithreaded)
multi
- If true, generated code may be multithreaded.public boolean getMultithreaded(CompilerDef[] defaultProviders, int index)
public void setExceptions(boolean exceptions)
exceptions
- if true, exceptions are supported.public final boolean getExceptions(CompilerDef[] defaultProviders, int index)
public void setName(CompilerEnum name) throws org.apache.tools.ant.BuildException
gcc (default) | GCC C++ compiler |
g++ | GCC C++ compiler |
c++ | GCC C++ 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 |
public void setClassname(java.lang.String classname) throws org.apache.tools.ant.BuildException
classname
- fully qualified classname which implements CompilerAdapterprotected void setProcessor(Processor proc) throws org.apache.tools.ant.BuildException
processor
- processor, may not be null.public UndefineArgument[] getActiveDefines()
public void setWarnings(CompilerDef.WarningLevel level)
public int getWarnings(CompilerDef[] defaultProviders, int index)
public void execute() throws org.apache.tools.ant.BuildException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |