forked from flixel-gdx/flixel-gdx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fetch.xml
127 lines (115 loc) · 4.49 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
<!-- 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"/>
<include name="extensions/gdx-controllers/gdx-controllers-gwt.jar"/>
<include name="extensions/gdx-controllers/sources/gdx-controllers-gwt-sources.jar"/>
</patternset>
<mapper type="flatten"/>
</unzip>
<delete file="flixel-html5/libs/gdx-backend-gwt.jar"/>
<delete file="flixel-html5/libs/gdx-backend-gwt-sources.jar"/>
<unzip src="libgdx-nightly.zip" dest="flixel-html5/libs">
<patternset>
<include name="gdx-backend-gwt.jar"/>
<include name="sources/gdx-backend-gwt-sources.jar"/>
</patternset>
<mapper type="flatten"/>
</unzip>
<!-- robovm project -->
<mkdir dir="flixel-robovm/libs"/>
<delete>
<fileset dir="flixel-robovm/libs"/>
</delete>
<unzip src="libgdx-nightly.zip" dest="flixel-robovm/libs">
<patternset>
<include name="gdx-backend-robovm.jar"/>
<include name="sources/gdx-backend-robovm-sources.jar"/>
<include name="ios/libgdx.a"/>
<include name="ios/libObjectAL.a"/>
<include name="extensions/gdx-freetype/ios/libgdx-freetype.a"/>
</patternset>
<mapper type="flatten"/>
</unzip>
</target>
<target name="all" depends="fetch,extract"/>
</project>