| OLD | NEW |
| 1 <!-- | 1 <!-- |
| 2 Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 3 Use of this source code is governed by a BSD-style license that can be | 3 Use of this source code is governed by a BSD-style license that can be |
| 4 found in the LICENSE file. | 4 found in the LICENSE file. |
| 5 --> | 5 --> |
| 6 <project default="error"> | 6 <project default="error"> |
| 7 <property name="ant.project.name" value="${APK_NAME}"/> | 7 <property name="ant.project.name" value="${APK_NAME}"/> |
| 8 <!-- | 8 <!-- |
| 9 Gyp will pass CONFIGURATION_NAME as the target for ant to build. These targe
ts will call the | 9 Gyp will pass CONFIGURATION_NAME as the target for ant to build. These targe
ts will call the |
| 10 appropriate sdk tools target. | 10 appropriate sdk tools target. |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 <property-value name="target.abi" value="${APP_ABI}"/> | 34 <property-value name="target.abi" value="${APP_ABI}"/> |
| 35 <property name="resource.absolute.dir" value="${RESOURCE_DIR}"/> | 35 <property name="resource.absolute.dir" value="${RESOURCE_DIR}"/> |
| 36 <property-value name="gen.absolute.dir" value="${out.dir}/gen"/> | 36 <property-value name="gen.absolute.dir" value="${out.dir}/gen"/> |
| 37 <property-location name="native.libs.absolute.dir" location="${out.dir}/libs" | 37 <property-location name="native.libs.absolute.dir" location="${out.dir}/libs" |
| 38 check-exists="false"/> | 38 check-exists="false"/> |
| 39 | 39 |
| 40 <property-value name="version.code" value="${APP_MANIFEST_VERSION_CODE}"/> | 40 <property-value name="version.code" value="${APP_MANIFEST_VERSION_CODE}"/> |
| 41 <property-value name="version.name" value="${APP_MANIFEST_VERSION_NAME}"/> | 41 <property-value name="version.name" value="${APP_MANIFEST_VERSION_NAME}"/> |
| 42 | 42 |
| 43 <property name="proguard.config" value="${PROGUARD_FLAGS}"/> | 43 <!-- |
| 44 <property name="proguard.enabled" value="${PROGUARD_ENABLED}"/> | 44 We use the PROGUARD_ENABLED flag for enabling proguard. By default proguard
is enabled for |
| 45 Release builds if proguard.config is set. Setting proguard.config even to an
empty string will |
| 46 enable proguard. Set this property only when we have explicitly enabled prog
uard. |
| 47 --> |
| 48 <condition property="proguard.config" value="${PROGUARD_FLAGS}"> |
| 49 <istrue value="${PROGUARD_ENABLED}"/> |
| 50 </condition> |
| 45 <!-- TODO(shashishekhar): Enable emma and code-coverage filters. --> | 51 <!-- TODO(shashishekhar): Enable emma and code-coverage filters. --> |
| 46 | 52 |
| 47 <condition property="asset.absolute.dir" | 53 <condition property="asset.absolute.dir" |
| 48 value="${out.dir}/assets" | 54 value="${out.dir}/assets" |
| 49 else="${ASSET_DIR}"> | 55 else="${ASSET_DIR}"> |
| 50 <equals arg1="${ASSET_DIR}" arg2=""/> | 56 <equals arg1="${ASSET_DIR}" arg2=""/> |
| 51 </condition> | 57 </condition> |
| 52 | 58 |
| 53 <!-- Set the output directory for the final apk to the ${apks.dir}. --> | 59 <!-- Set the output directory for the final apk to the ${apks.dir}. --> |
| 54 <property-location name="out.final.file" | 60 <property-location name="out.final.file" |
| 55 location="${apks.dir}/${ant.project.name}-debug.apk" | 61 location="${apks.dir}/${ant.project.name}-debug.apk" |
| 56 check-exists="false"/> | 62 check-exists="false"/> |
| 57 | 63 |
| 58 <!-- Classpath for javac --> | 64 <!-- Classpath for javac --> |
| 59 <path id="javac.custom.classpath"> | 65 <path id="javac.custom.classpath"> |
| 60 <filelist files="${INPUT_JARS_PATHS}"/> | 66 <filelist files="${INPUT_JARS_PATHS}"/> |
| 61 </path> | 67 </path> |
| 62 | 68 |
| 63 <path id="out.dex.jar.input.ref"> | 69 <path id="out.dex.jar.input.ref"> |
| 64 <path refid="javac.custom.classpath"/> | 70 <path refid="javac.custom.classpath"/> |
| 65 </path> | 71 </path> |
| 66 | 72 |
| 67 <import file="sdk-targets.xml"/> | 73 <import file="sdk-targets.xml"/> |
| 68 <import file="${sdk.dir}/tools/ant/build.xml"/> | 74 <import file="${sdk.dir}/tools/ant/build.xml"/> |
| 69 </project> | 75 </project> |
| 70 | 76 |
| OLD | NEW |