OSDN Git Service

Fix code coverage for apps
authorSebastien Hertz <shertz@google.com>
Thu, 31 Mar 2016 14:48:26 +0000 (16:48 +0200)
committerSebastien Hertz <shertz@google.com>
Thu, 31 Mar 2016 16:33:57 +0000 (18:33 +0200)
commitd9641e01f300ffc359a034a3e897fd8ada78237a
tree115fee929850f2a991a619a622b57bc280bc46dc
parent301d5955dabf12b6b0e0610cae5f87231f0dc1f1
Fix code coverage for apps

When building apps with EMMA_INSTRUMENT=true, we must ensure that
jacoco is at least on the classpath (or even embedded for unbundled
branches) and that proguard will ignore jacoco classes. Otherwise
the Jack compilation would fail.

For unbundled build, we include the proguard configuration file
build/core/proguard.jacoco.flags to ignore jacoco classes.

For full build, we ensure jacoco is on the classpath during the
jack compilation.

Bug: 27607712
Change-Id: I0ad37d74e63028a8144a125f052dc1c5fa10fc66
core/package_internal.mk