xref: /aosp_15_r20/sdk/testapps/jarCheckTests2/lib2/build.xml (revision 1789df15502f1991eff51ff970dce5df8404dd56)
1*1789df15SXin Li<?xml version="1.0" encoding="UTF-8"?>
2*1789df15SXin Li<project name="basicLibWithSupport" 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    <!-- quick check on sdk.dir -->
43*1789df15SXin Li    <fail
44*1789df15SXin Li            message="sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through an env var"
45*1789df15SXin Li            unless="sdk.dir"
46*1789df15SXin Li    />
47*1789df15SXin Li
48*1789df15SXin Li
49*1789df15SXin Li<!-- extension targets. Uncomment the ones where you want to do custom work
50*1789df15SXin Li     in between standard targets -->
51*1789df15SXin Li<!--
52*1789df15SXin Li    <target name="-pre-build">
53*1789df15SXin Li    </target>
54*1789df15SXin Li    <target name="-pre-compile">
55*1789df15SXin Li    </target>
56*1789df15SXin Li
57*1789df15SXin Li    /* This is typically used for code obfuscation.
58*1789df15SXin Li       Compiled code location: ${out.classes.absolute.dir}
59*1789df15SXin Li       If this is not done in place, override ${out.dex.input.absolute.dir} */
60*1789df15SXin Li    <target name="-post-compile">
61*1789df15SXin Li    </target>
62*1789df15SXin Li-->
63*1789df15SXin Li
64*1789df15SXin Li    <!-- Import the actual build file.
65*1789df15SXin Li
66*1789df15SXin Li         To customize existing targets, there are two options:
67*1789df15SXin Li         - Customize only one target:
68*1789df15SXin Li             - copy/paste the target into this file, *before* the
69*1789df15SXin Li               <import> task.
70*1789df15SXin Li             - customize it to your needs.
71*1789df15SXin Li         - Customize the whole content of build.xml
72*1789df15SXin Li             - copy/paste the content of the rules files (minus the top node)
73*1789df15SXin Li               into this file, replacing the <import> task.
74*1789df15SXin Li             - customize to your needs.
75*1789df15SXin Li
76*1789df15SXin Li         ***********************
77*1789df15SXin Li         ****** IMPORTANT ******
78*1789df15SXin Li         ***********************
79*1789df15SXin Li         In all cases you must update the value of version-tag below to read 'custom' instead of an integer,
80*1789df15SXin Li         in order to avoid having your file be overridden by tools such as "android update project"
81*1789df15SXin Li    -->
82*1789df15SXin Li    <!-- version-tag: 1 -->
83*1789df15SXin Li    <import file="${sdk.dir}/tools/ant/build.xml" />
84*1789df15SXin Li
85*1789df15SXin Li</project>
86