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 16 matching lines...) Expand all Loading... | |
| 27 <!-- | 27 <!-- |
| 28 Override the -compile target. | 28 Override the -compile target. |
| 29 This target requires 'javac.custom.classpath' to be set to reference | 29 This target requires 'javac.custom.classpath' to be set to reference |
| 30 of classpath to be used for javac. Also accepts custom path for | 30 of classpath to be used for javac. Also accepts custom path for |
| 31 sources: 'javac.custom.sourcepath'. | 31 sources: 'javac.custom.sourcepath'. |
| 32 --> | 32 --> |
| 33 <target | 33 <target |
| 34 name="-compile" | 34 name="-compile" |
| 35 depends="-build-setup, -pre-build, -code-gen, -pre-compile"> | 35 depends="-build-setup, -pre-build, -code-gen, -pre-compile"> |
| 36 <do-only-if-manifest-hasCode elseText="hasCode = false. Skipping..." > | 36 <do-only-if-manifest-hasCode elseText="hasCode = false. Skipping..." > |
| 37 <!-- If souce path is not set, then use the default value --> | 37 <!-- If javac.srcdirs.additional isn't set, set it to an empty path. --> |
| 38 <if> | 38 <if> |
| 39 <condition> | 39 <condition> |
| 40 <not> | 40 <not> |
| 41 <isreference refid="javac.custom.sourcepath"/> | 41 <isreference refid="javac.srcdirs.additional"/> |
| 42 </not> | 42 </not> |
| 43 </condition> | 43 </condition> |
| 44 <then> | 44 <then> |
| 45 <path id="javac.custom.sourcepath"> | 45 <path id="javac.srcdirs.additional"> |
| 46 <pathelement path="${source.absolute.dir}"/> | 46 <pathelement path="${source.absolute.dir}"/> |
| 47 <pathelement path="${gen.absolute.dir}"/> | 47 <pathelement path="${gen.absolute.dir}"/> |
| 48 </path> | 48 </path> |
| 49 </then> | 49 </then> |
| 50 </if> | 50 </if> |
| 51 <javac | 51 <javac |
| 52 bootclasspathref="project.target.class.path" | 52 bootclasspathref="project.target.class.path" |
| 53 classpathref="javac.custom.classpath" | 53 classpathref="javac.custom.classpath" |
| 54 debug="true" | 54 debug="true" |
| 55 destdir="${out.classes.absolute.dir}" | 55 destdir="${out.classes.absolute.dir}" |
| 56 encoding="${java.encoding}" | 56 encoding="${java.encoding}" |
| 57 extdirs="" | 57 extdirs="" |
| 58 fork="${need.javac.fork}" | 58 fork="${need.javac.fork}" |
| 59 includeantruntime="false" | 59 includeantruntime="false" |
| 60 source="${java.source}" | 60 source="${java.source}" |
| 61 target="${java.target}" | 61 target="${java.target}" |
| 62 verbose="${verbose}"> | 62 verbose="${verbose}"> |
| 63 <src path="${source.absolute.dir}"/> | 63 <src path="${source.absolute.dir}"/> |
| 64 <src path="${gen.absolute.dir}"/> | 64 <src path="${gen.absolute.dir}"/> |
| 65 <src> | 65 <src> |
| 66 <path refid="javac.custom.sourcepath"/> | 66 <path refid="javac.srcdirs.additional"/> |
| 67 </src> | 67 </src> |
| 68 <compilerarg line="${java.compilerargs}"/> | 68 <compilerarg line="${java.compilerargs}"/> |
| 69 </javac> | 69 </javac> |
| 70 <!-- | 70 <!-- |
| 71 If the project is instrumented, then instrument the classes | 71 If the project is instrumented, then instrument the classes |
| 72 TODO(shashishekhar): Add option to override emma filter. | 72 TODO(shashishekhar): Add option to override emma filter. |
| 73 --> | 73 --> |
| 74 <if condition="${build.is.instrumented}"> | 74 <if condition="${build.is.instrumented}"> |
| 75 <then> | 75 <then> |
| 76 <echo level="info"> | 76 <echo level="info"> |
| (...skipping 22 matching lines...) Expand all Loading... | |
| 99 <filter excludes="${emma.default.filter}"/> | 99 <filter excludes="${emma.default.filter}"/> |
| 100 <filter value="${emma.filter}"/> | 100 <filter value="${emma.filter}"/> |
| 101 </instr> | 101 </instr> |
| 102 </emma> | 102 </emma> |
| 103 </then> | 103 </then> |
| 104 </if> | 104 </if> |
| 105 <!-- | 105 <!-- |
| 106 If the project needs a test jar then generate a jar containing | 106 If the project needs a test jar then generate a jar containing |
| 107 all compiled classes and referenced jars. | 107 all compiled classes and referenced jars. |
| 108 --> | 108 --> |
| 109 <if condition="${generate.test.jar}"> | 109 <if condition="${project.is.testapp}"> |
|
Yaron
2012/09/28 17:51:23
Please add a comment about where this is set becau
cjhopman
2012/09/28 18:13:58
Done.
| |
| 110 <then> | 110 <then> |
| 111 <echo level="info">Creating test jar file: | 111 <echo level="info">Creating test jar file: |
| 112 ${ant.project.name}-debug.jar</echo> | 112 ${ant.project.name}-debug.jar</echo> |
| 113 <property-location name="create.test.jar.file" | 113 <property-location name="create.test.jar.file" |
| 114 location="${CHROMIUM_SRC}/build/android/ant/create-test-jar.js"/> | 114 location="${CHROMIUM_SRC}/build/android/ant/create-test-jar.js"/> |
| 115 <script language="javascript" src="${create.test.jar.file}"/> | 115 <script language="javascript" src="${create.test.jar.file}"/> |
| 116 </then> | 116 </then> |
| 117 </if> | 117 </if> |
| 118 | 118 |
| 119 </do-only-if-manifest-hasCode> | 119 </do-only-if-manifest-hasCode> |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 161 | 161 |
| 162 <!-- Zip aligns the APK --> | 162 <!-- Zip aligns the APK --> |
| 163 <zipalign-helper | 163 <zipalign-helper |
| 164 in.package="${out.unaligned.file}" | 164 in.package="${out.unaligned.file}" |
| 165 out.package="${out.final.file}" /> | 165 out.package="${out.final.file}" /> |
| 166 <echo level="info">Release Package: ${out.final.file}</echo> | 166 <echo level="info">Release Package: ${out.final.file}</echo> |
| 167 </sequential> | 167 </sequential> |
| 168 </do-only-if-not-library> | 168 </do-only-if-not-library> |
| 169 <record-build-info /> | 169 <record-build-info /> |
| 170 </target> | 170 </target> |
| 171 | |
| 172 <path id="native.libs.gdbserver"> | |
| 173 <fileset file="${android.gdbserver}"/> | |
| 174 </path> | |
| 175 | |
| 176 <target name="-post-compile"> | |
| 177 <!-- | |
| 178 Copy gdbserver to main libs directory if building a non-instrumentation de bug apk. | |
| 179 TODO(jrg): For now, Chrome on Android always builds native code | |
| 180 as Release and java/ant as Debug, which means we always install | |
| 181 gdbserver. Resolve this discrepancy, possibly by making this | |
| 182 Release Official build java/ant as Release. | |
| 183 --> | |
| 184 <if> | |
| 185 <condition> | |
| 186 <and> | |
| 187 <equals arg1="${build.target}" arg2="debug"/> | |
| 188 <isfalse value="${project.is.testapp}"/> | |
| 189 </and> | |
| 190 </condition> | |
| 191 <then> | |
| 192 <echo message="Copying gdbserver to the apk to enable native debugging"/ > | |
| 193 <copy todir="${out.dir}/libs/${target.abi}"> | |
| 194 <path refid="native.libs.gdbserver"/> | |
| 195 </copy> | |
| 196 </then> | |
| 197 </if> | |
| 198 | |
| 199 <!-- Package all the compiled .class files into a .jar. --> | |
| 200 <jar | |
| 201 jarfile="${lib.java.dir}/chromium_${PACKAGE_NAME}.jar" | |
| 202 basedir="${out.classes.absolute.dir}" | |
| 203 /> | |
| 204 </target> | |
| 171 </project> | 205 </project> |
| OLD | NEW |