forked from finnstr/libgdx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fetch.xml
executable file
·170 lines (149 loc) · 10.1 KB
/
fetch.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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
<!-- Call this to fetch all the natives from the build server -->
<project name="fetch-natives" default="all">
<property name="domain" value="http://libgdx.badlogicgames.com/nightlies/dist"/>
<property name="robovm" value="http://libgdx.badlogicgames.com/robovm/robovm/lib/"/>
<target name="fetch-robovm">
<mkdir dir="backends/gdx-backend-robovm/libs/"/>
<get src="${robovm}/robovm-cacerts-full.jar" dest="backends/gdx-backend-robovm/libs/"/>
<get src="${robovm}/robovm-cocoatouch.jar" dest="backends/gdx-backend-robovm/libs/"/>
<get src="${robovm}/robovm-objc.jar" dest="backends/gdx-backend-robovm/libs/"/>
<get src="${robovm}/robovm-rt.jar" dest="backends/gdx-backend-robovm/libs/"/>
</target>
<target name="fetch">
<!-- create a temporary directory for all android and ios natives, to be distributed
across demos and tests. The xxx-natives.jar files are put into the respective
project's libs/ folder -->
<mkdir dir="tmp"/>
<mkdir dir="tmp/armeabi"/>
<mkdir dir="tmp/armeabi-v7a"/>
<mkdir dir="tmp/x86"/>
<mkdir dir="tmp/ios"/>
<mkdir dir="gdx/libs/armeabi"/>
<mkdir dir="gdx/libs/armeabi-v7a"/>
<mkdir dir="gdx/libs/x86"/>
<mkdir dir="extensions/gdx-audio/libs/armeabi"/>
<mkdir dir="extensions/gdx-audio/libs/armeabi-v7a"/>
<mkdir dir="extensions/gdx-audio/libs/x86"/>
<mkdir dir="extensions/gdx-bullet/libs/armeabi"/>
<mkdir dir="extensions/gdx-bullet/libs/armeabi-v7a"/>
<mkdir dir="extensions/gdx-bullet/libs/x86"/>
<mkdir dir="extensions/gdx-freetype/libs/armeabi"/>
<mkdir dir="extensions/gdx-freetype/libs/armeabi-v7a"/>
<mkdir dir="extensions/gdx-freetype/libs/x86"/>
<mkdir dir="extensions/gdx-image/libs/armeabi"/>
<mkdir dir="extensions/gdx-image/libs/armeabi-v7a"/>
<mkdir dir="extensions/gdx-image/libs/x86"/>
<!-- core -->
<mkdir dir="gdx/libs/ios32"/>
<get src="${domain}/gdx-natives.jar" dest="gdx/libs"/>
<get src="${domain}/armeabi/libgdx.so" dest="tmp/armeabi"/>
<get src="${domain}/armeabi/libgdx.so" dest="gdx/libs/armeabi"/>
<get src="${domain}/armeabi-v7a/libgdx.so" dest="tmp/armeabi-v7a"/>
<get src="${domain}/armeabi-v7a/libgdx.so" dest="gdx/libs/armeabi-v7a"/>
<get src="${domain}/x86/libgdx.so" dest="tmp/x86"/>
<get src="${domain}/x86/libgdx.so" dest="gdx/libs/x86"/>
<get src="${domain}/ios/libgdx.a" dest="gdx/libs/ios32"/>
<get src="${domain}/ios/libObjectAL.a" dest="gdx/libs/ios32"/>
<!-- robovm snapshot jars for robovm backend -->
<antcall target="fetch-robovm"/>
<!-- audio natives -->
<mkdir dir="extensions/gdx-audio/libs/ios32"/>
<get src="${domain}/extensions/gdx-audio/gdx-audio-natives.jar" dest="extensions/gdx-audio/libs"/>
<get src="${domain}/extensions/gdx-audio/armeabi/libgdx-audio.so" dest="tmp/armeabi"/>
<get src="${domain}/extensions/gdx-audio/armeabi/libgdx-audio.so" dest="extensions/gdx-audio/libs/armeabi"/>
<get src="${domain}/extensions/gdx-audio/armeabi-v7a/libgdx-audio.so" dest="tmp/armeabi-v7a"/>
<get src="${domain}/extensions/gdx-audio/armeabi-v7a/libgdx-audio.so" dest="extensions/gdx-audio/libs/armeabi-v7a"/>
<!-- bullet natives -->
<mkdir dir="extensions/gdx-bullet/libs/ios32"/>
<get src="${domain}/extensions/gdx-bullet/gdx-bullet-natives.jar" dest="extensions/gdx-bullet/libs"/>
<get src="${domain}/extensions/gdx-bullet/armeabi/libgdx-bullet.so" dest="tmp/armeabi"/>
<get src="${domain}/extensions/gdx-bullet/armeabi/libgdx-bullet.so" dest="extensions/gdx-bullet/libs/armeabi"/>
<get src="${domain}/extensions/gdx-bullet/armeabi-v7a/libgdx-bullet.so" dest="tmp/armeabi-v7a"/>
<get src="${domain}/extensions/gdx-bullet/armeabi-v7a/libgdx-bullet.so" dest="extensions/gdx-bullet/libs/armeabi-v7a"/>
<get src="${domain}/extensions/gdx-bullet/x86/libgdx-bullet.so" dest="tmp/x86"/>
<get src="${domain}/extensions/gdx-bullet/x86/libgdx-bullet.so" dest="extensions/gdx-bullet/libs/x86"/>
<get src="${domain}/extensions/gdx-bullet/ios/libgdx-bullet.a" dest="extensions/gdx-bullet/libs/ios32"/>
<!-- controllers natives, desktop only -->
<mkdir dir="extensions/gdx-controllers/gdx-controllers-desktop/libs/ios32"/>
<get src="${domain}/extensions/gdx-controllers/gdx-controllers-desktop-natives.jar" dest="extensions/gdx-controllers/gdx-controllers-desktop/libs"/>
<!-- freetype natives -->
<mkdir dir="extensions/gdx-freetype/libs/ios32"/>
<get src="${domain}/extensions/gdx-freetype/gdx-freetype-natives.jar" dest="extensions/gdx-freetype/libs"/>
<get src="${domain}/extensions/gdx-freetype/armeabi/libgdx-freetype.so" dest="tmp/armeabi"/>
<get src="${domain}/extensions/gdx-freetype/armeabi/libgdx-freetype.so" dest="extensions/gdx-freetype/libs/armeabi"/>
<get src="${domain}/extensions/gdx-freetype/armeabi-v7a/libgdx-freetype.so" dest="tmp/armeabi-v7a"/>
<get src="${domain}/extensions/gdx-freetype/armeabi-v7a/libgdx-freetype.so" dest="extensions/gdx-freetype/libs/armeabi-v7a"/>
<get src="${domain}/extensions/gdx-freetype/x86/libgdx-freetype.so" dest="tmp/x86"/>
<get src="${domain}/extensions/gdx-freetype/x86/libgdx-freetype.so" dest="extensions/gdx-freetype/libs/x86"/>
<get src="${domain}/extensions/gdx-freetype/ios/libgdx-freetype.a" dest="extensions/gdx-freetype/libs/ios32"/>
<!-- image natives -->
<mkdir dir="extensions/gdx-image/libs/ios32"/>
<get src="${domain}/extensions/gdx-image/gdx-image-natives.jar" dest="extensions/gdx-image/libs"/>
<get src="${domain}/extensions/gdx-image/armeabi/libgdx-image.so" dest="tmp/armeabi"/>
<get src="${domain}/extensions/gdx-image/armeabi/libgdx-image.so" dest="extensions/gdx-image/libs/armeabi"/>
<get src="${domain}/extensions/gdx-image/armeabi-v7a/libgdx-image.so" dest="tmp/armeabi-v7a"/>
<get src="${domain}/extensions/gdx-image/armeabi-v7a/libgdx-image.so" dest="extensions/gdx-image/libs/armeabi-v7a"/>
<get src="${domain}/extensions/gdx-image/x86/libgdx-image.so" dest="tmp/x86"/>
<get src="${domain}/extensions/gdx-image/x86/libgdx-image.so" dest="extensions/gdx-image/libs/x86"/>
<!-- jglfw -->
<mkdir dir="backends/gdx-backend-jglfw/libs"/>
<get src="http://libgdx.badlogicgames.com/jglfw/nightlies/dist/jglfw-natives.jar" dest="backends/gdx-backend-jglfw/libs/gdx-backend-jglfw-natives.jar"/>
<get src="http://libgdx.badlogicgames.com/jglfw/nightlies/dist/jglfw.jar" dest="backends/gdx-backend-jglfw/libs/"/>
</target>
<target name="copy">
<!-- copy all extension natives to android tests -->
<copy todir="tests/gdx-tests-android/libs/armeabi">
<fileset dir="tmp/armeabi"/>
</copy>
<copy todir="tests/gdx-tests-android/libs/armeabi-v7a">
<fileset dir="tmp/armeabi-v7a"/>
</copy>
<copy todir="tests/gdx-tests-android/libs/x86">
<fileset dir="tmp/x86"/>
</copy>
<!-- filesets to copy to demos -->
<fileset id="gdx-armeabi" dir="tmp/armeabi">
<include name="**/libgdx.so"/>
</fileset>
<fileset id="gdx-armeabi-v7a" dir="tmp/armeabi-v7a">
<include name="**/libgdx.so"/>
</fileset>
<fileset id="gdx-x86" dir="tmp/x86">
<include name="**/libgdx.so"/>
</fileset>
<!-- copy to demos -->
<!-- invaders -->
<copy todir="demos/invaders/gdx-invaders-android/libs/armeabi"><fileset refid="gdx-armeabi"/></copy>
<copy todir="demos/invaders/gdx-invaders-android/libs/armeabi-v7a"><fileset refid="gdx-armeabi-v7a"/></copy>
<copy todir="demos/invaders/gdx-invaders-android/libs/x86"><fileset refid="gdx-x86"/></copy>
<!-- vector pinball -->
<copy todir="demos/vector-pinball/gdx-vectorpinball-android/libs/armeabi"><fileset refid="gdx-armeabi"/></copy>
<copy todir="demos/vector-pinball/gdx-vectorpinball-android/libs/armeabi-v7a"><fileset refid="gdx-armeabi-v7a"/></copy>
<copy todir="demos/vector-pinball/gdx-vectorpinball-android/libs/x86"><fileset refid="gdx-x86"/></copy>
<!-- super jumper -->
<copy todir="demos/superjumper/superjumper-android/libs/armeabi"><fileset refid="gdx-armeabi"/></copy>
<copy todir="demos/superjumper/superjumper-android/libs/armeabi-v7a"><fileset refid="gdx-armeabi-v7a"/></copy>
<copy todir="demos/superjumper/superjumper-android/libs/x86"><fileset refid="gdx-x86"/></copy>
<!-- metagun -->
<copy todir="demos/metagun/metagun-android/libs/armeabi"><fileset refid="gdx-armeabi"/></copy>
<copy todir="demos/metagun/metagun-android/libs/armeabi-v7a"><fileset refid="gdx-armeabi-v7a"/></copy>
<copy todir="demos/metagun/metagun-android/libs/x86"><fileset refid="gdx-x86"/></copy>
<!-- cuboc -->
<copy todir="demos/cuboc/cuboc-android/libs/armeabi"><fileset refid="gdx-armeabi"/></copy>
<copy todir="demos/cuboc/cuboc-android/libs/armeabi-v7a"><fileset refid="gdx-armeabi-v7a"/></copy>
<copy todir="demos/cuboc/cuboc-android/libs/x86"><fileset refid="gdx-x86"/></copy>
<!-- pax britannica -->
<copy todir="demos/pax-britannica/pax-britannica-android/libs/armeabi"><fileset refid="gdx-armeabi"/></copy>
<copy todir="demos/pax-britannica/pax-britannica-android/libs/armeabi-v7a"><fileset refid="gdx-armeabi-v7a"/></copy>
<copy todir="demos/pax-britannica/pax-britannica-android/libs/x86"><fileset refid="gdx-x86"/></copy>
<!-- very angry robots -->
<copy todir="demos/very-angry-robots/very-angry-robots-android/libs/armeabi"><fileset refid="gdx-armeabi"/></copy>
<copy todir="demos/very-angry-robots/very-angry-robots-android/libs/armeabi-v7a"><fileset refid="gdx-armeabi-v7a"/></copy>
<copy todir="demos/very-angry-robots/very-angry-robots-android/libs/x86"><fileset refid="gdx-x86"/></copy>
<!-- gdx remote -->
<copy todir="extensions/gdx-remote/libs/armeabi"><fileset refid="gdx-armeabi"/></copy>
<copy todir="extensions/gdx-remote/libs/armeabi-v7a"><fileset refid="gdx-armeabi-v7a"/></copy>
<copy todir="extensions/gdx-remote/libs/x86"><fileset refid="gdx-x86"/></copy>
</target>
<target name="all" depends="fetch,copy"/>
</project>