|
terp - the ANT Tasks v1.3.304 |
|||||||||
| 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
com.codemesh.terp.ant.compiler.cpp.CppCompilerOptionsImpl
public class CppCompilerOptionsImpl
A standalone implementation of the C++ compiler options. This type allows you to create a reusable set of options and apply it to a C++ compiler invocation or to a set of source files in a C++ compiler invocation.
| Field Summary | |
|---|---|
protected CompilerOptionSet<CppCompiler> |
options
|
| Fields inherited from class org.apache.tools.ant.types.DataType |
|---|
checked, ref |
| Fields inherited from class org.apache.tools.ant.ProjectComponent |
|---|
description, location, project |
| Constructor Summary | |
|---|---|
CppCompilerOptionsImpl()
|
|
| Method Summary | |
|---|---|
BoundsCheckOption |
createBoundsCheck()
Creates a BoundsChecker option. |
CompileOnlyOption |
createCompileOnly()
Creates a compile-only option (/c or -c). |
DebugOption |
createDebug()
Creates a debug option. |
DefineOption |
createDefine()
Creates a preprocessor definition. |
ExceptionsOption |
createExceptions()
Creates an option that can be used to en/disable exception support. |
IncludeOption |
createInclude()
Creates an option that adds one or more directories to the preprocessor search path. |
LibpathOption |
createLibpath()
Creates an option that adds one or more directories to the library search path. |
LibraryOption |
createLibrary()
Creates an option that specifies one or more libraries to link with. |
ManifestOption |
createManifest()
Not used yet. |
MultithreadedOption |
createMultithreaded()
Creates an option that governs whether or not multithreading is enabled. |
OptimizeOption |
createOptimize()
Creates an option that controls compiler optimizations. |
GenericOption |
createOption()
Creates a generic option. |
QuietOption |
createQuiet()
Creates an option that controls compiler verbosity. |
RelocatableOption |
createRelocatable()
Creates an option that controls whether or not the generated modules are relocatable in memory. |
RttiOption |
createRtti()
Creates an option that can be used to en/disable RTTI support. |
RunpathOption |
createRunpath()
Creates an option that can be used to embed a runpath in a module. |
RuntimeOption |
createRuntime()
Creates an option that specifies the type of C++ runtime library to use. |
UndefineOption |
createUndefine()
Creates an option that undefines a preprocessor definition. |
WarningsOption |
createWarning()
Creates an option that adjusts the warning level or specific warnings. |
java.lang.String |
getId()
Returns the compiler options' identifier. |
CompilerOptionSet<CppCompiler> |
getOptions()
Returns the options configured for this instance. |
void |
setId(java.lang.String id)
Sets the options' identifier. |
| Methods inherited from class org.apache.tools.ant.types.DataType |
|---|
checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, setRefid, tooManyAttributes, toString |
| Methods inherited from class org.apache.tools.ant.ProjectComponent |
|---|
getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected CompilerOptionSet<CppCompiler> options
| Constructor Detail |
|---|
public CppCompilerOptionsImpl()
| Method Detail |
|---|
public void setId(java.lang.String id)
id - the identifier.public java.lang.String getId()
public CompilerOptionSet<CppCompiler> getOptions()
getOptions in interface CppCompilerOptionspublic BoundsCheckOption createBoundsCheck()
createBoundsCheck in interface CppCompilerOptionspublic CompileOnlyOption createCompileOnly()
createCompileOnly in interface CppCompilerOptionspublic DebugOption createDebug()
You should only have one enabled instance of this type in your compiler task.
The debug option interacts with a number of other options (for example the
RuntimeOption).
createDebug in interface CppCompilerOptionspublic DefineOption createDefine()
createDefine in interface CppCompilerOptionspublic ExceptionsOption createExceptions()
createExceptions in interface CppCompilerOptionspublic IncludeOption createInclude()
createInclude in interface CppCompilerOptionspublic LibpathOption createLibpath()
createLibpath in interface CppCompilerOptionspublic LibraryOption createLibrary()
createLibrary in interface CppCompilerOptionspublic ManifestOption createManifest()
createManifest in interface CppCompilerOptionspublic MultithreadedOption createMultithreaded()
RuntimeOption. It can result in several different
switches being added to the compiler invocation in multiple phases.
Don't use more than one enabled option of this type.
createMultithreaded in interface CppCompilerOptionspublic OptimizeOption createOptimize()
createOptimize in interface CppCompilerOptionspublic GenericOption createOption()
GenericOptions are teh escape hatch of the C++ compiler. They
allow you to pass any compiler switch you want but you're completely
on your own in managing them and figuring them out.
createOption in interface CppCompilerOptionspublic QuietOption createQuiet()
createQuiet in interface CppCompilerOptionspublic RelocatableOption createRelocatable()
createRelocatable in interface CppCompilerOptionspublic RttiOption createRtti()
createRtti in interface CppCompilerOptionspublic RunpathOption createRunpath()
createRunpath in interface CppCompilerOptionspublic RuntimeOption createRuntime()
createRuntime in interface CppCompilerOptionspublic UndefineOption createUndefine()
createUndefine in interface CppCompilerOptionspublic WarningsOption createWarning()
createWarning in interface CppCompilerOptions
|
terp - the ANT Tasks v1.3.304 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||