2015-06-19 11:49:05 -04:00
<?xml version="1.0" encoding="utf-8"?>
<project name= "custom_rules" default= "debug" >
2015-06-22 12:52:23 -04:00
<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"
/>
2015-06-19 11:49:05 -04:00
<path id= "android.antlibs" >
2015-06-22 12:52:23 -04:00
<pathelement path= "${sdk.dir}/tools/lib/ant-tasks.jar" />
</path>
2015-06-19 11:49:05 -04:00
<!-- Custom tasks -->
2015-06-22 12:52:23 -04:00
<taskdef resource= "anttasks.properties" classpathref= "android.antlibs" />
2015-06-19 11:49:05 -04:00
2015-06-22 12:52:23 -04:00
<condition property= "exe" value= ".exe" else= "" > <os family= "windows" /> </condition>
<condition property= "bat" value= ".bat" else= "" > <os family= "windows" /> </condition>
2015-06-19 11:49:05 -04:00
<getbuildtools name= "android.build.tools.dir" verbose= "${verbose}" />
2015-06-22 12:52:23 -04:00
<property name= "aapt" location= "${android.build.tools.dir}/aapt${exe}" />
<property name= "aidl" location= "${android.build.tools.dir}/aidl${exe}" />
<property name= "dx" location= "${android.build.tools.dir}/dx${bat}" />
<if >
<condition >
<resourceexists >
<file file= "${android.build.tools.dir}/zipalign${exe}" />
</resourceexists>
</condition>
<then >
<property name= "zipalign" location= "${android.build.tools.dir}/zipalign${exe}" />
</then>
<else >
<property name= "android.tools.dir" location= "${sdk.dir}/tools" />
<property name= "zipalign" location= "${android.tools.dir}/zipalign${exe}" />
</else>
</if>
2015-06-19 11:49:05 -04:00
</project>