forked from guardianproject/asmack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
171 lines (158 loc) · 5.19 KB
/
build.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
<project name="asmack" default="compile" basedir=".">
<property name="jar.suffix" value="" />
<property name="build.all" value="false" />
<property file="local.properties" />
<condition property="build-4">
<available file="${sdk-location}/platforms/android-4/android.jar" />
</condition>
<condition property="build-5">
<available file="${sdk-location}/platforms/android-5/android.jar" />
</condition>
<condition property="build-6">
<available file="${sdk-location}/platforms/android-6/android.jar" />
</condition>
<condition property="build-7">
<available file="${sdk-location}/platforms/android-7/android.jar" />
</condition>
<target name="compile-jse" description="Compile for java se">
<delete dir="build/classes" failonerror="false" />
<mkdir dir="build/classes" />
<mkdir dir="build/classes/trunk" />
<javac
target="1.5"
srcdir="build/src/trunk"
destdir="build/classes/trunk"
classpath="lib/xmlpull_1_1_3_4c.jar:lib/httpclient-4.0.jar:lib/httpcore-4.0.1.jar"
debug="true"
debuglevel="source,lines"
excludes="**/de/measite/smack/AndroidDebugger.java"
/>
<copy todir="build/classes/trunk"><fileset dir="build/src/trunk" includes="META-INF/**" /></copy>
<jar
basedir="build/classes/trunk"
destfile="build/asmack-jse${jar.suffix}.jar"
filesonly="true"
level="9"
/>
<zip
basedir="build/src/trunk"
destfile="build/asmack-jse-source${jar.suffix}.zip"
excludes="**/de/measite/smack/AndroidDebugger.java"
filesonly="true"
level="9"
/>
</target>
<target name="compile-a7" description="Compile for android API level 7" if="build-7">
<delete dir="build/classes" failonerror="false" />
<mkdir dir="build/classes" />
<mkdir dir="build/classes/trunk" />
<javac
target="1.5"
srcdir="build/src/trunk"
destdir="build/classes/trunk"
classpath="lib/xmlpull_1_1_3_4c.jar"
bootclasspath="${sdk-location}/platforms/android-7/android.jar"
debug="true"
debuglevel="source,lines"
/>
<copy todir="build/classes/trunk"><fileset dir="build/src/trunk" includes="META-INF/**" /></copy>
<jar
basedir="build/classes/trunk"
destfile="build/asmack-android-7${jar.suffix}.jar"
filesonly="true"
level="9"
/>
<zip
basedir="build/src/trunk"
destfile="build/asmack-android-7-source${jar.suffix}.zip"
filesonly="true"
level="9"
/>
</target>
<target name="compile-a6" description="Compile for android API level 6" if="build-6">
<delete dir="build/classes" failonerror="false" />
<mkdir dir="build/classes" />
<mkdir dir="build/classes/trunk" />
<javac
target="1.5"
srcdir="build/src/trunk"
destdir="build/classes/trunk"
classpath="lib/xmlpull_1_1_3_4c.jar"
bootclasspath="${sdk-location}/platforms/android-6/android.jar"
debug="true"
debuglevel="source,lines"
/>
<copy todir="build/classes/trunk"><fileset dir="build/src/trunk" includes="META-INF/**" /></copy>
<jar
basedir="build/classes/trunk"
destfile="build/asmack-android-6${jar.suffix}.jar"
filesonly="true"
level="9"
/>
<zip
basedir="build/src/trunk"
destfile="build/asmack-android-6-source${jar.suffix}.zip"
filesonly="true"
level="9"
/>
</target>
<target name="compile-a5" description="Compile for android API level 5" if="build-5">
<delete dir="build/classes" failonerror="false" />
<mkdir dir="build/classes" />
<mkdir dir="build/classes/trunk" />
<javac
target="1.5"
srcdir="build/src/trunk"
destdir="build/classes/trunk"
classpath="lib/xmlpull_1_1_3_4c.jar"
bootclasspath="${sdk-location}/platforms/android-5/android.jar"
debug="true"
debuglevel="source,lines"
/>
<copy todir="build/classes/trunk"><fileset dir="build/src/trunk" includes="META-INF/**" /></copy>
<jar
basedir="build/classes/trunk"
destfile="build/asmack-android-5${jar.suffix}.jar"
filesonly="true"
level="9"
/>
<zip
basedir="build/src/trunk"
destfile="build/asmack-android-5-source${jar.suffix}.zip"
filesonly="true"
level="9"
/>
</target>
<target name="compile-a4" description="Compile for android API level 4" if="build-4">
<delete dir="build/classes" failonerror="false" />
<mkdir dir="build/classes" />
<mkdir dir="build/classes/trunk" />
<javac
target="1.5"
srcdir="build/src/trunk"
destdir="build/classes/trunk"
classpath="lib/xmlpull_1_1_3_4c.jar"
bootclasspath="${sdk-location}/platforms/android-4/android.jar"
debug="true"
debuglevel="source,lines"
/>
<copy todir="build/classes/trunk"><fileset dir="build/src/trunk" includes="META-INF/**" /></copy>
<jar
basedir="build/classes/trunk"
destfile="build/asmack-android-4${jar.suffix}.jar"
filesonly="true"
level="9"
/>
<zip
basedir="build/src/trunk"
destfile="build/asmack-android-4-source${jar.suffix}.zip"
filesonly="true"
level="9"
/>
</target>
<target
name="compile"
description="Compile for all targets"
depends="compile-jse,compile-a7,compile-a6,compile-a5,compile-a4"
/>
</project>