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