Chromium Code Reviews| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 88 <filter excludes="${emma.default.filter}"/> | 88 <filter excludes="${emma.default.filter}"/> |
| 89 <filter value="${emma.filter}"/> | 89 <filter value="${emma.filter}"/> |
| 90 </instr> | 90 </instr> |
| 91 </emma> | 91 </emma> |
| 92 </then> | 92 </then> |
| 93 </if> | 93 </if> |
| 94 <!-- | 94 <!-- |
| 95 If the project needs a test jar then generate a jar containing | 95 If the project needs a test jar then generate a jar containing |
| 96 all compiled classes and referenced jars. | 96 all compiled classes and referenced jars. |
| 97 --> | 97 --> |
| 98 <if condition="${generate.test.jar}"> | 98 <if condition="${project.is.testapp}"> |
| 99 <then> | 99 <then> |
| 100 <echo level="info">Creating test jar file: | 100 <echo level="info">Creating test jar file: |
| 101 ${ant.project.name}-debug.jar</echo> | 101 ${ant.project.name}-debug.jar</echo> |
| 102 <property-location name="create.test.jar.file" | 102 <property-location name="create.test.jar.file" |
| 103 location="${CHROMIUM_SRC}/build/android/ant/create-test-jar.js"/> | 103 location="${CHROMIUM_SRC}/build/android/ant/create-test-jar.js"/> |
| 104 <script language="javascript" src="${create.test.jar.file}"/> | 104 <script language="javascript" src="${create.test.jar.file}"/> |
| 105 </then> | 105 </then> |
| 106 </if> | 106 </if> |
| 107 | 107 |
| 108 </do-only-if-manifest-hasCode> | 108 </do-only-if-manifest-hasCode> |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 150 | 150 |
| 151 <!-- Zip aligns the APK --> | 151 <!-- Zip aligns the APK --> |
| 152 <zipalign-helper | 152 <zipalign-helper |
| 153 in.package="${out.unaligned.file}" | 153 in.package="${out.unaligned.file}" |
| 154 out.package="${out.final.file}" /> | 154 out.package="${out.final.file}" /> |
| 155 <echo level="info">Release Package: ${out.final.file}</echo> | 155 <echo level="info">Release Package: ${out.final.file}</echo> |
| 156 </sequential> | 156 </sequential> |
| 157 </do-only-if-not-library> | 157 </do-only-if-not-library> |
| 158 <record-build-info /> | 158 <record-build-info /> |
| 159 </target> | 159 </target> |
| 160 | |
| 161 <path id="native.libs.gdbserver"> | |
| 162 <fileset file="${android.gdbserver}"/> | |
| 163 </path> | |
| 164 | |
| 165 <target name="-post-compile"> | |
| 166 <!-- | |
| 167 Copy gdbserver to main libs directory if building a not-test debug apk. | |
| 168 TODO(jrg): for now, Chrome on Android always builds native code | |
| 169 as Release and java/ant as Debug, which means we always install | |
| 170 gdbserver. Resolve this discrepancy, possibly by making this | |
| 171 Release Official build java/ant as Release. | |
| 172 --> | |
| 173 <if> | |
| 174 <condition> | |
| 175 <and> | |
| 176 <equals arg1="${build.target}" arg2="debug"/> | |
| 177 <isfalse value="${project.is.testapp}"/> | |
|
shashi
2012/09/21 01:53:55
It may be cleaner to use a different property, lik
Yaron
2012/09/21 01:57:01
Where is this ever set?
cjhopman
2012/09/28 01:14:25
This is set by Android's build.xml based upon the
cjhopman
2012/09/28 01:14:25
A testapp should only be testing against the java
| |
| 178 </and> | |
| 179 </condition> | |
| 180 <then> | |
| 181 <echo message="Copying gdbserver to the apk to enable native debugging"/ > | |
| 182 <copy todir="${out.dir}/libs/${target.abi}"> | |
| 183 <path refid="native.libs.gdbserver"/> | |
| 184 </copy> | |
| 185 </then> | |
| 186 </if> | |
| 187 | |
| 188 <!-- Package all the compiled .class files into a .jar. --> | |
| 189 <jar | |
| 190 jarfile="${lib.java.dir}/chromium_${PACKAGE_NAME}.jar" | |
| 191 basedir="${out.classes.absolute.dir}" | |
| 192 /> | |
| 193 </target> | |
| 160 </project> | 194 </project> |
| OLD | NEW |