forked from libgdx/libgdx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fetch.xml
executable file
·125 lines (114 loc) · 12.2 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
<!-- Call this to fetch all the natives from the build server -->
<project name="fetch-natives" default="all">
<property name="gdx-natives" value="https://libgdx-nightlies.s3.eu-central-1.amazonaws.com/libgdx-nightlies/natives.zip"/>
<property name="robovm" value="https://oss.sonatype.org/content/repositories/releases/com/mobidevelop/robovm"/>
<property name="robovm-version" value="2.3.12"/>
<property name="jnigen" value="https://oss.sonatype.org/content/repositories/releases/com/badlogicgames/gdx"/>
<property name="jnigen-version" value="2.2.0"/>
<property name="lwjgl" value="https://oss.sonatype.org/content/repositories/releases/org/lwjgl"/>
<property name="lwjgl-version" value="3.2.3"/>
<target name="fetch-robovm">
<mkdir dir="backends/gdx-backend-robovm/libs/"/>
<parallel>
<get src="${robovm}/robovm-cacerts-full/${robovm-version}/robovm-cacerts-full-${robovm-version}.jar" dest="backends/gdx-backend-robovm/libs/robovm-cacerts-full.jar"/>
<get src="${robovm}/robovm-cocoatouch/${robovm-version}/robovm-cocoatouch-${robovm-version}.jar" dest="backends/gdx-backend-robovm/libs/robovm-cocoatouch.jar"/>
<get src="${robovm}/robovm-objc/${robovm-version}/robovm-objc-${robovm-version}.jar" dest="backends/gdx-backend-robovm/libs/robovm-objc.jar"/>
<get src="${robovm}/robovm-rt/${robovm-version}/robovm-rt-${robovm-version}.jar" dest="backends/gdx-backend-robovm/libs/robovm-rt.jar"/>
</parallel>
</target>
<target name="fetch-lwjgl3">
<parallel>
<!-- lwjgl -->
<get src="${lwjgl}/lwjgl/${lwjgl-version}/lwjgl-${lwjgl-version}.jar" dest="backends/gdx-backend-lwjgl3/libs/lwjgl.jar"/>
<get src="${lwjgl}/lwjgl/${lwjgl-version}/lwjgl-${lwjgl-version}-natives-linux.jar" dest="backends/gdx-backend-lwjgl3/libs/lwjgl-natives-linux.jar"/>
<get src="${lwjgl}/lwjgl/${lwjgl-version}/lwjgl-${lwjgl-version}-natives-linux-arm32.jar" dest="backends/gdx-backend-lwjgl3/libs/lwjgl-natives-linux-arm32.jar"/>
<get src="${lwjgl}/lwjgl/${lwjgl-version}/lwjgl-${lwjgl-version}-natives-linux-arm64.jar" dest="backends/gdx-backend-lwjgl3/libs/lwjgl-natives-linux-arm64.jar"/>
<get src="${lwjgl}/lwjgl/${lwjgl-version}/lwjgl-${lwjgl-version}-natives-macos.jar" dest="backends/gdx-backend-lwjgl3/libs/lwjgl-natives-macos.jar"/>
<!--<get src="${lwjgl}/lwjgl/${lwjgl-version}/lwjgl-${lwjgl-version}-natives-macos-arm64.jar" dest="backends/gdx-backend-lwjgl3/libs/lwjgl-natives-macos-arm64.jar"/>-->
<get src="${lwjgl}/lwjgl/${lwjgl-version}/lwjgl-${lwjgl-version}-natives-windows.jar" dest="backends/gdx-backend-lwjgl3/libs/lwjgl-natives-windows.jar"/>
<get src="${lwjgl}/lwjgl/${lwjgl-version}/lwjgl-${lwjgl-version}-natives-windows-x86.jar" dest="backends/gdx-backend-lwjgl3/libs/lwjgl-natives-windows-x86.jar"/>
<!-- lwjgl-glfw -->
<get src="${lwjgl}/lwjgl-glfw/${lwjgl-version}/lwjgl-glfw-${lwjgl-version}.jar" dest="backends/gdx-backend-lwjgl3/libs/lwjgl-glfw.jar"/>
<get src="${lwjgl}/lwjgl-glfw/${lwjgl-version}/lwjgl-glfw-${lwjgl-version}-natives-linux.jar" dest="backends/gdx-backend-lwjgl3/libs/lwjgl-glfw-natives-linux.jar"/>
<get src="${lwjgl}/lwjgl-glfw/${lwjgl-version}/lwjgl-glfw-${lwjgl-version}-natives-linux-arm32.jar" dest="backends/gdx-backend-lwjgl3/libs/lwjgl-glfw-natives-linux-arm32.jar"/>
<get src="${lwjgl}/lwjgl-glfw/${lwjgl-version}/lwjgl-glfw-${lwjgl-version}-natives-linux-arm64.jar" dest="backends/gdx-backend-lwjgl3/libs/lwjgl-glfw-natives-linux-arm64.jar"/>
<get src="${lwjgl}/lwjgl-glfw/${lwjgl-version}/lwjgl-glfw-${lwjgl-version}-natives-macos.jar" dest="backends/gdx-backend-lwjgl3/libs/lwjgl-glfw-natives-macos.jar"/>
<!--<get src="${lwjgl}/lwjgl-glfw/${lwjgl-version}/lwjgl-glfw-${lwjgl-version}-natives-macos-arm64.jar" dest="backends/gdx-backend-lwjgl3/libs/lwjgl-glfw-natives-macos-arm64.jar"/>-->
<get src="${lwjgl}/lwjgl-glfw/${lwjgl-version}/lwjgl-glfw-${lwjgl-version}-natives-windows.jar" dest="backends/gdx-backend-lwjgl3/libs/lwjgl-glfw-natives-windows.jar"/>
<get src="${lwjgl}/lwjgl-glfw/${lwjgl-version}/lwjgl-glfw-${lwjgl-version}-natives-windows-x86.jar" dest="backends/gdx-backend-lwjgl3/libs/lwjgl-glfw-natives-windows-x86.jar"/>
<!-- lwjgl-jemalloc -->
<get src="${lwjgl}/lwjgl-jemalloc/${lwjgl-version}/lwjgl-jemalloc-${lwjgl-version}.jar" dest="backends/gdx-backend-lwjgl3/libs/lwjgl-jemalloc.jar"/>
<get src="${lwjgl}/lwjgl-jemalloc/${lwjgl-version}/lwjgl-jemalloc-${lwjgl-version}-natives-linux.jar" dest="backends/gdx-backend-lwjgl3/libs/lwjgl-jemalloc-natives-linux.jar"/>
<get src="${lwjgl}/lwjgl-jemalloc/${lwjgl-version}/lwjgl-jemalloc-${lwjgl-version}-natives-linux-arm32.jar" dest="backends/gdx-backend-lwjgl3/libs/lwjgl-jemalloc-natives-linux-arm32.jar"/>
<get src="${lwjgl}/lwjgl-jemalloc/${lwjgl-version}/lwjgl-jemalloc-${lwjgl-version}-natives-linux-arm64.jar" dest="backends/gdx-backend-lwjgl3/libs/lwjgl-jemalloc-natives-linux-arm64.jar"/>
<get src="${lwjgl}/lwjgl-jemalloc/${lwjgl-version}/lwjgl-jemalloc-${lwjgl-version}-natives-macos.jar" dest="backends/gdx-backend-lwjgl3/libs/lwjgl-jemalloc-natives-macos.jar"/>
<!--<get src="${lwjgl}/lwjgl-jemalloc/${lwjgl-version}/lwjgl-jemalloc-${lwjgl-version}-natives-macos-arm64.jar" dest="backends/gdx-backend-lwjgl3/libs/lwjgl-jemalloc-natives-macos-arm64.jar"/>-->
<get src="${lwjgl}/lwjgl-jemalloc/${lwjgl-version}/lwjgl-jemalloc-${lwjgl-version}-natives-windows.jar" dest="backends/gdx-backend-lwjgl3/libs/lwjgl-jemalloc-natives-windows.jar"/>
<get src="${lwjgl}/lwjgl-jemalloc/${lwjgl-version}/lwjgl-jemalloc-${lwjgl-version}-natives-windows-x86.jar" dest="backends/gdx-backend-lwjgl3/libs/lwjgl-jemalloc-natives-windows-x86.jar"/>
<!-- lwjgl-openal -->
<get src="${lwjgl}/lwjgl-openal/${lwjgl-version}/lwjgl-openal-${lwjgl-version}.jar" dest="backends/gdx-backend-lwjgl3/libs/lwjgl-openal.jar"/>
<get src="${lwjgl}/lwjgl-openal/${lwjgl-version}/lwjgl-openal-${lwjgl-version}-natives-linux.jar" dest="backends/gdx-backend-lwjgl3/libs/lwjgl-openal-natives-linux.jar"/>
<get src="${lwjgl}/lwjgl-openal/${lwjgl-version}/lwjgl-openal-${lwjgl-version}-natives-linux-arm32.jar" dest="backends/gdx-backend-lwjgl3/libs/lwjgl-openal-natives-linux-arm32.jar"/>
<get src="${lwjgl}/lwjgl-openal/${lwjgl-version}/lwjgl-openal-${lwjgl-version}-natives-linux-arm64.jar" dest="backends/gdx-backend-lwjgl3/libs/lwjgl-openal-natives-linux-arm64.jar"/>
<get src="${lwjgl}/lwjgl-openal/${lwjgl-version}/lwjgl-openal-${lwjgl-version}-natives-macos.jar" dest="backends/gdx-backend-lwjgl3/libs/lwjgl-openal-natives-macos.jar"/>
<!--<get src="${lwjgl}/lwjgl-openal/${lwjgl-version}/lwjgl-openal-${lwjgl-version}-natives-macos-arm64.jar" dest="backends/gdx-backend-lwjgl3/libs/lwjgl-openal-natives-macos-arm64.jar"/>-->
<get src="${lwjgl}/lwjgl-openal/${lwjgl-version}/lwjgl-openal-${lwjgl-version}-natives-windows.jar" dest="backends/gdx-backend-lwjgl3/libs/lwjgl-openal-natives-windows.jar"/>
<get src="${lwjgl}/lwjgl-openal/${lwjgl-version}/lwjgl-openal-${lwjgl-version}-natives-windows-x86.jar" dest="backends/gdx-backend-lwjgl3/libs/lwjgl-openal-natives-windows-x86.jar"/>
<!-- lwjgl-opengl -->
<get src="${lwjgl}/lwjgl-opengl/${lwjgl-version}/lwjgl-opengl-${lwjgl-version}.jar" dest="backends/gdx-backend-lwjgl3/libs/lwjgl-opengl.jar"/>
<get src="${lwjgl}/lwjgl-opengl/${lwjgl-version}/lwjgl-opengl-${lwjgl-version}-natives-linux.jar" dest="backends/gdx-backend-lwjgl3/libs/lwjgl-opengl-natives-linux.jar"/>
<get src="${lwjgl}/lwjgl-opengl/${lwjgl-version}/lwjgl-opengl-${lwjgl-version}-natives-linux-arm32.jar" dest="backends/gdx-backend-lwjgl3/libs/lwjgl-opengl-natives-linux-arm32.jar"/>
<get src="${lwjgl}/lwjgl-opengl/${lwjgl-version}/lwjgl-opengl-${lwjgl-version}-natives-linux-arm64.jar" dest="backends/gdx-backend-lwjgl3/libs/lwjgl-opengl-natives-linux-arm64.jar"/>
<get src="${lwjgl}/lwjgl-opengl/${lwjgl-version}/lwjgl-opengl-${lwjgl-version}-natives-macos.jar" dest="backends/gdx-backend-lwjgl3/libs/lwjgl-opengl-natives-macos.jar"/>
<!--<get src="${lwjgl}/lwjgl-opengl/${lwjgl-version}/lwjgl-opengl-${lwjgl-version}-natives-macos-arm64.jar" dest="backends/gdx-backend-lwjgl3/libs/lwjgl-opengl-natives-macos-arm64.jar"/>-->
<get src="${lwjgl}/lwjgl-opengl/${lwjgl-version}/lwjgl-opengl-${lwjgl-version}-natives-windows.jar" dest="backends/gdx-backend-lwjgl3/libs/lwjgl-opengl-natives-windows.jar"/>
<get src="${lwjgl}/lwjgl-opengl/${lwjgl-version}/lwjgl-opengl-${lwjgl-version}-natives-windows-x86.jar" dest="backends/gdx-backend-lwjgl3/libs/lwjgl-opengl-natives-windows-x86.jar"/>
<!-- lwjgl-stb -->
<get src="${lwjgl}/lwjgl-stb/${lwjgl-version}/lwjgl-stb-${lwjgl-version}.jar" dest="backends/gdx-backend-lwjgl3/libs/lwjgl-stb.jar"/>
<get src="${lwjgl}/lwjgl-stb/${lwjgl-version}/lwjgl-stb-${lwjgl-version}-natives-linux.jar" dest="backends/gdx-backend-lwjgl3/libs/lwjgl-stb-natives-linux.jar"/>
<get src="${lwjgl}/lwjgl-stb/${lwjgl-version}/lwjgl-stb-${lwjgl-version}-natives-linux-arm32.jar" dest="backends/gdx-backend-lwjgl3/libs/lwjgl-stb-natives-linux-arm32.jar"/>
<get src="${lwjgl}/lwjgl-stb/${lwjgl-version}/lwjgl-stb-${lwjgl-version}-natives-linux-arm64.jar" dest="backends/gdx-backend-lwjgl3/libs/lwjgl-stb-natives-linux-arm64.jar"/>
<get src="${lwjgl}/lwjgl-stb/${lwjgl-version}/lwjgl-stb-${lwjgl-version}-natives-macos.jar" dest="backends/gdx-backend-lwjgl3/libs/lwjgl-stb-natives-macos.jar"/>
<!--<get src="${lwjgl}/lwjgl-stb/${lwjgl-version}/lwjgl-stb-${lwjgl-version}-natives-macos-arm64.jar" dest="backends/gdx-backend-lwjgl3/libs/lwjgl-stb-natives-macos-arm64.jar"/>-->
<get src="${lwjgl}/lwjgl-stb/${lwjgl-version}/lwjgl-stb-${lwjgl-version}-natives-windows.jar" dest="backends/gdx-backend-lwjgl3/libs/lwjgl-stb-natives-windows.jar"/>
<get src="${lwjgl}/lwjgl-stb/${lwjgl-version}/lwjgl-stb-${lwjgl-version}-natives-windows-x86.jar" dest="backends/gdx-backend-lwjgl3/libs/lwjgl-stb-natives-windows-x86.jar"/>
</parallel>
</target>
<target name="fetch-gdx">
<get src="${gdx-natives}" dest="./"/>
<unzip src="natives.zip" dest="./"/>
<get src="${jnigen}/gdx-jnigen-loader/${jnigen-version}/gdx-jnigen-loader-${jnigen-version}.jar" dest="gdx/libs/gdx-jnigen-loader.jar"/>
<!-- copy all natives to android tests -->
<copy todir="tests/gdx-tests-android/libs/armeabi-v7a">
<fileset dir="gdx/libs/armeabi-v7a"/>
<fileset dir="extensions/gdx-bullet/libs/armeabi-v7a"/>
<fileset dir="extensions/gdx-box2d/gdx-box2d/libs/armeabi-v7a"/>
<fileset dir="extensions/gdx-freetype/libs/armeabi-v7a"/>
</copy>
<copy todir="tests/gdx-tests-android/libs/arm64-v8a">
<fileset dir="gdx/libs/arm64-v8a"/>
<fileset dir="extensions/gdx-bullet/libs/arm64-v8a"/>
<fileset dir="extensions/gdx-box2d/gdx-box2d/libs/arm64-v8a"/>
<fileset dir="extensions/gdx-freetype/libs/arm64-v8a"/>
</copy>
<copy todir="tests/gdx-tests-android/libs/x86">
<fileset dir="gdx/libs/x86"/>
<fileset dir="extensions/gdx-bullet/libs/x86"/>
<fileset dir="extensions/gdx-box2d/gdx-box2d/libs/x86"/>
<fileset dir="extensions/gdx-freetype/libs/x86"/>
</copy>
<copy todir="tests/gdx-tests-android/libs/x86_64">
<fileset dir="gdx/libs/x86_64"/>
<fileset dir="extensions/gdx-bullet/libs/x86_64"/>
<fileset dir="extensions/gdx-box2d/gdx-box2d/libs/x86_64"/>
<fileset dir="extensions/gdx-freetype/libs/x86_64"/>
</copy>
</target>
<target name="all">
<parallel>
<antcall target="fetch-gdx"/>
<antcall target="fetch-robovm"/>
<antcall target="fetch-lwjgl3"/>
</parallel>
</target>
</project>