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