xref: /aosp_15_r20/sdk/testapps/testProjectTest/lib/build.xml (revision 1789df15502f1991eff51ff970dce5df8404dd56)
1*1789df15SXin Li<?xml version="1.0" encoding="UTF-8"?>
2*1789df15SXin Li<project name="testProjectTest-lib" default="help">
3*1789df15SXin Li
4*1789df15SXin Li    <!-- The local.properties file is created and updated by the 'android' tool.
5*1789df15SXin Li         It contains the path to the SDK. It should *NOT* be checked into
6*1789df15SXin Li         Version Control Systems. -->
7*1789df15SXin Li    <property file="local.properties" />
8*1789df15SXin Li
9*1789df15SXin Li    <!-- The ant.properties file can be created by you. It is only edited by the
10*1789df15SXin Li         'android' tool to add properties to it.
11*1789df15SXin Li         This is the place to change some Ant specific build properties.
12*1789df15SXin Li         Here are some properties you may want to change/update:
13*1789df15SXin Li
14*1789df15SXin Li         source.dir
15*1789df15SXin Li             The name of the source directory. Default is 'src'.
16*1789df15SXin Li         out.dir
17*1789df15SXin Li             The name of the output directory. Default is 'bin'.
18*1789df15SXin Li
19*1789df15SXin Li         For other overridable properties, look at the beginning of the rules
20*1789df15SXin Li         files in the SDK, at tools/ant/build.xml
21*1789df15SXin Li
22*1789df15SXin Li         Properties related to the SDK location or the project target should
23*1789df15SXin Li         be updated using the 'android' tool with the 'update' action.
24*1789df15SXin Li
25*1789df15SXin Li         This file is an integral part of the build system for your
26*1789df15SXin Li         application and should be checked into Version Control Systems.
27*1789df15SXin Li
28*1789df15SXin Li         -->
29*1789df15SXin Li    <property file="ant.properties" />
30*1789df15SXin Li
31*1789df15SXin Li    <!-- if sdk.dir was not set from one of the property file, then
32*1789df15SXin Li         get it from the ANDROID_HOME env var.
33*1789df15SXin Li         This must be done before we load project.properties since
34*1789df15SXin Li         the proguard config can use sdk.dir -->
35*1789df15SXin Li    <property environment="env" />
36*1789df15SXin Li    <condition property="sdk.dir" value="${env.ANDROID_HOME}">
37*1789df15SXin Li        <isset property="env.ANDROID_HOME" />
38*1789df15SXin Li    </condition>
39*1789df15SXin Li
40*1789df15SXin Li    <!-- The project.properties file is created and updated by the 'android'
41*1789df15SXin Li         tool, as well as ADT.
42*1789df15SXin Li
43*1789df15SXin Li         This contains project specific properties such as project target, and library
44*1789df15SXin Li         dependencies. Lower level build properties are stored in ant.properties
45*1789df15SXin Li         (or in .classpath for Eclipse projects).
46*1789df15SXin Li
47*1789df15SXin Li         This file is an integral part of the build system for your
48*1789df15SXin Li         application and should be checked into Version Control Systems. -->
49*1789df15SXin Li    <loadproperties srcFile="project.properties" />
50*1789df15SXin Li
51*1789df15SXin Li    <!-- quick check on sdk.dir -->
52*1789df15SXin Li    <fail
53*1789df15SXin Li            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."
54*1789df15SXin Li            unless="sdk.dir"
55*1789df15SXin Li    />
56*1789df15SXin Li
57*1789df15SXin Li    <!--
58*1789df15SXin Li        Import per project custom build rules if present at the root of the project.
59*1789df15SXin Li        This is the place to put custom intermediary targets such as:
60*1789df15SXin Li            -pre-build
61*1789df15SXin Li            -pre-compile
62*1789df15SXin Li            -post-compile (This is typically used for code obfuscation.
63*1789df15SXin Li                           Compiled code location: ${out.classes.absolute.dir}
64*1789df15SXin Li                           If this is not done in place, override ${out.dex.input.absolute.dir})
65*1789df15SXin Li            -post-package
66*1789df15SXin Li            -post-build
67*1789df15SXin Li            -pre-clean
68*1789df15SXin Li    -->
69*1789df15SXin Li    <import file="custom_rules.xml" optional="true" />
70*1789df15SXin Li
71*1789df15SXin Li    <!-- Import the actual build file.
72*1789df15SXin Li
73*1789df15SXin Li         To customize existing targets, there are two options:
74*1789df15SXin Li         - Customize only one target:
75*1789df15SXin Li             - copy/paste the target into this file, *before* the
76*1789df15SXin Li               <import> task.
77*1789df15SXin Li             - customize it to your needs.
78*1789df15SXin Li         - Customize the whole content of build.xml
79*1789df15SXin Li             - copy/paste the content of the rules files (minus the top node)
80*1789df15SXin Li               into this file, replacing the <import> task.
81*1789df15SXin Li             - customize to your needs.
82*1789df15SXin Li
83*1789df15SXin Li         ***********************
84*1789df15SXin Li         ****** IMPORTANT ******
85*1789df15SXin Li         ***********************
86*1789df15SXin Li         In all cases you must update the value of version-tag below to read 'custom' instead of an integer,
87*1789df15SXin Li         in order to avoid having your file be overridden by tools such as "android update project"
88*1789df15SXin Li    -->
89*1789df15SXin Li    <!-- version-tag: 1 -->
90*1789df15SXin Li    <import file="${sdk.dir}/tools/ant/build.xml" />
91*1789df15SXin Li
92*1789df15SXin Li</project>
93