OLD | NEW |
1 <?xml version="1.0" encoding="UTF-8"?> | 1 <?xml version="1.0" encoding="UTF-8"?> |
2 <!-- | 2 <!-- |
3 Copyright (c) 2012 The Chromium Authors. All rights reserved. | 3 Copyright (c) 2012 The Chromium Authors. All rights reserved. |
4 Use of this source code is governed by a BSD-style license that can be | 4 Use of this source code is governed by a BSD-style license that can be |
5 found in the LICENSE file. | 5 found in the LICENSE file. |
6 --> | 6 --> |
7 <project name="chrome_sdk_overrides" > | 7 <project name="chrome_sdk_overrides" > |
8 <!-- | 8 <!-- |
9 Redefinition of targets used by SDK tools. | 9 Redefinition of targets used by SDK tools. |
10 Supported version: SDK tools revision 20. | 10 Supported version: SDK tools revision 20. |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 outdir="${out.absolute.dir}/classes" | 87 outdir="${out.absolute.dir}/classes" |
88 verbosity="${verbosity}"> | 88 verbosity="${verbosity}"> |
89 <filter excludes="${emma.default.filter}"/> | 89 <filter excludes="${emma.default.filter}"/> |
90 <filter value="${emma.filter}"/> | 90 <filter value="${emma.filter}"/> |
91 </instr> | 91 </instr> |
92 </emma> | 92 </emma> |
93 </then> | 93 </then> |
94 </if> | 94 </if> |
95 </do-only-if-manifest-hasCode> | 95 </do-only-if-manifest-hasCode> |
96 </target> | 96 </target> |
| 97 |
| 98 <!-- |
| 99 For debug builds, the Android SDK tools create a key in ~/.android and sign
the build with it. |
| 100 This has caused all kinds of issues. Instead, the debug build should be sign
ed with a key in |
| 101 build/android/ant. The SDK tools do not provide any support for overriding t
hat behavior and so |
| 102 instead one must use the hack below. |
| 103 --> |
| 104 |
| 105 <!-- Disables automatic signing. --> |
| 106 <property name="build.is.signing.debug" value="false"/> |
| 107 |
| 108 <!-- TODO(cjhopman): Remove this property when all gyp files define the CHROMI
UM_SRC property. --> |
| 109 <property name="CHROMIUM_SRC" value="${PRODUCT_DIR}/../.." /> |
| 110 |
| 111 <property name="key.store" value="${CHROMIUM_SRC}/build/android/ant/chromium-d
ebug.keystore"/> |
| 112 <property name="key.store.password" value="chromium"/> |
| 113 <property name="key.alias" value="chromiumdebugkey"/> |
| 114 <property name="key.alias.password" value="chromium"/> |
| 115 |
| 116 <!-- SDK tools assume that out.packaged.file is signed and name it "...-unalig
ned" --> |
| 117 <property name="out.packaged.file" |
| 118 value="${out.dir}/${ant.project.name}-debug-unsigned.apk" /> |
| 119 <property name="out.unaligned.file" |
| 120 value="${out.dir}/${ant.project.name}-debug-unaligned.apk" /> |
| 121 |
| 122 <!-- By default, the SDK tools build only aligns the APK in the -do-debug targ
et. --> |
| 123 <target name="-do-debug" |
| 124 depends="-set-debug-mode, -debug-obfuscation-check, -package, -post-packag
e"> |
| 125 <!-- only create apk if *not* a library project --> |
| 126 <do-only-if-not-library elseText="Library project: do not create apk..." > |
| 127 <sequential> |
| 128 <!-- Signs the APK --> |
| 129 <echo level="info">Signing final apk...</echo> |
| 130 <signapk |
| 131 input="${out.packaged.file}" |
| 132 output="${out.unaligned.file}" |
| 133 keystore="${key.store}" |
| 134 storepass="${key.store.password}" |
| 135 alias="${key.alias}" |
| 136 keypass="${key.alias.password}"/> |
| 137 |
| 138 <!-- Zip aligns the APK --> |
| 139 <zipalign-helper |
| 140 in.package="${out.unaligned.file}" |
| 141 out.package="${out.final.file}" /> |
| 142 <echo level="info">Release Package: ${out.final.file}</echo> |
| 143 </sequential> |
| 144 </do-only-if-not-library> |
| 145 <record-build-info /> |
| 146 </target> |
97 </project> | 147 </project> |
OLD | NEW |