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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 </if> | 101 </if> |
102 <!-- | 102 <!-- |
103 If the project needs a test jar then generate a jar containing | 103 If the project needs a test jar then generate a jar containing |
104 all compiled classes and referenced jars. | 104 all compiled classes and referenced jars. |
105 project.is.testapp is set by Android's ant build system based on the | 105 project.is.testapp is set by Android's ant build system based on the |
106 target's manifest. It is true only for instrumentation apks. | 106 target's manifest. It is true only for instrumentation apks. |
107 --> | 107 --> |
108 <if condition="${project.is.testapp}"> | 108 <if condition="${project.is.testapp}"> |
109 <then> | 109 <then> |
110 <echo level="info">Creating test jar file: | 110 <echo level="info">Creating test jar file: |
111 ${ant.project.name}-debug.jar</echo> | 111 ${ant.project.name}.jar</echo> |
112 <property-location name="create.test.jar.file" | 112 <property-location name="create.test.jar.file" |
113 location="${CHROMIUM_SRC}/build/android/ant/create-test-jar.js"/> | 113 location="${CHROMIUM_SRC}/build/android/ant/create-test-jar.js"/> |
114 <script language="javascript" src="${create.test.jar.file}"/> | 114 <script language="javascript" src="${create.test.jar.file}"/> |
115 </then> | 115 </then> |
116 </if> | 116 </if> |
117 | 117 |
118 </do-only-if-manifest-hasCode> | 118 </do-only-if-manifest-hasCode> |
119 </target> | 119 </target> |
120 | 120 |
121 <!-- | 121 <!-- |
122 For debug builds, the Android SDK tools create a key in ~/.android and sign
the build with it. | 122 For debug builds, the Android SDK tools create a key in ~/.android and sign
the build with it. |
123 This has caused all kinds of issues. Instead, the debug build should be sign
ed with a key in | 123 This has caused all kinds of issues. Instead, the debug build should be sign
ed with a key in |
124 build/android/ant. The SDK tools do not provide any support for overriding t
hat behavior and so | 124 build/android/ant. The SDK tools do not provide any support for overriding t
hat behavior and so |
125 instead one must use the hack below. | 125 instead one must use the hack below. |
126 --> | 126 --> |
127 | 127 |
128 <!-- Disables automatic signing. --> | 128 <!-- Disables automatic signing. --> |
129 <property name="build.is.signing.debug" value="false"/> | 129 <property name="build.is.signing.debug" value="false"/> |
130 | 130 |
131 <!-- TODO(cjhopman): Remove this property when all gyp files define the CHROMI
UM_SRC property. --> | 131 <!-- TODO(cjhopman): Remove this property when all gyp files define the CHROMI
UM_SRC property. --> |
132 <property name="CHROMIUM_SRC" value="${PRODUCT_DIR}/../.." /> | 132 <property name="CHROMIUM_SRC" value="${PRODUCT_DIR}/../.." /> |
133 | 133 |
134 <property name="key.store" value="${CHROMIUM_SRC}/build/android/ant/chromium-d
ebug.keystore"/> | 134 <property name="key.store" value="${CHROMIUM_SRC}/build/android/ant/chromium-d
ebug.keystore"/> |
135 <property name="key.store.password" value="chromium"/> | 135 <property name="key.store.password" value="chromium"/> |
136 <property name="key.alias" value="chromiumdebugkey"/> | 136 <property name="key.alias" value="chromiumdebugkey"/> |
137 <property name="key.alias.password" value="chromium"/> | 137 <property name="key.alias.password" value="chromium"/> |
138 | 138 |
139 <!-- SDK tools assume that out.packaged.file is signed and name it "...-unalig
ned" --> | 139 <!-- SDK tools assume that out.packaged.file is signed and name it "...-unalig
ned" --> |
140 <property name="out.packaged.file" | 140 <property name="out.packaged.file" |
141 value="${apks.dir}/${ant.project.name}-debug-unsigned.apk" /> | 141 value="${apks.dir}/${ant.project.name}-unsigned.apk" /> |
142 <property name="out.unaligned.file" | 142 <property name="out.unaligned.file" |
143 value="${apks.dir}/${ant.project.name}-debug-unaligned.apk" /> | 143 value="${apks.dir}/${ant.project.name}-unaligned.apk" /> |
144 | 144 |
145 <!-- By default, the SDK tools build only aligns the APK in the -do-debug targ
et. --> | 145 <!-- By default, the SDK tools build only aligns the APK in the -do-debug targ
et. --> |
146 <target name="-do-debug" | 146 <target name="-do-debug" |
147 depends="-set-debug-mode, -debug-obfuscation-check, -package, -post-packag
e"> | 147 depends="-set-debug-mode, -debug-obfuscation-check, -package, -post-packag
e"> |
148 <!-- only create apk if *not* a library project --> | 148 <!-- only create apk if *not* a library project --> |
149 <do-only-if-not-library elseText="Library project: do not create apk..." > | 149 <do-only-if-not-library elseText="Library project: do not create apk..." > |
150 <sequential> | 150 <sequential> |
151 <!-- Signs the APK --> | 151 <!-- Signs the APK --> |
152 <echo level="info">Signing final apk...</echo> | 152 <echo level="info">Signing final apk...</echo> |
153 <signapk | 153 <signapk |
(...skipping 14 matching lines...) Expand all Loading... |
168 <record-build-info /> | 168 <record-build-info /> |
169 </target> | 169 </target> |
170 | 170 |
171 <path id="native.libs.gdbserver"> | 171 <path id="native.libs.gdbserver"> |
172 <fileset file="${android.gdbserver}"/> | 172 <fileset file="${android.gdbserver}"/> |
173 </path> | 173 </path> |
174 | 174 |
175 <target name="-post-compile"> | 175 <target name="-post-compile"> |
176 <!-- | 176 <!-- |
177 Copy gdbserver to main libs directory if building a non-instrumentation de
bug apk. | 177 Copy gdbserver to main libs directory if building a non-instrumentation de
bug apk. |
178 TODO(jrg): For now, Chrome on Android always builds native code | |
179 as Release and java/ant as Debug, which means we always install | |
180 gdbserver. Resolve this discrepancy, possibly by making this | |
181 Release Official build java/ant as Release. | |
182 --> | 178 --> |
183 <if> | 179 <if> |
184 <condition> | 180 <condition> |
185 <and> | 181 <and> |
186 <equals arg1="${build.target}" arg2="debug"/> | 182 <equals arg1="${build.target}" arg2="debug"/> |
187 <isfalse value="${project.is.testapp}"/> | 183 <isfalse value="${project.is.testapp}"/> |
188 </and> | 184 </and> |
189 </condition> | 185 </condition> |
190 <then> | 186 <then> |
191 <echo message="Copying gdbserver to the apk to enable native debugging"/
> | 187 <echo message="Copying gdbserver to the apk to enable native debugging"/
> |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 -libraryjars ${project.target.classpath.value} | 271 -libraryjars ${project.target.classpath.value} |
276 -dump "${obfuscate.absolute.dir}/dump.txt" | 272 -dump "${obfuscate.absolute.dir}/dump.txt" |
277 -printseeds "${obfuscate.absolute.dir}/seeds.txt" | 273 -printseeds "${obfuscate.absolute.dir}/seeds.txt" |
278 -printusage "${obfuscate.absolute.dir}/usage.txt" | 274 -printusage "${obfuscate.absolute.dir}/usage.txt" |
279 -printmapping "${obfuscate.absolute.dir}/mapping.txt" | 275 -printmapping "${obfuscate.absolute.dir}/mapping.txt" |
280 </proguard> | 276 </proguard> |
281 </then> | 277 </then> |
282 </if> | 278 </if> |
283 </target> | 279 </target> |
284 </project> | 280 </project> |
OLD | NEW |