summaryrefslogtreecommitdiffstats
path: root/crosscompiler.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 /crosscompiler.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 'crosscompiler.xml')
-rw-r--r--crosscompiler.xml51
1 files changed, 32 insertions, 19 deletions
diff --git a/crosscompiler.xml b/crosscompiler.xml
index 2b9df491..36eec26e 100644
--- a/crosscompiler.xml
+++ b/crosscompiler.xml
@@ -12,62 +12,65 @@
<import file="build.xml"/>
<!-- TODO remove hardcoded path -->
- <property name="java.includes.dir.windows" value="/media/store/JOCLSetup/win32"/>
+ <property name="java.includes.dir.windows" value="/home/buildadmin/project/common/platform-libs/jre-include/win32"/>
+ <property name="opencl.platform.dir" value="/home/buildadmin/project/common/platform-libs/OpenCL"/>
<!-- crosscompiles to other platforms, requirement: linux64 host os -->
- <target name="jocl.cross-compile" depends="init, configure.crosscompiler">
+ <target name="jocl.cross-compile" depends="init">
<echo message=" - - - cross-compiling JOCL natives - - - "/>
<antcall target="jocl.c.compile" inheritall="false">
<param name="namespace" value="linux-amd64"/>
- <param name="crosscompile" value="true"/>
<param name="build.dir" value="${build.dir}"/>
<param name="isLinuxAMD64" value="true"/>
<param name="isLinux" value="true"/>
<param name="isUnix" value="true"/>
<param name="isX11" value="true"/>
+
+ <!-- overwrite -->
+ <param name="linker.cfg.id" value="linker.cfg.linux64.amd64.jocl"/>
</antcall>
<antcall target="jocl.c.compile" inheritall="false">
<param name="namespace" value="linux-x86"/>
- <param name="crosscompile" value="true"/>
<param name="build.dir" value="${build.dir}"/>
<param name="isLinuxX86" value="true"/>
<param name="isLinux" value="true"/>
<param name="isUnix" value="true"/>
<param name="isX11" value="true"/>
+
+ <!-- overwrite -->
+ <param name="linker.cfg.id" value="linker.cfg.linux64.x86.jocl"/>
</antcall>
- <!-- use mingw crosscompiler to compile for win32 and win64 (linux64 only) -->
+ <!-- use mingw crosscompiler to compile for win32 and win64 -->
<antcall target="jocl.c.compile" inheritall="false">
- <param name="namespace" value="linux-amd64"/>
- <param name="crosscompile" value="true"/>
+ <param name="namespace" value="win-x86"/>
<param name="build.dir" value="${build.dir}"/>
- <param name="isLinuxAMD64" value="true"/>
+ <param name="isLinuxX86" value="true"/>
<param name="isLinux" value="true"/>
<param name="isUnix" value="true"/>
<param name="isX11" value="true"/>
<!-- overwrite -->
<param name="java.includes.dir.platform" value="${java.includes.dir.windows}"/>
- <param name="compiler.cfg.id" value="compiler.cfg.linux64.mingw64"/>
- <param name="linker.cfg.id" value="linker.cfg.linux64.mingw64.jocl"/>
+ <param name="compiler.cfg.id" value="compiler.cfg.linux64.mingw32"/>
+ <param name="linker.cfg.id" value="linker.cfg.linux64.mingw32.jocl"/>
</antcall>
<antcall target="jocl.c.compile" inheritall="false">
- <param name="namespace" value="linux-x86"/>
- <param name="crosscompile" value="true"/>
+ <param name="namespace" value="win-amd64"/>
<param name="build.dir" value="${build.dir}"/>
- <param name="isLinuxX86" value="true"/>
+ <param name="isLinuxAMD64" value="true"/>
<param name="isLinux" value="true"/>
<param name="isUnix" value="true"/>
<param name="isX11" value="true"/>
<!-- overwrite -->
<param name="java.includes.dir.platform" value="${java.includes.dir.windows}"/>
- <param name="compiler.cfg.id" value="compiler.cfg.linux64.mingw32"/>
- <param name="linker.cfg.id" value="linker.cfg.linux64.mingw32.jocl"/>
+ <param name="compiler.cfg.id" value="compiler.cfg.linux64.mingw64"/>
+ <param name="linker.cfg.id" value="linker.cfg.linux64.mingw64.jocl"/>
</antcall>
<echo message=" - - - JOCL natives cross-compiled - - - "/>
@@ -75,14 +78,24 @@
</target>
- <target name="configure.crosscompiler">
- <linker id="linker.cfg.linux64.mingw64.jocl" extends="linker.cfg.linux64.mingw64">
- <syslibset dir="${basedir}/lib/OpenCL/linux/amd64" libs="OpenCL"/>
+ <target name="jocl.configure.linker">
+
+ <linker id="linker.cfg.linux64.x86.jocl" extends="linker.cfg.linux">
+ <syslibset dir="${opencl.platform.dir}/linux/x86" libs="OpenCL"/>
+ </linker>
+
+ <linker id="linker.cfg.linux64.amd64.jocl" extends="linker.cfg.linux.amd64" >
+ <syslibset dir="${opencl.platform.dir}/linux/amd64" libs="OpenCL"/>
</linker>
<linker id="linker.cfg.linux64.mingw32.jocl" extends="linker.cfg.linux64.mingw32">
- <syslibset dir="${basedir}/lib/OpenCL/linux/x86" libs="OpenCL"/>
+ <syslibset dir="${opencl.platform.dir}/win/win32" libs="OpenCL"/>
+ </linker>
+
+ <linker id="linker.cfg.linux64.mingw64.jocl" extends="linker.cfg.linux64.mingw64">
+ <syslibset dir="${opencl.platform.dir}/win/x64" libs="OpenCL"/>
</linker>
+
</target>
</project> \ No newline at end of file