forked from flixel-gdx/flixel-gdx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fetch.xml
98 lines (89 loc) · 3.48 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
<!-- Call this to fetch all the required libraries from the server -->
<project name="fetch-libraries" default="all">
<property name="domain" value="http://flixel-gdx.com/dist"/>
<target name="fetch">
<!-- download archives -->
<get src="${domain}/libgdx-nightly.zip" dest="libgdx-nightly.zip" usetimestamp="true"/>
<get src="${domain}/tween-engine.zip" dest="tween-engine.zip" usetimestamp="true"/>
</target>
<target name="extract">
<!-- core project -->
<mkdir dir="flixel-core/libs"/>
<delete>
<fileset dir="flixel-core/libs"/>
</delete>
<unzip src="libgdx-nightly.zip" dest="flixel-core/libs">
<patternset>
<include name="gdx.jar"/>
<include name="sources/gdx-sources.jar"/>
<include name="extensions/gdx-freetype/gdx-freetype.jar"/>
<include name="extensions/gdx-freetype/sources/gdx-freetype-sources.jar"/>
<include name="extensions/gdx-controllers/gdx-controllers.jar"/>
<include name="extensions/gdx-controllers/sources/gdx-controllers-sources.jar"/>
</patternset>
<mapper type="flatten"/>
</unzip>
<unzip src="tween-engine.zip" dest="flixel-core/libs"/>
<!-- android project -->
<mkdir dir="flixel-android/libs"/>
<delete>
<fileset dir="flixel-android/libs" excludes="**/*.properties"/>
</delete>
<unzip src="libgdx-nightly.zip" dest="flixel-android/libs">
<patternset>
<include name="gdx-backend-android.jar"/>
<include name="sources/gdx-backend-android-sources.jar"/>
<include name="extensions/gdx-controllers/gdx-controllers-android.jar"/>
<include name="extensions/gdx-controllers/sources/gdx-controllers-android-sources.jar"/>
</patternset>
<mapper type="flatten"/>
</unzip>
<mkdir dir="flixel-android/libs/armeabi"/>
<unzip src="libgdx-nightly.zip" dest="flixel-android/libs/armeabi">
<patternset>
<include name="armeabi/libgdx.so"/>
<include name="extensions/gdx-freetype/armeabi/libgdx-freetype.so"/>
</patternset>
<mapper type="flatten"/>
</unzip>
<mkdir dir="flixel-android/libs/armeabi-v7a"/>
<unzip src="libgdx-nightly.zip" dest="flixel-android/libs/armeabi-v7a">
<patternset>
<include name="armeabi-v7a/libgdx.so"/>
<include name="extensions/gdx-freetype/armeabi-v7a/libgdx-freetype.so"/>
</patternset>
<mapper type="flatten"/>
</unzip>
<!-- desktop project -->
<mkdir dir="flixel-desktop/libs"/>
<delete>
<fileset dir="flixel-desktop/libs"/>
</delete>
<unzip src="libgdx-nightly.zip" dest="flixel-desktop/libs">
<patternset>
<include name="gdx-backend-lwjgl.jar"/>
<include name="gdx-backend-lwjgl-natives.jar"/>
<include name="sources/gdx-backend-lwjgl-sources.jar"/>
<include name="gdx-natives.jar"/>
<include name="extensions/gdx-freetype/gdx-freetype-natives.jar"/>
<include name="extensions/gdx-controllers/gdx-controllers-desktop.jar"/>
<include name="extensions/gdx-controllers/sources/gdx-controllers-desktop-sources.jar"/>
<include name="extensions/gdx-controllers/gdx-controllers-desktop-natives.jar"/>
</patternset>
<mapper type="flatten"/>
</unzip>
<!-- gwt project -->
<mkdir dir="flixel-html5/war/WEB-INF/lib"/>
<delete>
<fileset dir="flixel-html5/war/WEB-INF/lib"/>
</delete>
<unzip src="libgdx-nightly.zip" dest="flixel-html5/war/WEB-INF/lib">
<patternset>
<include name="gdx-backend-gwt.jar"/>
<include name="sources/gdx-backend-gwt-sources.jar"/>
</patternset>
<mapper type="flatten"/>
</unzip>
</target>
<target name="all" depends="fetch,extract"/>
</project>