forked from libgdx/libgdx
-
Notifications
You must be signed in to change notification settings - Fork 1
/
fetch.xml
executable file
·108 lines (97 loc) · 6.46 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
<!-- 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-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-box2d/gdx-box2d/libs/armeabi"/>
<mkdir dir="extensions/gdx-box2d/gdx-box2d/libs/armeabi-v7a"/>
<mkdir dir="extensions/gdx-box2d/gdx-box2d/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"/>
<!-- box2d natives -->
<mkdir dir="extensions/gdx-box2d/gdx-box2d/libs/ios32"/>
<get src="${domain}/extensions/gdx-box2d/gdx-box2d-natives.jar" dest="extensions/gdx-box2d/gdx-box2d/libs"/>
<get src="${domain}/extensions/gdx-box2d/armeabi/libgdx-box2d.so" dest="tmp/armeabi"/>
<get src="${domain}/extensions/gdx-box2d/armeabi/libgdx-box2d.so" dest="extensions/gdx-box2d/gdx-box2d/libs/armeabi"/>
<get src="${domain}/extensions/gdx-box2d/armeabi-v7a/libgdx-box2d.so" dest="tmp/armeabi-v7a"/>
<get src="${domain}/extensions/gdx-box2d/armeabi-v7a/libgdx-box2d.so" dest="extensions/gdx-box2d/gdx-box2d/libs/armeabi-v7a"/>
<get src="${domain}/extensions/gdx-box2d/x86/libgdx-box2d.so" dest="tmp/x86"/>
<get src="${domain}/extensions/gdx-box2d/x86/libgdx-box2d.so" dest="extensions/gdx-box2d/gdx-box2d/libs/x86"/>
<get src="${domain}/extensions/gdx-box2d/ios/libgdx-box2d.a" dest="extensions/gdx-box2d/gdx-box2d/libs/ios32"/>
<!-- 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"/>
<!-- 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>
</target>
<target name="all" depends="fetch,copy"/>
</project>