summaryrefslogtreecommitdiffstats
path: root/build.xml
diff options
context:
space:
mode:
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml25
1 files changed, 18 insertions, 7 deletions
diff --git a/build.xml b/build.xml
index 25b5c5c4..d1805831 100644
--- a/build.xml
+++ b/build.xml
@@ -28,16 +28,24 @@
<taskdef name="gluegen" classname="com.sun.gluegen.ant.GlueGenTask" classpathref="gluegen.classpath" />
- <!--OpenCL Impl including GL interoperability-->
+ <!--OpenCL Impl including OpenGL interoperability-->
<dirset id="jocl.include.path" dir="${basedir}">
<include name="resources"/>
<include name="resources/CL"/>
<include name="resources/jvm_stubs"/>
</dirset>
- <echo message=" - - - generate JOCL java files - - - "/>
+ <echo message=" - - - generate JOCL binding files - - - "/>
- <echo message="generate CLGL interface..."/>
+ <echo message="generate CL interface..."/>
+ <gluegen src="resources/opencl.h"
+ config="resources/cl-if.cfg"
+ includeRefid="jocl.include.path"
+ emitter="com.sun.gluegen.JavaEmitter">
+ <classpath refid="gluegen.classpath" />
+ </gluegen>
+
+ <echo message="generate CLGLI interface..."/>
<gluegen src="resources/opencl.h"
config="resources/clgl-if.cfg"
includeRefid="jocl.include.path"
@@ -52,10 +60,7 @@
emitter="com.sun.gluegen.JavaEmitter">
<classpath refid="gluegen.classpath" />
</gluegen>
- <echo message=" - - - JOCL java files generated - - - "/>
-
- <!-- TODO 1. generate CLGLimpl
- 2. split interfaces into CL and CLGL -->
+ <echo message=" - - - JOCL binding files generated - - - "/>
</target>
@@ -108,6 +113,12 @@
<echo message=" - - - JOCL natives compiled - - - "/>
+ <copy todir="${natives.jocl.dir}">
+ <fileset dir="${gluegen.root}/build/obj">
+ <include name="*.so"/>
+ </fileset>
+ </copy>
+
</target>
<target name="c.configure.linux.amd64" depends="gluegen.cpptasks.detect.os,gluegen.cpptasks.setup.compiler">