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