| 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="ContentShellTest" default="debug" basedir="."> | 7 <project name="ChromiumTestShellTest" default="debug" basedir="."> |
| 8 | 8 |
| 9 <description> | 9 <description> |
| 10 Building ContentShellTest.apk | 10 Building ChromiumTestShellTest.apk |
| 11 </description> | 11 </description> |
| 12 | 12 |
| 13 <import file="../../../../build/android/ant/common.xml"/> | 13 <import file="../../../../build/android/ant/common.xml"/> |
| 14 | 14 |
| 15 <property name="target.abi" value="${APP_ABI}"/> | 15 <property name="target.abi" value="${APP_ABI}"/> |
| 16 <property name="out.dir" location="${PRODUCT_DIR}/content_shell_test"/> | 16 <property name="out.dir" location="${PRODUCT_DIR}/chromium_testshell_test"/> |
| 17 <property name="resource.absolute.dir" value="../res"/> | 17 <property name="resource.absolute.dir" value="../res"/> |
| 18 <property name="gen.absolute.dir" value="${out.dir}/gen"/> | 18 <property name="gen.absolute.dir" value="${out.dir}/gen"/> |
| 19 <path id="native.libs.gdbserver"> | 19 <path id="native.libs.gdbserver"> |
| 20 <fileset file="${android.gdbserver}"/> | 20 <fileset file="${android.gdbserver}"/> |
| 21 </path> | 21 </path> |
| 22 <property name="native.libs.absolute.dir" location="${out.dir}/libs" /> | 22 <property name="native.libs.absolute.dir" location="${out.dir}/libs" /> |
| 23 <property name="asset.absolute.dir" location="${out.dir}/assets" /> | 23 <property name="asset.absolute.dir" location="${out.dir}/assets" /> |
| 24 | 24 |
| 25 <path id="out.dex.jar.input.ref"> | 25 <path id="out.dex.jar.input.ref"> |
| 26 <filelist files="${INPUT_JARS_PATHS}"/> | 26 <filelist files="${INPUT_JARS_PATHS}"/> |
| 27 <pathelement location="${PRODUCT_DIR}/content_shell/classes"/> | 27 <pathelement location="${PRODUCT_DIR}/chromium_testshell/classes"/> |
| 28 </path> | 28 </path> |
| 29 <property name="java.compilerargs" value="-classpath ${toString:out.dex.jar.in
put.ref}"/> | 29 <property name="java.compilerargs" value="-classpath ${toString:out.dex.jar.in
put.ref}"/> |
| 30 | 30 |
| 31 <!-- We expect PRODUCT_DIR to be set like the gyp var | 31 <!-- We expect PRODUCT_DIR to be set like the gyp var |
| 32 (e.g. $ROOT/out/Debug) --> | 32 (e.g. $ROOT/out/Debug) --> |
| 33 <fail message="PRODUCT_DIR env var not set?"> | 33 <fail message="PRODUCT_DIR env var not set?"> |
| 34 <condition> | 34 <condition> |
| 35 <not> | 35 <not> |
| 36 <isset property="PRODUCT_DIR"/> | 36 <isset property="PRODUCT_DIR"/> |
| 37 </not> | 37 </not> |
| (...skipping 11 matching lines...) Expand all Loading... |
| 49 <equals arg1="${build.target}" arg2="debug" /> | 49 <equals arg1="${build.target}" arg2="debug" /> |
| 50 </condition> | 50 </condition> |
| 51 <then> | 51 <then> |
| 52 <echo message="Copying gdbserver to the apk to enable native debugging"/
> | 52 <echo message="Copying gdbserver to the apk to enable native debugging"/
> |
| 53 <copy todir="${out.dir}/libs/${target.abi}"> | 53 <copy todir="${out.dir}/libs/${target.abi}"> |
| 54 <path refid="native.libs.gdbserver"/> | 54 <path refid="native.libs.gdbserver"/> |
| 55 </copy> | 55 </copy> |
| 56 </then> | 56 </then> |
| 57 </if> | 57 </if> |
| 58 | 58 |
| 59 <!-- We also want a .jar as well as an .apk for ContentShellTest-debug | 59 <!-- We also want a .jar as well as an .apk for ChromiumTestShellTest-debug |
| 60 so that proguard can be used to list the tests by annotation. --> | 60 so that proguard can be used to list the tests by annotation. --> |
| 61 <jar destfile="${out.dir}/${ant.project.name}-debug.jar"> | 61 <jar destfile="${out.dir}/${ant.project.name}-debug.jar"> |
| 62 <fileset dir="${out.dir}/classes" includes="**/*.class"/> | 62 <fileset dir="${out.dir}/classes" includes="**/*.class"/> |
| 63 <zipfileset | |
| 64 includes="**/*.class" | |
| 65 src="${PRODUCT_DIR}/lib.java/chromium_content_javatests.jar"/> | |
| 66 <zipfileset | |
| 67 includes="**/*.class" | |
| 68 src="${PRODUCT_DIR}/lib.java/chromium_net_javatests.jar"/> | |
| 69 </jar> | 63 </jar> |
| 70 | 64 |
| 71 </target> | 65 </target> |
| 72 | 66 |
| 73 <!-- Classpath for javac --> | 67 <!-- Classpath for javac --> |
| 74 <path id="javac.custom.classpath"> | 68 <path id="javac.custom.classpath"> |
| 75 <path refid="out.dex.jar.input.ref"/> | 69 <path refid="out.dex.jar.input.ref"/> |
| 76 </path> | 70 </path> |
| 77 <import file="../../../../build/android/ant/sdk-targets.xml"/> | 71 <import file="../../../../build/android/ant/sdk-targets.xml"/> |
| 78 <import file="${sdk.dir}/tools/ant/build.xml" /> | 72 <import file="${sdk.dir}/tools/ant/build.xml" /> |
| 79 | 73 |
| 80 </project> | 74 </project> |
| OLD | NEW |