-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
59 lines (48 loc) · 2 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="Overchan" default="help">
<property file="local.properties" />
<property file="ant.properties" />
<property name="java.target" value="1.7" />
<property name="java.source" value="1.7" />
<property environment="env" />
<condition property="sdk.dir" value="${env.ANDROID_HOME}">
<isset property="env.ANDROID_HOME" />
</condition>
<condition property="ndk.dir" value="${env.ANDROID_NDK_HOME}">
<isset property="env.ANDROID_NDK_HOME" />
</condition>
<condition property="ndk.cmd" value="ndk-build.cmd" else="ndk-build">
<os family="windows" />
</condition>
<loadproperties srcFile="project.properties" />
<fail
message="sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through the ANDROID_HOME environment variable."
unless="sdk.dir"
/>
<fail
message="ndk.dir is missing. Make sure to add ndk.dir=/path/to/android-ndk to local.properties or to inject it through the ANDROID_NDK_HOME environment variable."
unless="ndk.dir"
/>
<!-- version-tag: custom -->
<import file="${sdk.dir}/tools/ant/build.xml" />
<target name="-pre-build">
<exec executable="${ndk.dir}/${ndk.cmd}" failonerror="true"/>
</target>
<target name="clean" depends="android_rules.clean">
<exec executable="${ndk.dir}/${ndk.cmd}" failonerror="true">
<arg value="clean"/>
</exec>
</target>
<target name="javadoc">
<javadoc encoding="UTF-8" charset="UTF-8" docencoding="UTF-8" sourcepath="src:gen" destdir="javadoc" source="1.7" >
<classpath>
<fileset dir="${sdk.dir}">
<include name="platforms/${target}/android.jar"/>
</fileset>
<fileset dir="libs">
<include name="**/*.jar"/>
</fileset>
</classpath>
</javadoc>
</target>
</project>