summaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/gluegen/ant/GlueGenTask.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/com/jogamp/gluegen/ant/GlueGenTask.java')
-rw-r--r--src/java/com/jogamp/gluegen/ant/GlueGenTask.java24
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);