57 lines
1.9 KiB
XML
57 lines
1.9 KiB
XML
<?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>
|