12e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet<?xml version="1.0" encoding="UTF-8"?> 2249dc0127b12679441013dd78208706feb632c59Xavier Ducrohet<project name="customViewTest-mainProject" default="help"> 32e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet 42e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet <!-- The local.properties file is created and updated by the 'android' tool. 52e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet It contains the path to the SDK. It should *NOT* be checked into 62e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet Version Control Systems. --> 72e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet <property file="local.properties" /> 82e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet 92e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet <!-- The ant.properties file can be created by you. It is only edited by the 102e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet 'android' tool to add properties to it. 112e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet This is the place to change some Ant specific build properties. 122e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet Here are some properties you may want to change/update: 132e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet 142e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet source.dir 152e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet The name of the source directory. Default is 'src'. 162e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet out.dir 172e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet The name of the output directory. Default is 'bin'. 182e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet 192e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet For other overridable properties, look at the beginning of the rules 202e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet files in the SDK, at tools/ant/build.xml 212e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet 222e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet Properties related to the SDK location or the project target should 232e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet be updated using the 'android' tool with the 'update' action. 242e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet 252e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet This file is an integral part of the build system for your 262e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet application and should be checked into Version Control Systems. 272e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet 282e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet --> 292e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet <property file="ant.properties" /> 302e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet 312e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet <!-- The project.properties file is created and updated by the 'android' 322e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet tool, as well as ADT. 332e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet 342e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet This contains project specific properties such as project target, and library 352e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet dependencies. Lower level build properties are stored in ant.properties 362e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet (or in .classpath for Eclipse projects). 372e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet 382e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet This file is an integral part of the build system for your 392e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet application and should be checked into Version Control Systems. --> 402e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet <loadproperties srcFile="project.properties" /> 412e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet 42249dc0127b12679441013dd78208706feb632c59Xavier Ducrohet <!-- if sdk.dir was not set from one of the property file, then 43249dc0127b12679441013dd78208706feb632c59Xavier Ducrohet get it from the ANDROID_HOME env var. --> 44249dc0127b12679441013dd78208706feb632c59Xavier Ducrohet <property environment="env" /> 45249dc0127b12679441013dd78208706feb632c59Xavier Ducrohet <condition property="sdk.dir" value="${env.ANDROID_HOME}"> 46249dc0127b12679441013dd78208706feb632c59Xavier Ducrohet <isset property="env.ANDROID_HOME" /> 47249dc0127b12679441013dd78208706feb632c59Xavier Ducrohet </condition> 48249dc0127b12679441013dd78208706feb632c59Xavier Ducrohet 492e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet <!-- quick check on sdk.dir --> 502e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet <fail 51249dc0127b12679441013dd78208706feb632c59Xavier Ducrohet 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." 522e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet unless="sdk.dir" 532e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet /> 542e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet 55249dc0127b12679441013dd78208706feb632c59Xavier Ducrohet <!-- 56249dc0127b12679441013dd78208706feb632c59Xavier Ducrohet Import per project custom build rules if present at the root of the project. 57249dc0127b12679441013dd78208706feb632c59Xavier Ducrohet This is the place to put custom intermediary targets such as: 58249dc0127b12679441013dd78208706feb632c59Xavier Ducrohet -pre-build 59249dc0127b12679441013dd78208706feb632c59Xavier Ducrohet -pre-compile 60249dc0127b12679441013dd78208706feb632c59Xavier Ducrohet -post-compile (This is typically used for code obfuscation. 61249dc0127b12679441013dd78208706feb632c59Xavier Ducrohet Compiled code location: ${out.classes.absolute.dir} 62249dc0127b12679441013dd78208706feb632c59Xavier Ducrohet If this is not done in place, override ${out.dex.input.absolute.dir}) 63249dc0127b12679441013dd78208706feb632c59Xavier Ducrohet -post-package 64249dc0127b12679441013dd78208706feb632c59Xavier Ducrohet -post-build 65249dc0127b12679441013dd78208706feb632c59Xavier Ducrohet -pre-clean 66249dc0127b12679441013dd78208706feb632c59Xavier Ducrohet --> 67249dc0127b12679441013dd78208706feb632c59Xavier Ducrohet <import file="custom_rules.xml" optional="true" /> 682e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet 692e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet <!-- Import the actual build file. 702e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet 712e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet To customize existing targets, there are two options: 722e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet - Customize only one target: 732e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet - copy/paste the target into this file, *before* the 742e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet <import> task. 752e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet - customize it to your needs. 762e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet - Customize the whole content of build.xml 772e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet - copy/paste the content of the rules files (minus the top node) 782e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet into this file, replacing the <import> task. 792e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet - customize to your needs. 802e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet 812e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet *********************** 822e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet ****** IMPORTANT ****** 832e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet *********************** 842e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet In all cases you must update the value of version-tag below to read 'custom' instead of an integer, 852e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet in order to avoid having your file be overridden by tools such as "android update project" 862e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet --> 872e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet <!-- version-tag: 1 --> 882e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet <import file="${sdk.dir}/tools/ant/build.xml" /> 892e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet 902e00a07d401e4ce62fe59ad492acc86ef6601a66Xavier Ducrohet</project> 91