|
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.Objectcom.codemesh.terp.ant.compiler.AbstractCompilerOption<C>
com.codemesh.terp.ant.compiler.BooleanCompilerOption<CppCompiler>
com.codemesh.terp.ant.compiler.cpp.DebugOption
public class DebugOption
The debug option. The debug option is a deceptively simple option. It only has a boolean value but it interacts with a lot of other options. If debug mode is enabled, the compiler might generate additional files or it might link with different C++ runtime libraries.
| Constructor Summary | |
|---|---|
DebugOption()
|
|
| Method Summary | |
|---|---|
void |
addCommands(java.util.List<java.lang.String> commandList,
CppCompiler compiler,
CompilerPhase phase)
Adds the compiler switches repreesnted by this option to the list of switches. |
boolean |
appliesTo(CppCompiler compiler,
CompilerPhase phase)
Returns true if this compiler option applies to the given compiler and compiler phase. |
java.util.List<java.lang.String> |
creates(CppCompiler compiler,
CompilerPhase phase)
Returns a list of filenames representing the files that are created due to the presence of this compiler option. |
java.lang.String |
getLevel()
|
void |
setLevel(java.lang.String level)
Set the debug level. |
| Methods inherited from class com.codemesh.terp.ant.compiler.BooleanCompilerOption |
|---|
getValue, isEnabled, setValue |
| Methods inherited from class com.codemesh.terp.ant.compiler.AbstractCompilerOption |
|---|
expand, expand, getIf, getProject, getUnless, quoteIfNecessary, satisfies, setIf, setProject, setUnless |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.codemesh.terp.ant.compiler.CompilerOption |
|---|
getIf, getUnless, satisfies, setIf, setUnless |
| Constructor Detail |
|---|
public DebugOption()
| Method Detail |
|---|
public void setLevel(java.lang.String level)
level - a string that is appended to the debug option for non-Microsoft (non-INTEL on Windows) compilers.
For example, a level of 1 will yield the following debug switch for g++ or other Unix compilers:
-g1
You can use the if or unless attributes to custom-tailor debug levels for different
compilers.public java.lang.String getLevel()
public void addCommands(java.util.List<java.lang.String> commandList,
CppCompiler compiler,
CompilerPhase phase)
This method is called by the compiler repeatedly with different values for the compiler phase to account for these possibilities.
addCommands in interface CompilerOption<CppCompiler>commandList - the list to which the compiler switches represented
by this option (if any) are added.compiler - the compiler for which we're doing this.phase - the compiler phase in wihch we're doing this.
public boolean appliesTo(CppCompiler compiler,
CompilerPhase phase)
appliesTo in interface CompilerOption<CppCompiler>compiler - the compiler for which we're asking.phase - the compiler phase we're executing.
public java.util.List<java.lang.String> creates(CppCompiler compiler,
CompilerPhase phase)
FileCreating
creates in interface FileCreating<CppCompiler>compiler - the compiler.phase - the compilation phase.
|
terp - the ANT Tasks v1.3.304 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||