forked from libgdx/libgdx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-mac-ios.xml
96 lines (85 loc) · 3.63 KB
/
build-mac-ios.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<project name="gdx-ios-build" default="all" basedir=".">
<!-- compile the distribution so we have all jars we need, do not compile natives -->
<target name="compile-jars">
<ant antfile="build.xml" dir=".">
<property name="compile-natives" value="false"/>
</ant>
</target>
<target name="ios-java-only">
<ant antfile="build.xml" target="gdx-backend-iosmonotouch" dir=".">
<property name="compile-natives" value="false"/>
</ant>
<ant antfile="convert-ikvm.xml" dir=".">
<property name="IN" value="-srcpath:gdx/src/ dist/gdx.jar"/>
<property name="OUT" value="gdx/libs/ios32/gdx.dll"/>
</ant>
<ant antfile="convert-ikvm.xml" dir=".">
<property name="IN" value="-r:gdx/libs/ios32/gdx.dll -srcpath:backends/gdx-backend-iosmonotouch/src/ dist/gdx-backend-iosmonotouch.jar"/>
<property name="OUT" value="backends/gdx-backend-iosmonotouch/libs/ios32/gdx-backend-ios.dll"/>
</ant>
</target>
<target name="core" depends="compile-jars">
<ant antfile="build-macosx32.xml" dir="gdx/jni">
<target name="clean"/>
<target name="postcompile"/>
</ant>
<ant antfile="build-ios32.xml" dir="gdx/jni"/>
<ant antfile="convert-ikvm.xml" dir=".">
<property name="IN" value="-srcpath:gdx/src/ dist/gdx.jar"/>
<property name="OUT" value="gdx/libs/ios32/gdx.dll"/>
</ant>
</target>
<target name="backend-iosmonotouch" depends="core">
<ant antfile="convert-ikvm.xml" dir=".">
<property name="IN" value="-r:gdx/libs/ios32/gdx.dll -srcpath:backends/gdx-backend-iosmonotouch/src/ dist/gdx-backend-iosmonotouch.jar"/>
<property name="OUT" value="backends/gdx-backend-iosmonotouch/libs/ios32/gdx-backend-ios.dll"/>
</ant>
</target>
<target name="backend-robovm" depends="core">
<exec dir="backends/gdx-backend-robovm" executable="/bin/bash">
<arg value="build-objectal.sh"/>
</exec>
</target>
<target name="freetype" depends="core">
<ant antfile="build-macosx32.xml" dir="extensions/gdx-freetype/jni">
<target name="clean"/>
<target name="postcompile"/>
</ant>
<ant antfile="build-ios32.xml" dir="extensions/gdx-freetype/jni"/>
<ant antfile="convert-ikvm.xml" dir=".">
<property name="IN" value="-r:gdx/libs/ios32/gdx.dll -srcpath:extensions/gdx-freetype/src/ dist/extensions/gdx-freetype/gdx-freetype.jar"/>
<property name="OUT" value="extensions/gdx-freetype/libs/ios32/gdx-freetype.dll"/>
</ant>
</target>
<target name="bullet" depends="core">
<ant antfile="build-macosx32.xml" dir="extensions/gdx-bullet/jni">
<target name="clean"/>
<target name="postcompile"/>
</ant>
<ant antfile="build-ios32.xml" dir="extensions/gdx-bullet/jni"/>
<ant antfile="convert-ikvm.xml" dir=".">
<property name="IN" value="-r:gdx/libs/ios32/gdx.dll -srcpath:extensions/gdx-bullet/src/ dist/extensions/gdx-bullet/gdx-bullet.jar"/>
<property name="OUT" value="extensions/gdx-bullet/libs/ios32/gdx-bullet.dll"/>
</ant>
</target>
<target name="controllers" depends="core">
<ant antfile="build-macosx32.xml" dir="extensions/gdx-controllers/gdx-controllers-desktop/jni">
<target name="clean"/>
<target name="postcompile"/>
</ant>
</target>
<target name="audio" depends="core">
<ant antfile="build-macosx32.xml" dir="extensions/gdx-audio/jni">
<target name="clean"/>
<target name="postcompile"/>
</ant>
</target>
<target name="image" depends="core">
<ant antfile="build-macosx32.xml" dir="extensions/gdx-image/jni">
<target name="clean"/>
<target name="postcompile"/>
</ant>
</target>
<target name="all" depends="core,backend-iosmonotouch,backend-robovm,freetype,bullet,audio,image,controllers">
</target>
</project>