-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
56 lines (42 loc) · 1.63 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
<project name="accl" default="dist">
<property name="imcjava" value="libs/imcjava"/>
<property name="imcjava-src" value="libs/imcjava/src"/>
<property name="imcjava-gen" value="libs/imcjava/src-generated"/>
<property name="imcjava-dist" value="libs/imcjava/dist"/>
<path id="classpath.base">
<pathelement location="build" />
<pathelement location="imcjava/src"/>
</path>
<path id="classpath.libs">
<pathelement location="libs/otto-1.3.8.jar" />
<pathelement location="${imcjava-dist}/imc-stripped.jar" />
</path>
<target name="dist" depends="compile" description="generates accl.jar">
<unjar src="libs/otto-1.3.8.jar" dest="build"/>
<unjar src="libs/imcjava/dist/imc-stripped.jar" dest="build"/>
<delete>
<fileset dir="build">
<include name="**/*.java"/>
</fileset>
</delete>
<jar destfile="outputs/accl.jar" basedir="build" index="true"/>
<delete dir="build"/>
<copy file="outputs/accl.jar" tofile="androidlib/libs/accl.jar"/>
<exec executable="gradle" dir="androidlib">
<arg value="assembleRelease"/>
</exec>
<copy file="androidlib/build/outputs/aar/androidlib-release.aar" tofile="outputs/accl.aar"/>
</target>
<target name="compile">
<delete dir="build"/>
<mkdir dir="build"/>
<subant target="jar-stripped">
<filelist dir="libs/imcjava">
<file name="build.xml"/>
</filelist>
</subant>
<javac encoding="UTF-8" srcdir="src" destdir="build" includes="**/*.java" target="1.6" source="1.6" fork="false" includeantruntime="false">
<classpath refid="classpath.libs"/>
</javac>
</target>
</project>