aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Gaston <jeffrygaston@google.com>2017-06-26 17:33:59 -0700
committerJeff Gaston <jeffrygaston@google.com>2017-06-27 14:23:57 -0700
commit538809f567aed4d19e14bdb4a4e867d48ccf1b86 (patch)
tree93d8a6930e17119e6dec179c14ae7cb4fad959b0
parentbbe2e9a9b2c9f829bc5e906c218244205c5bfbab (diff)
downloadjacoco-538809f567aed4d19e14bdb4a4e867d48ccf1b86.tar.gz
Copy jacoco-cli into dist directory
Test: m -j ANDROID_COMPILE_WITH_JACK=false EMMA_INSTRUMENT=true dist && stat out/dist/jacoco-cli.jar Bug: 36792868 Change-Id: Ifa3a235a09ee586109e6fa7fa1df5045d870ab8b
-rw-r--r--Android.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index 1804e6df..5ba54801 100644
--- a/Android.mk
+++ b/Android.mk
@@ -68,6 +68,13 @@ LOCAL_STATIC_JAVA_LIBRARIES := jacoco-asm-host args4j-2.0.28
include $(BUILD_HOST_JAVA_LIBRARY)
+# include jacoco-cli in the dist directory to enable running it to generate a code-coverage report
+ifeq ($(ANDROID_COMPILE_WITH_JACK),false)
+ifeq ($(EMMA_INSTRUMENT),true)
+$(call dist-for-goals, dist_files, $(LOCAL_INSTALLED_MODULE))
+endif
+endif
+
#
# Build asm-5.0.1 as a static library for the device