Index: build/android/ant/apk-instr.xml |
diff --git a/build/android/ant/apk-instr.xml b/build/android/ant/apk-instr.xml |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e04eba74d09b79426a4ad14d82efec473bc5e01b |
--- /dev/null |
+++ b/build/android/ant/apk-instr.xml |
@@ -0,0 +1,34 @@ |
+<?xml version="1.0" encoding="UTF-8"?> |
+<!-- |
+ Copyright (c) 2013 The Chromium Authors. All rights reserved. |
+ Use of this source code is governed by a BSD-style license that can be |
+ found in the LICENSE file. |
+--> |
+ |
+<project default="-instr"> |
+ <property name="classes.dir" location="${CLASSES_DIR}" /> |
+ <property name="classes.instr.dir" location="${CLASSES_INSTR_DIR}" /> |
+ <property name="sdk.dir" location="${ANDROID_SDK_ROOT}"/> |
+ |
+ <property name="emma.coverage.absolute.file" location="${EMMA_COVERAGE_FILE}" /> |
+ |
+ <!-- jar file from where emma tasks are loaded --> |
+ <path id="emma.antlibs"> |
+ <pathelement path="${sdk.dir}/tools/lib/emma_ant.jar" /> |
+ <pathelement path="${sdk.dir}/tools/lib/emma.jar" /> |
+ </path> |
+ |
+ <taskdef resource="emma_ant.properties" classpathref="emma.antlibs" /> |
+ |
+ <!-- Instruments the output classes for coverage testing. --> |
+ <target name="-instr"> |
+ <emma enabled="true"> |
+ <instr mode="copy" |
+ instrpath="${classes.dir}" |
+ outdir="${classes.instr.dir}" |
+ metadatafile="${emma.coverage.absolute.file}"> |
+ <!-- TODO: Filter things here --> |
+ </instr> |
+ </emma> |
+ </target> |
+</project> |