diff options
author | Sven Gothel <[email protected]> | 2010-11-07 18:53:20 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2010-11-07 18:53:20 +0100 |
commit | 55f1e7f99df8ee47f1c68627c4eb455c6517c65b (patch) | |
tree | 3185cea3569b003dab4f523e6bf1517719fd4cb7 /src/java/com/jogamp/gluegen/ant | |
parent | afcaca4f7f9b03aaa3482fc71921f7baf3147e8b (diff) |
Gluegen/PCPP: Refined PCPP if-elif-else-endif ; Add 'dumpCPP' option to direct PCPP to dump the output to stderr as well
Diffstat (limited to 'src/java/com/jogamp/gluegen/ant')
-rw-r--r-- | src/java/com/jogamp/gluegen/ant/GlueGenTask.java | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/src/java/com/jogamp/gluegen/ant/GlueGenTask.java b/src/java/com/jogamp/gluegen/ant/GlueGenTask.java index 4cb88c2..0136ee2 100644 --- a/src/java/com/jogamp/gluegen/ant/GlueGenTask.java +++ b/src/java/com/jogamp/gluegen/ant/GlueGenTask.java @@ -71,7 +71,8 @@ import org.apache.tools.ant.util.JavaEnvUtils; includeRefid="[optional FileSet or DirSet for include files]" literalInclude="[optional hack to get around FileSet / DirSet issues with different drives]" emitter="[emitter class name]" - config="[configuration file]" + config="[configuration file]" + dumpCPP="[optional boolean]" debug="[optional boolean]" /> * </pre> * @@ -100,6 +101,11 @@ public class GlueGenTask extends Task private boolean debug=false; /** + * <p>The optional dumpCPP flag.</p> + */ + private boolean dumpCPP=false; + + /** * <p>The optional output root dir.</p> */ private String outputRootDir; @@ -167,8 +173,6 @@ public class GlueGenTask extends Task /** * <p>Set the debug flag (optional). This is called by ANT.</p> - * - * @param outputRootDir the optional output root dir */ public void setDebug(boolean debug) { @@ -177,6 +181,15 @@ public class GlueGenTask extends Task } /** + * <p>Set the dumpCPP flag (optional). This is called by ANT.</p> + */ + public void setDumpCPP(boolean dumpCPP) + { + log( ("Setting dumpCPP flag: " + dumpCPP), Project.MSG_VERBOSE); + this.dumpCPP=dumpCPP; + } + + /** * <p>Set the output root dir (optional). This is called by ANT.</p> * * @param outputRootDir the optional output root dir @@ -440,6 +453,11 @@ public class GlueGenTask extends Task gluegenCommandline.createArgument().setValue("--debug"); } + // add the debug flag if enabled + if(dumpCPP) { + gluegenCommandline.createArgument().setValue("--dumpCPP"); + } + // add the output root dir if(null!=outputRootDir && outputRootDir.trim().length()>0) { gluegenCommandline.createArgument().setValue("-O" + outputRootDir); |