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" | |
49 value="${PROGUARD_FLAGS}"> | |
Yaron
2012/10/12 00:49:11
I think this fits on the line above.
| |
50 <istrue value="${PROGUARD_ENABLED}"/> | |
51 </condition> | |
45 <!-- TODO(shashishekhar): Enable emma and code-coverage filters. --> | 52 <!-- TODO(shashishekhar): Enable emma and code-coverage filters. --> |
46 | 53 |
47 <condition property="asset.absolute.dir" | 54 <condition property="asset.absolute.dir" |
48 value="${out.dir}/assets" | 55 value="${out.dir}/assets" |
49 else="${ASSET_DIR}"> | 56 else="${ASSET_DIR}"> |
50 <equals arg1="${ASSET_DIR}" arg2=""/> | 57 <equals arg1="${ASSET_DIR}" arg2=""/> |
51 </condition> | 58 </condition> |
52 | 59 |
53 <!-- Set the output directory for the final apk to the ${apks.dir}. --> | 60 <!-- Set the output directory for the final apk to the ${apks.dir}. --> |
54 <property-location name="out.final.file" | 61 <property-location name="out.final.file" |
55 location="${apks.dir}/${ant.project.name}-debug.apk" | 62 location="${apks.dir}/${ant.project.name}-debug.apk" |
56 check-exists="false"/> | 63 check-exists="false"/> |
57 | 64 |
58 <!-- Classpath for javac --> | 65 <!-- Classpath for javac --> |
59 <path id="javac.custom.classpath"> | 66 <path id="javac.custom.classpath"> |
60 <filelist files="${INPUT_JARS_PATHS}"/> | 67 <filelist files="${INPUT_JARS_PATHS}"/> |
61 </path> | 68 </path> |
62 | 69 |
63 <path id="out.dex.jar.input.ref"> | 70 <path id="out.dex.jar.input.ref"> |
64 <path refid="javac.custom.classpath"/> | 71 <path refid="javac.custom.classpath"/> |
65 </path> | 72 </path> |
66 | 73 |
67 <import file="sdk-targets.xml"/> | 74 <import file="sdk-targets.xml"/> |
68 <import file="${sdk.dir}/tools/ant/build.xml"/> | 75 <import file="${sdk.dir}/tools/ant/build.xml"/> |
69 </project> | 76 </project> |
70 | 77 |
OLD | NEW |