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