summaryrefslogtreecommitdiffstats
path: root/build.xml
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2010-05-12 18:37:14 +0200
committerMichael Bien <[email protected]>2010-05-12 18:37:14 +0200
commit6f0a2ffd21d178167dd8e7db3c14da94a2d91f7e (patch)
tree5cb1c40bedc489930c369a5b49eb0cd823a6b1d2 /build.xml
parenta0f74dd069149b7eb1966c248c64ed35bb062863 (diff)
added build flag to disable compilation of native bindings.
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml9
1 files changed, 7 insertions, 2 deletions
diff --git a/build.xml b/build.xml
index 7ecfd60f..5108f07a 100644
--- a/build.xml
+++ b/build.xml
@@ -88,7 +88,7 @@
<target name="-post-compile" depends="c.compile.default" />
- <target name="-post-jar">
+ <target name="-post-jar" depends="jar.natives">
<!-- TODO temporary codebase -->
<property name="jnlp.codebase" value="http://people.fh-landshut.de/~mbien/jogamp/jocl/"/>
@@ -99,15 +99,20 @@
</filterchain>
</copy>
+ </target>
+
+ <target name="jar.natives" unless="c.dont.compile">
+
<jar basedir="${natives.jocl.dir}/${namespace}" excludes="*.xml"
destfile="${dist.jar.dir}/jocl-natives-${os.and.arch}.jar"
manifest="${basedir}/manifest.mf" />
</target>
+
<target name="c.compile.default" depends="gluegen.cpptasks.detect.os, gluegen.cpptasks.detect.compiler, jocl.c.compile, c.rename.lib.mingw" />
- <target name="jocl.c.compile" depends="c.setup.build">
+ <target name="jocl.c.compile" depends="c.setup.build" unless="c.dont.compile">
<echo message=" - - - compiling JOCL natives - - - "/>
<echo message="${compiler.cfg.id}"/>