aboutsummaryrefslogtreecommitdiffstats
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
parenta0f74dd069149b7eb1966c248c64ed35bb062863 (diff)
added build flag to disable compilation of native bindings.
-rw-r--r--build.xml9
-rw-r--r--nbproject/project.properties5
2 files changed, 11 insertions, 3 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}"/>
diff --git a/nbproject/project.properties b/nbproject/project.properties
index ea1f7c80..dadb96be 100644
--- a/nbproject/project.properties
+++ b/nbproject/project.properties
@@ -109,4 +109,7 @@ static.binding=true
#overwrite lib path for static linking
#use only if static.binding is true
#opencl.lib.dir=C:/Program Files (x86)/ATI Stream/lib/x86
-#opencl.lib.dir=C:/NVIDIAComputingSDK/OpenCL/common/lib/Win32 \ No newline at end of file
+#opencl.lib.dir=C:/NVIDIAComputingSDK/OpenCL/common/lib/Win32
+
+#disable the build build the native part of the bindings
+#c.dont.compile=true