diff options
author | Michael Bien <[email protected]> | 2009-11-20 14:49:57 +0100 |
---|---|---|
committer | Michael Bien <[email protected]> | 2009-11-20 14:49:57 +0100 |
commit | a23d5e45b8112ffc7ba02bc564ace6ed6c0414b9 (patch) | |
tree | 1c59c104902dadf79d865ce8ed6c24f3356057fc /build.xml | |
parent | 4ac3f56ec3841a8fae7cc60635c85cf0518764b5 (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.xml | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -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 |