OLD | NEW |
(Empty) | |
| 1 <?xml version="1.0" encoding="UTF-8"?> |
| 2 <!-- |
| 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 |
| 5 found in the LICENSE file. |
| 6 --> |
| 7 <project name="AndroidWebViewTest" default="debug" basedir="."> |
| 8 |
| 9 <description> |
| 10 Building AndroidWebViewTest.apk |
| 11 </description> |
| 12 |
| 13 <import file="../../build/android/ant/common.xml"/> |
| 14 <import file="../../build/android/ant/sdk-targets.xml"/> |
| 15 <property name="target.abi" value="${APP_ABI}"/> |
| 16 <property name="out.dir" location="${PRODUCT_DIR}/android_webview_test"/> |
| 17 <property name="resource.absolute.dir" value="../res"/> |
| 18 <property name="gen.absolute.dir" value="${out.dir}/gen"/> |
| 19 <property name="native.libs.absolute.dir" location="${out.dir}/libs" /> |
| 20 <property name="asset.absolute.dir" location="${out.dir}/assets" /> |
| 21 |
| 22 <path id="out.dex.jar.input.ref"> |
| 23 <fileset dir="${PRODUCT_DIR}/android_webview_test/java/libs"/> |
| 24 </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 |
| 49 <!-- Classpath for javac --> |
| 50 <path id="javac.custom.classpath"> |
| 51 <path refid="out.dex.jar.input.ref"/> |
| 52 </path> |
| 53 <import file="${sdk.dir}/tools/ant/build.xml" /> |
| 54 |
| 55 </project> |
OLD | NEW |