summaryrefslogtreecommitdiffstats
path: root/build.xml
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2009-11-20 14:49:57 +0100
committerMichael Bien <[email protected]>2009-11-20 14:49:57 +0100
commita23d5e45b8112ffc7ba02bc564ace6ed6c0414b9 (patch)
tree1c59c104902dadf79d865ce8ed6c24f3356057fc /build.xml
parent4ac3f56ec3841a8fae7cc60635c85cf0518764b5 (diff)
fixed mingw32 build on windows.
added scripts for crosscompilation on linux64 for win32/64 and linux32/64. temporary disabled OpenCL extensions.
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml11
1 files changed, 9 insertions, 2 deletions
diff --git a/build.xml b/build.xml
index cd8d7351..4634451c 100644
--- a/build.xml
+++ b/build.xml
@@ -80,7 +80,7 @@
<target name="-post-compile" depends="c.compile.default" />
- <target name="c.compile.default" depends="gluegen.cpptasks.detect.os, jocl.c.compile" />
+ <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">
@@ -152,7 +152,7 @@
<linker id="linker.cfg.win32.mingw.jocl" extends="linker.cfg.win32.mingw">
<linkerarg value="-Wl,--kill-at" /> <!-- remove @ from function names -->
- <syslibset libs="OpenCL"/>
+ <syslibset dir="C:/NVIDIAComputingSDK/OpenCL/common/lib/Win32" libs="OpenCL"/>
</linker>
<linker id="linker.cfg.macosx.jocl">
@@ -220,4 +220,11 @@
</target>
+ <!--cut and paste from gluegen -->
+ <target name="c.rename.lib.mingw" if="isMingW">
+ <!-- FIXME: this is a hack; the cpptask should have an option to change the
+ suffix or at least understand the override from .so to .dll -->
+ <move file="${natives.jocl.dir}/${namespace}/libjocl.so" tofile="${natives.jocl.dir}/${namespace}/jocl.dll" />
+ </target>
+
</project> \ No newline at end of file