summaryrefslogtreecommitdiffstats
path: root/make
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2014-02-17 05:03:54 +0100
committerSven Gothel <[email protected]>2014-02-17 05:03:54 +0100
commit46cc6ebfb2f53daebceb9a36b553ff01af56999f (patch)
treed9c971b5041346d3636dc25f82266b826df85a2f /make
parentaeb5cb8f1de47841cca328227faff0d4ccbb97c5 (diff)
build.xml: Don't re-generate source (gluegen) if CLAbstractImpl_JNI.c uptodate (use java.generate.skip); Put native code on gensrc/native/jocl
Diffstat (limited to 'make')
-rw-r--r--make/build.xml11
-rw-r--r--make/config/cl-common.cfg2
2 files changed, 9 insertions, 4 deletions
diff --git a/make/build.xml b/make/build.xml
index 694cfe9b..36aa8c05 100644
--- a/make/build.xml
+++ b/make/build.xml
@@ -128,7 +128,7 @@
<property name="rootrel.src.c" value="resources" />
<property name="rootrel.src.generated" value="${rootrel.build}/gensrc" />
<property name="rootrel.generated.java" value="${rootrel.src.generated}/classes" />
- <property name="rootrel.generated.c.jocl" value="${rootrel.src.generated}/native" />
+ <property name="rootrel.generated.c.jocl" value="${rootrel.src.generated}/native/jocl" />
<property name="rootrel.obj" value="${rootrel.build}/obj" />
<property name="rootrel.obj.jocl" value="${rootrel.obj}/jocl" />
@@ -288,7 +288,7 @@
<!-- Now check for the presence of one well-known file -->
<uptodate property="java.generate.skip"
- targetfile="${src.generated.java}/com/jogamp/opencl/llb/CL.java">
+ targetfile="${src.generated.c}/CLAbstractImpl_JNI.c">
<srcfiles refid="stub.includes.dependencies.fileset.1" />
<srcfiles refid="stub.includes.dependencies.fileset.2" />
<srcfiles refid="stub.includes.dependencies.fileset.3" />
@@ -371,7 +371,12 @@
- from the C OpenCL headers. This involves setting the taskdef and creating
- the classpath reference id then running the task on each header.
-->
- <target name="java.generate" depends="build.gluegen, generate.jdk6.autocloseable, generate.jdk7.autocloseable, java.generate.check, preprocess-opencl-headers" unless="java.generate.skip">
+ <target name="java.generate" depends="build.gluegen, java.generate.check" unless="java.generate.skip">
+ <antcall target="java.generate.impl" inheritRefs="true" />
+ </target>
+
+ <target name="java.generate.impl" depends="preprocess-opencl-headers">
+
<!-- Add the GlueGen task to ANT -->
<taskdef name="gluegen" classname="com.jogamp.gluegen.ant.GlueGenTask"
classpathref="gluegen.classpath" />
diff --git a/make/config/cl-common.cfg b/make/config/cl-common.cfg
index d89643b9..8e1adf16 100644
--- a/make/config/cl-common.cfg
+++ b/make/config/cl-common.cfg
@@ -1,5 +1,5 @@
JavaOutputDir gensrc/java
-NativeOutputDir gensrc/native
+NativeOutputDir gensrc/native/jocl
Package com.jogamp.opencl.llb