summaryrefslogtreecommitdiffstats
path: root/build.xml
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2009-09-23 01:32:54 +0200
committerMichael Bien <[email protected]>2009-09-23 01:32:54 +0200
commit0ac4a12fb74de16f41ee9ad46e917b45523bbac4 (patch)
treed9072115c60805c0f50df2ae4cd90227e6c10cea /build.xml
parent8ba956a7df1b98ed2957a932debfce4c6d4cb848 (diff)
splitted binding in core (CL) and CL-GL interop. (CLGLI)
began with custom impl. for functions with c -> java callbacks added an utility which uncomments function parameter names in headers
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">