public final class CompilerDef extends ProcessorDef
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() |
String[] |
getActiveIncludePaths()
Returns the compiler-specific include path.
|
PrecompileDef |
getActivePrecompile(CompilerDef ccElement) |
String[] |
getActiveSysIncludePaths() |
Boolean |
getCcache() |
String |
getCompilerPrefix() |
boolean |
getExceptions(CompilerDef[] defaultProviders,
int index) |
boolean |
getMultithreaded(CompilerDef[] defaultProviders,
int index) |
OptimizationEnum |
getOptimization(CompilerDef[] defaultProviders,
int index) |
List<String> |
getOrder() |
Processor |
getProcessor()
Obtains the appropriate processor (compiler, linker)
|
Boolean |
getRtti(CompilerDef[] defaultProviders,
int index) |
String |
getToolPath() |
int |
getWarnings(CompilerDef[] defaultProviders,
int index) |
File |
getWorkDir() |
boolean |
isClearDefaultOptions() |
void |
setCcache(Boolean ccache) |
void |
setClassname(String classname)
Sets the default compiler adapter.
|
void |
setClearDefaultOptions(boolean clearDefaultOptions) |
void |
setCompilerPrefix(String prefix) |
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.
|
void |
setOrder(List<String> order)
List of source filenames without extensions
|
protected void |
setProcessor(Processor proc)
Sets the processor
|
void |
setRtti(boolean rtti)
Enables or disables run-time type information.
|
void |
setToolPath(String path) |
void |
setWarnings(WarningLevelEnum level)
Enumerated attribute with the values "none", "severe", "default",
"production", "diagnostic", and "aserror".
|
void |
setWorkDir(File workDir) |
addConfiguredProcessorArg, addConfiguredProcessorParam, addEnv, addFileset, booleanValueOf, createConfiguration, getActiveProcessorArgs, getActiveProcessorParams, getDebug, getDefaultProviders, getEnv, getExtends, getInherit, getLibtool, getProcessor, getRebuild, hasFileSets, isActive, isNewEnvironment, setDebug, setDescription, setExtends, setId, setIf, setInherit, setLibtool, setNewenvironment, setRebuild, setRefid, setUnless, visitFiles
checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, tooManyAttributes, toString
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.BuildException
public SystemIncludePath createSysIncludePath()
public void execute() throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
public UndefineArgument[] getActiveDefines()
public String[] getActiveIncludePaths()
public PrecompileDef getActivePrecompile(CompilerDef ccElement)
public String[] getActiveSysIncludePaths()
public Boolean getCcache()
public final boolean getExceptions(CompilerDef[] defaultProviders, int index)
public boolean getMultithreaded(CompilerDef[] defaultProviders, int index)
public final OptimizationEnum getOptimization(CompilerDef[] defaultProviders, int index)
public Processor getProcessor()
ProcessorDef
getProcessor
in class ProcessorDef
public final Boolean getRtti(CompilerDef[] defaultProviders, int index)
public String getToolPath()
public String getCompilerPrefix()
public File getWorkDir()
public int getWarnings(CompilerDef[] defaultProviders, int index)
public boolean isClearDefaultOptions()
public void setCcache(Boolean ccache)
public void setClassname(String classname) throws org.apache.tools.ant.BuildException
setClassname
in class ProcessorDef
classname
- fully qualified classname which implements CompilerAdapterorg.apache.tools.ant.BuildException
public void setClearDefaultOptions(boolean clearDefaultOptions)
public void setExceptions(boolean exceptions)
exceptions
- if true, exceptions are 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
public void setOptimize(OptimizationEnum value)
value
- optimization levelpublic void setOrder(List<String> order)
asList
- protected void setProcessor(Processor proc) throws org.apache.tools.ant.BuildException
ProcessorDef
setProcessor
in class ProcessorDef
proc
- processor, may not be null.org.apache.tools.ant.BuildException
- if ProcessorDef is a referencepublic void setRtti(boolean rtti)
rtti
- if true, run-time type information is supported.public void setToolPath(String path)
public void setCompilerPrefix(String prefix)
public void setWorkDir(File workDir)
public void setWarnings(WarningLevelEnum level)
Copyright © 2005-2016 NAR Maven Plugin developers. All Rights Reserved.