diff options
author | Sven Gothel <[email protected]> | 2014-02-17 05:03:54 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2014-02-17 05:03:54 +0100 |
commit | 46cc6ebfb2f53daebceb9a36b553ff01af56999f (patch) | |
tree | d9c971b5041346d3636dc25f82266b826df85a2f /make/build.xml | |
parent | aeb5cb8f1de47841cca328227faff0d4ccbb97c5 (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/build.xml')
-rw-r--r-- | make/build.xml | 11 |
1 files changed, 8 insertions, 3 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" /> |