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="AndroidWebViewTest" default="debug" basedir="."> | 7 <project name="AndroidWebViewTest" default="debug" basedir="."> |
8 | 8 |
9 <description> | 9 <description> |
10 Building AndroidWebViewTest.apk | 10 Building AndroidWebViewTest.apk |
11 </description> | 11 </description> |
12 | |
13 <import file="../../build/android/ant/common.xml"/> | 12 <import file="../../build/android/ant/common.xml"/> |
14 | 13 |
15 <property name="target.abi" value="${APP_ABI}"/> | 14 <property-value name="target.abi" value="${APP_ABI}"/> |
16 <property name="out.dir" location="${PRODUCT_DIR}/android_webview_test"/> | 15 <property-location name="out.dir" location="${PRODUCT_DIR}/android_webview_tes
t" |
17 <property name="resource.absolute.dir" value="../res"/> | 16 check-exists="false"/> |
| 17 <property name="resource.absolute.dir" value="${RESOURCE_DIR}"/> |
18 <property name="gen.absolute.dir" value="${out.dir}/gen"/> | 18 <property name="gen.absolute.dir" value="${out.dir}/gen"/> |
19 <property name="native.libs.absolute.dir" location="${out.dir}/libs" /> | 19 <property name="native.libs.absolute.dir" location="${out.dir}/libs"/> |
20 <property name="asset.absolute.dir" location="${out.dir}/assets" /> | 20 <property name="asset.absolute.dir" location="${out.dir}/assets"/> |
| 21 <!-- Set the output directory for the final apk to the ${apks.dir}. --> |
| 22 <property-location name="out.final.file" |
| 23 location="${apks.dir}/${ant.project.name}-debug.apk" |
| 24 check-exists="false"/> |
| 25 <property name="generate.test.jar" value="true"/> |
21 | 26 |
22 <path id="out.dex.jar.input.ref"> | 27 <path id="out.dex.jar.input.ref"> |
23 <fileset dir="${PRODUCT_DIR}/android_webview_test/java/libs"/> | 28 <filelist files="${INPUT_JARS_PATHS}"/> |
24 </path> | 29 </path> |
25 <property name="java.compilerargs" value="-classpath ${toString:out.dex.jar.in
put.ref}"/> | |
26 | |
27 <!-- We expect PRODUCT_DIR to be set like the gyp var | |
28 (e.g. $ROOT/out/Debug) --> | |
29 <fail message="PRODUCT_DIR env var not set?"> | |
30 <condition> | |
31 <not> | |
32 <isset property="PRODUCT_DIR"/> | |
33 </not> | |
34 </condition> | |
35 </fail> | |
36 | |
37 <target name="-post-compile"> | |
38 <!-- We also want a .jar as well as an .apk for AndroidWebViewTest-debug | |
39 so that proguard can be used to list the tests by annotation. --> | |
40 <jar destfile="${out.dir}/${ant.project.name}-debug.jar"> | |
41 <fileset dir="${out.dir}/classes" includes="**/*.class"/> | |
42 <zipfileset | |
43 includes="**/*.class" | |
44 src="${PRODUCT_DIR}/android_webview/java/libs/chromium_android_webview_
javatests.jar"/> | |
45 </jar> | |
46 | |
47 </target> | |
48 | 30 |
49 <!-- Classpath for javac --> | 31 <!-- Classpath for javac --> |
50 <path id="javac.custom.classpath"> | 32 <path id="javac.custom.classpath"> |
51 <path refid="out.dex.jar.input.ref"/> | 33 <path refid="out.dex.jar.input.ref"/> |
52 </path> | 34 </path> |
| 35 |
53 <import file="../../build/android/ant/sdk-targets.xml"/> | 36 <import file="../../build/android/ant/sdk-targets.xml"/> |
54 <import file="${sdk.dir}/tools/ant/build.xml" /> | 37 <import file="${sdk.dir}/tools/ant/build.xml"/> |
55 | |
56 </project> | 38 </project> |
OLD | NEW |