blob: 273da45a6f514d9f32babb84c4d0cf950d91c4cc (
plain)
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
|
<?xml version="1.0" encoding="UTF-8"?>
<!--
ALIAS PROJECTS ARE CURRENT NOT SUPPORTED.
THIS FILE IS CURRENTLY BROKEN AND SHOULD NOT BE USED.
-->
<project name="alias_rules" default="package">
<!-- No user serviceable parts below. -->
<!-- Input directories -->
<property name="resource.dir" value="res" />
<!-- The final package file to generate -->
<property name="out.package" value="${ant.project.name}.apk" />
<!-- Tools -->
<condition property="aapt" value="${android.tools.dir}/aapt.exe" else="${android.tools.dir}/aapt">
<os family="windows" />
</condition>
<condition property="adb" value="${android.tools.dir}/adb.exe" else="${android.tools.dir}/adb">
<os family="windows" />
</condition>
<property name="android.jar" value="${sdk.dir}/android.jar" />
<!-- Rules -->
<!-- Packages the manifest and the resource files -->
<target name="package-res">
<echo>Packaging resources...</echo>
<exec executable="${aapt}" failonerror="true">
<arg value="package" />
<arg value="-f" />
<arg value="-M" />
<arg value="AndroidManifest.xml" />
<arg value="-S" />
<arg value="${resource.dir}" />
<arg value="-I" />
<arg value="${android.jar}" />
<arg value="-F" />
<arg value="${out.package}" />
</exec>
</target>
<!-- Create the package file for this project from the sources. -->
<target name="package" depends="package-res" />
<!-- Create the package and install package on the default emulator -->
<target name="install" depends="package">
<echo>Sending package to default emulator...</echo>
<exec executable="${adb}" failonerror="true">
<arg value="install" />
<arg value="${out.package}" />
</exec>
</target>
</project>
|