forked from openkylin/platform_build
Merge "Update code coverage filtering"
am: cb49804
* commit 'cb49804e06adab2882bbcd15230b188f4977eb5a':
Update code coverage filtering
Change-Id: Ia7f5f6a659cea62553865bb1030bc76e48c99b57
This commit is contained in:
commit
e0f8435306
|
@ -109,6 +109,8 @@ LOCAL_ALLOW_UNDEFINED_SYMBOLS:=
|
|||
# full or incremental
|
||||
LOCAL_JACK_ENABLED:=full
|
||||
LOCAL_JACK_FLAGS:=
|
||||
LOCAL_JACK_COVERAGE_INCLUDE_FILTER:=
|
||||
LOCAL_JACK_COVERAGE_EXCLUDE_FILTER:=
|
||||
LOCAL_CERTIFICATE:=
|
||||
LOCAL_SDK_VERSION:=
|
||||
LOCAL_SDK_RES_VERSION:=
|
||||
|
|
|
@ -638,9 +638,11 @@ $(built_dex_intermediate): PRIVATE_CLASSES_JACK := $(full_classes_jack)
|
|||
|
||||
ifeq ($(LOCAL_EMMA_INSTRUMENT),true)
|
||||
$(built_dex_intermediate): PRIVATE_JACK_COVERAGE_OPTIONS := \
|
||||
-D jack.coverage="true" \
|
||||
-D jack.coverage=true \
|
||||
-D jack.coverage.metadata.file=$(intermediates.COMMON)/coverage.em \
|
||||
-D jack.coverage.jacoco.package=$(JACOCO_PACKAGE_NAME)
|
||||
-D jack.coverage.jacoco.package=$(JACOCO_PACKAGE_NAME) \
|
||||
$(addprefix -D jack.coverage.jacoco.include=,$(LOCAL_JACK_COVERAGE_INCLUDE_FILTER)) \
|
||||
$(addprefix -D jack.coverage.jacoco.exclude=,$(LOCAL_JACK_COVERAGE_EXCLUDE_FILTER))
|
||||
else
|
||||
$(built_dex_intermediate): PRIVATE_JACK_COVERAGE_OPTIONS :=
|
||||
endif
|
||||
|
|
Loading…
Reference in New Issue