am e4662db1
: am 62f03479
: Merge "Use new flag for emma instrumented build and limit to apps only" into jb-mr1-dev
* commit 'e4662db1601c189e920637a5d9efbb175edefb74': Use new flag for emma instrumented build and limit to apps only
This commit is contained in:
commit
b864620faf
1 changed files with 15 additions and 0 deletions
15
core/java.mk
15
core/java.mk
|
@ -76,6 +76,21 @@ intermediates := $(call local-intermediates-dir)
|
|||
intermediates.COMMON := $(call local-intermediates-dir,COMMON)
|
||||
|
||||
# Emma source code coverage
|
||||
ifeq ($(EMMA_FULL_APP_INSTRUMENT),true)
|
||||
# doing a full emma instrument here, i.e. all app packages instrumented
|
||||
EMMA_INSTRUMENT := true
|
||||
# do not instrument modules that are not app packages
|
||||
ifneq ($(LOCAL_MODULE_CLASS),APPS)
|
||||
LOCAL_NO_EMMA_INSTRUMENT := true
|
||||
LOCAL_NO_EMMA_COMPILE := true
|
||||
endif
|
||||
# do not instrument modules that are marked tests
|
||||
ifeq ($(LOCAL_MODULE_TAGS),tests)
|
||||
LOCAL_NO_EMMA_INSTRUMENT := true
|
||||
LOCAL_NO_EMMA_COMPILE := true
|
||||
endif
|
||||
endif
|
||||
|
||||
ifneq ($(EMMA_INSTRUMENT),true)
|
||||
LOCAL_NO_EMMA_INSTRUMENT := true
|
||||
LOCAL_NO_EMMA_COMPILE := true
|
||||
|
|
Loading…
Reference in a new issue