144a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet<?xml version="1.0" encoding="UTF-8"?>
244a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet<project name="basicLibWithSupport" default="help">
344a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet
444a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet    <!-- The local.properties file is created and updated by the 'android' tool.
544a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet         It contains the path to the SDK. It should *NOT* be checked into
644a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet         Version Control Systems. -->
744a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet    <property file="local.properties" />
844a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet
944a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet    <!-- The ant.properties file can be created by you. It is only edited by the
1044a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet         'android' tool to add properties to it.
1144a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet         This is the place to change some Ant specific build properties.
1244a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet         Here are some properties you may want to change/update:
1344a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet
1444a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet         source.dir
1544a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet             The name of the source directory. Default is 'src'.
1644a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet         out.dir
1744a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet             The name of the output directory. Default is 'bin'.
1844a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet
1944a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet         For other overridable properties, look at the beginning of the rules
2044a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet         files in the SDK, at tools/ant/build.xml
2144a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet
2244a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet         Properties related to the SDK location or the project target should
2344a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet         be updated using the 'android' tool with the 'update' action.
2444a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet
2544a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet         This file is an integral part of the build system for your
2644a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet         application and should be checked into Version Control Systems.
2744a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet
2844a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet         -->
2944a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet    <property file="ant.properties" />
3044a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet
3144a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet    <!-- The project.properties file is created and updated by the 'android'
3244a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet         tool, as well as ADT.
3344a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet
3444a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet         This contains project specific properties such as project target, and library
3544a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet         dependencies. Lower level build properties are stored in ant.properties
3644a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet         (or in .classpath for Eclipse projects).
3744a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet
3844a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet         This file is an integral part of the build system for your
3944a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet         application and should be checked into Version Control Systems. -->
4044a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet    <loadproperties srcFile="project.properties" />
4144a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet
4244a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet    <!-- quick check on sdk.dir -->
4344a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet    <fail
4444a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet            message="sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through an env var"
4544a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet            unless="sdk.dir"
4644a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet    />
4744a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet
4844a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet
4944a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet<!-- extension targets. Uncomment the ones where you want to do custom work
5044a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet     in between standard targets -->
5144a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet<!--
5244a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet    <target name="-pre-build">
5344a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet    </target>
5444a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet    <target name="-pre-compile">
5544a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet    </target>
5644a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet
5744a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet    /* This is typically used for code obfuscation.
5844a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet       Compiled code location: ${out.classes.absolute.dir}
5944a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet       If this is not done in place, override ${out.dex.input.absolute.dir} */
6044a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet    <target name="-post-compile">
6144a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet    </target>
6244a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet-->
6344a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet
6444a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet    <!-- Import the actual build file.
6544a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet
6644a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet         To customize existing targets, there are two options:
6744a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet         - Customize only one target:
6844a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet             - copy/paste the target into this file, *before* the
6944a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet               <import> task.
7044a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet             - customize it to your needs.
7144a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet         - Customize the whole content of build.xml
7244a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet             - copy/paste the content of the rules files (minus the top node)
7344a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet               into this file, replacing the <import> task.
7444a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet             - customize to your needs.
7544a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet
7644a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet         ***********************
7744a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet         ****** IMPORTANT ******
7844a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet         ***********************
7944a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet         In all cases you must update the value of version-tag below to read 'custom' instead of an integer,
8044a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet         in order to avoid having your file be overridden by tools such as "android update project"
8144a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet    -->
8244a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet    <!-- version-tag: 1 -->
8344a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet    <import file="${sdk.dir}/tools/ant/build.xml" />
8444a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet
8544a21c237072fba5454732c74d1f7653523c4105Xavier Ducrohet</project>
86