forked from Flowdalic/asmack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
117 lines (101 loc) · 3.93 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
<project name="asmack" default="compile" basedir=".">
<property name="jar.suffix" value="" />
<property name="build.all" value="false" />
<property name="jingle" value="" />
<property file="local.properties" />
<condition property="build-3">
<available file="${sdk-location}/platforms/android-3/android.jar" />
</condition>
<condition property="build-4">
<available file="${sdk-location}/platforms/android-4/android.jar" />
</condition>
<condition property="build-7">
<available file="${sdk-location}/platforms/android-7/android.jar" />
</condition>
<condition property="build-8">
<available file="${sdk-location}/platforms/android-8/android.jar" />
</condition>
<condition property="build-10">
<available file="${sdk-location}/platforms/android-10/android.jar" />
</condition>
<condition property="build-11">
<available file="${sdk-location}/platforms/android-11/android.jar" />
</condition>
<condition property="build-12">
<available file="${sdk-location}/platforms/android-12/android.jar" />
</condition>
<condition property="build-13">
<available file="${sdk-location}/platforms/android-13/android.jar" />
</condition>
<condition property="build-14">
<available file="${sdk-location}/platforms/android-14/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.6"
srcdir="build/src/trunk"
destdir="build/classes/trunk"
classpath="lib/xpp3-1.1.4c.jar:lib/httpclient-4.1.3.jar:lib/httpcore-4.1.4.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>
<macrodef name="android-build">
<attribute name="version" />
<sequential>
<echo>Compile for Android-@{version}</echo>
<delete dir="build/classes" failonerror="false" />
<mkdir dir="build/classes" />
<mkdir dir="build/classes/trunk" />
<javac
target="1.6"
srcdir="build/src/trunk"
destdir="build/classes/trunk"
bootclasspath="${sdk-location}/platforms/android-@{version}/android.jar:${jingle}"
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-@{version}${jar.suffix}.jar"
filesonly="true"
level="9"
/>
<zip
basedir="build/src/trunk"
destfile="build/asmack-android-@{version}-source${jar.suffix}.zip"
filesonly="true"
level="9"
/>
</sequential>
</macrodef>
<target name="compile-a3" if="build-3"><android-build version="3" /></target>
<target name="compile-a4" if="build-4"><android-build version="4" /></target>
<target name="compile-a7" if="build-7"><android-build version="7" /></target>
<target name="compile-a8" if="build-8"><android-build version="8" /></target>
<target name="compile-a10" if="build-10"><android-build version="10" /></target>
<target name="compile-a11" if="build-11"><android-build version="11" /></target>
<target name="compile-a12" if="build-12"><android-build version="12" /></target>
<target name="compile-a13" if="build-13"><android-build version="13" /></target>
<target name="compile-a14" if="build-14"><android-build version="14" /></target>
<target name="compile" depends="compile-a14,compile-a13,compile-a12,compile-a11,compile-a10,compile-a8,compile-a7,compile-a4,compile-a3" />
</project>