1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <!--
3
+ Document : build-crosscompile.xml
4
+ Created on : November 18, 2009, 3:38 PM
5
+ Author : Michael Bien
6
+ Description:
7
+ crosscompiler configuration and ant task for crosscompiling for
8
+ linux32/64 and win32/64 on linux64 as host system.
9
+ -->
10
+ <project name =" gluegen-crosscompiler" basedir =" ." default =" gluegen.cross-compile" >
11
+
12
+ <import file =" build.xml" />
13
+
14
+ <!-- TODO remove hardcoded path -->
15
+ <property name =" java.includes.dir.windows" value =" /media/store/gluegenSetup/win32" />
16
+
17
+ <!-- crosscompiles to other platforms, requirement: linux64 host os -->
18
+ <target name =" gluegen.cross-compile" >
19
+
20
+ <echo message =" - - - cross-compiling gluegen natives - - - " />
21
+
22
+ <antcall target =" build.nativelibrary" inheritall =" false" >
23
+ <param name =" namespace" value =" linux-amd64" />
24
+ <param name =" crosscompile" value =" true" />
25
+ <param name =" build.dir" value =" ${build.dir}" />
26
+ <param name =" isLinuxAMD64" value =" true" />
27
+ <param name =" isLinux" value =" true" />
28
+ <param name =" isUnix" value =" true" />
29
+ <param name =" isX11" value =" true" />
30
+ </antcall >
31
+
32
+ <antcall target =" build.nativelibrary" inheritall =" false" >
33
+ <param name =" namespace" value =" linux-x86" />
34
+ <param name =" crosscompile" value =" true" />
35
+ <param name =" build.dir" value =" ${build.dir}" />
36
+ <param name =" isLinuxX86" value =" true" />
37
+ <param name =" isLinux" value =" true" />
38
+ <param name =" isUnix" value =" true" />
39
+ <param name =" isX11" value =" true" />
40
+ </antcall >
41
+
42
+ <!-- use mingw crosscompiler to compile for win32 and win64 (linux64 only) -->
43
+ <antcall target =" build.nativelibrary" inheritall =" false" >
44
+ <param name =" namespace" value =" linux-amd64" />
45
+ <param name =" crosscompile" value =" true" />
46
+ <param name =" build.dir" value =" ${build.dir}" />
47
+ <param name =" isLinuxAMD64" value =" true" />
48
+ <param name =" isLinux" value =" true" />
49
+ <param name =" isUnix" value =" true" />
50
+ <param name =" isX11" value =" true" />
51
+
52
+ <!-- overwrite -->
53
+ <param name =" java.includes.dir.platform" value =" ${java.includes.dir.windows}" />
54
+ <param name =" compiler.cfg.id" value =" compiler.cfg.linux64.mingw64" />
55
+ <param name =" linker.cfg.id" value =" linker.cfg.linux64.mingw64.gluegen" />
56
+ </antcall >
57
+
58
+ <antcall target =" build.nativelibrary" inheritall =" false" >
59
+ <param name =" namespace" value =" linux-x86" />
60
+ <param name =" crosscompile" value =" true" />
61
+ <param name =" build.dir" value =" ${build.dir}" />
62
+ <param name =" isLinuxX86" value =" true" />
63
+ <param name =" isLinux" value =" true" />
64
+ <param name =" isUnix" value =" true" />
65
+ <param name =" isX11" value =" true" />
66
+
67
+ <!-- overwrite -->
68
+ <param name =" java.includes.dir.platform" value =" ${java.includes.dir.windows}" />
69
+ <param name =" compiler.cfg.id" value =" compiler.cfg.linux64.mingw32" />
70
+ <param name =" linker.cfg.id" value =" linker.cfg.linux64.mingw32.gluegen" />
71
+ </antcall >
72
+
73
+ <echo message =" - - - gluegen natives cross-compiled - - - " />
74
+
75
+ </target >
76
+
77
+
78
+ <target name =" configure.crosscompiler" >
79
+ <linker id =" linker.cfg.linux64.mingw64.gluegen" extends =" linker.cfg.linux64.mingw64" >
80
+ </linker >
81
+
82
+ <linker id =" linker.cfg.linux64.mingw32.gluegen" extends =" linker.cfg.linux64.mingw32" >
83
+ </linker >
84
+ </target >
85
+
86
+ </project >
0 commit comments