1665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet<?xml version="1.0" encoding="UTF-8"?>
2665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet<project name="libWithAidl" default="help">
3665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet
4665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet    <!-- The local.properties file is created and updated by the 'android' tool.
5665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet         It contains the path to the SDK. It should *NOT* be checked into
6665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet         Version Control Systems. -->
7665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet    <property file="local.properties" />
8665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet
9665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet    <!-- The ant.properties file can be created by you. It is only edited by the
10665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet         'android' tool to add properties to it.
11665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet         This is the place to change some Ant specific build properties.
12665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet         Here are some properties you may want to change/update:
13665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet
14665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet         source.dir
15665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet             The name of the source directory. Default is 'src'.
16665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet         out.dir
17665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet             The name of the output directory. Default is 'bin'.
18665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet
19665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet         For other overridable properties, look at the beginning of the rules
20665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet         files in the SDK, at tools/ant/build.xml
21665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet
22665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet         Properties related to the SDK location or the project target should
23665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet         be updated using the 'android' tool with the 'update' action.
24665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet
25665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet         This file is an integral part of the build system for your
26665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet         application and should be checked into Version Control Systems.
27665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet
28665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet         -->
29665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet    <property file="ant.properties" />
30665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet
31665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet    <!-- The project.properties file is created and updated by the 'android'
32665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet         tool, as well as ADT.
33665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet
34665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet         This contains project specific properties such as project target, and library
35665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet         dependencies. Lower level build properties are stored in ant.properties
36665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet         (or in .classpath for Eclipse projects).
37665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet
38665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet         This file is an integral part of the build system for your
39665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet         application and should be checked into Version Control Systems. -->
40665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet    <loadproperties srcFile="project.properties" />
41665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet
42665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet    <!-- if sdk.dir was not set from one of the property file, then
43665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet         get it from the ANDROID_HOME env var. -->
44665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet    <property environment="env" />
45665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet    <condition property="sdk.dir" value="${env.ANDROID_HOME}">
46665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet        <isset property="env.ANDROID_HOME" />
47665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet    </condition>
48665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet
49665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet    <!-- quick check on sdk.dir -->
50665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet    <fail
51665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet            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."
52665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet            unless="sdk.dir"
53665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet    />
54665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet
55665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet    <!--
56665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet        Import per project custom build rules if present at the root of the project.
57665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet        This is the place to put custom intermediary targets such as:
58665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet            -pre-build
59665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet            -pre-compile
60665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet            -post-compile (This is typically used for code obfuscation.
61665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet                           Compiled code location: ${out.classes.absolute.dir}
62665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet                           If this is not done in place, override ${out.dex.input.absolute.dir})
63665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet            -post-package
64665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet            -post-build
65665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet            -pre-clean
66665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet    -->
67665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet    <import file="custom_rules.xml" optional="true" />
68665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet
69665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet    <!-- Import the actual build file.
70665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet
71665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet         To customize existing targets, there are two options:
72665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet         - Customize only one target:
73665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet             - copy/paste the target into this file, *before* the
74665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet               <import> task.
75665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet             - customize it to your needs.
76665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet         - Customize the whole content of build.xml
77665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet             - copy/paste the content of the rules files (minus the top node)
78665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet               into this file, replacing the <import> task.
79665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet             - customize to your needs.
80665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet
81665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet         ***********************
82665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet         ****** IMPORTANT ******
83665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet         ***********************
84665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet         In all cases you must update the value of version-tag below to read 'custom' instead of an integer,
85665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet         in order to avoid having your file be overridden by tools such as "android update project"
86665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet    -->
87665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet    <!-- version-tag: 1 -->
88665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet    <import file="${sdk.dir}/tools/ant/build.xml" />
89665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet
90665f681e4881a7472f8ebcb7c4fb9a6771aada29Xavier Ducrohet</project>
91