xref: /aosp_15_r20/sdk/testapps/customViewTest/libWithCustomView/build.xml (revision 1789df15502f1991eff51ff970dce5df8404dd56)
1*1789df15SXin Li<?xml version="1.0" encoding="UTF-8"?>
2*1789df15SXin Li<project name="libWithCustomView" 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    <!-- The project.properties file is created and updated by the 'android'
32*1789df15SXin Li         tool, as well as ADT.
33*1789df15SXin Li
34*1789df15SXin Li         This contains project specific properties such as project target, and library
35*1789df15SXin Li         dependencies. Lower level build properties are stored in ant.properties
36*1789df15SXin Li         (or in .classpath for Eclipse projects).
37*1789df15SXin Li
38*1789df15SXin Li         This file is an integral part of the build system for your
39*1789df15SXin Li         application and should be checked into Version Control Systems. -->
40*1789df15SXin Li    <loadproperties srcFile="project.properties" />
41*1789df15SXin Li
42*1789df15SXin Li    <!-- if sdk.dir was not set from one of the property file, then
43*1789df15SXin Li         get it from the ANDROID_HOME env var. -->
44*1789df15SXin Li    <property environment="env" />
45*1789df15SXin Li    <condition property="sdk.dir" value="${env.ANDROID_HOME}">
46*1789df15SXin Li        <isset property="env.ANDROID_HOME" />
47*1789df15SXin Li    </condition>
48*1789df15SXin Li
49*1789df15SXin Li    <!-- quick check on sdk.dir -->
50*1789df15SXin Li    <fail
51*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."
52*1789df15SXin Li            unless="sdk.dir"
53*1789df15SXin Li    />
54*1789df15SXin Li
55*1789df15SXin Li    <!--
56*1789df15SXin Li        Import per project custom build rules if present at the root of the project.
57*1789df15SXin Li        This is the place to put custom intermediary targets such as:
58*1789df15SXin Li            -pre-build
59*1789df15SXin Li            -pre-compile
60*1789df15SXin Li            -post-compile (This is typically used for code obfuscation.
61*1789df15SXin Li                           Compiled code location: ${out.classes.absolute.dir}
62*1789df15SXin Li                           If this is not done in place, override ${out.dex.input.absolute.dir})
63*1789df15SXin Li            -post-package
64*1789df15SXin Li            -post-build
65*1789df15SXin Li            -pre-clean
66*1789df15SXin Li    -->
67*1789df15SXin Li    <import file="custom_rules.xml" optional="true" />
68*1789df15SXin Li
69*1789df15SXin Li    <!-- Import the actual build file.
70*1789df15SXin Li
71*1789df15SXin Li         To customize existing targets, there are two options:
72*1789df15SXin Li         - Customize only one target:
73*1789df15SXin Li             - copy/paste the target into this file, *before* the
74*1789df15SXin Li               <import> task.
75*1789df15SXin Li             - customize it to your needs.
76*1789df15SXin Li         - Customize the whole content of build.xml
77*1789df15SXin Li             - copy/paste the content of the rules files (minus the top node)
78*1789df15SXin Li               into this file, replacing the <import> task.
79*1789df15SXin Li             - customize to your needs.
80*1789df15SXin Li
81*1789df15SXin Li         ***********************
82*1789df15SXin Li         ****** IMPORTANT ******
83*1789df15SXin Li         ***********************
84*1789df15SXin Li         In all cases you must update the value of version-tag below to read 'custom' instead of an integer,
85*1789df15SXin Li         in order to avoid having your file be overridden by tools such as "android update project"
86*1789df15SXin Li    -->
87*1789df15SXin Li    <!-- version-tag: 1 -->
88*1789df15SXin Li    <import file="${sdk.dir}/tools/ant/build.xml" />
89*1789df15SXin Li
90*1789df15SXin Li</project>
91