Merge "Warn about the use of COVERAGE_PATHS and COVERAGE_EXCLUDE_PATHS." am: 4a203a6326 am: 053e972a22 am: 02a69dade0

Original change: https://android-review.googlesource.com/c/platform/build/+/1328973

Change-Id: I68bae3a334b8aa3d56bf70f1ccf531403e55e581
This commit is contained in:
Roland Levillain
2020-06-24 11:16:17 +00:00
committed by Automerger Merge Worker

View File

@@ -104,6 +104,15 @@ ifeq (true,$(EMMA_INSTRUMENT_STATIC))
EMMA_INSTRUMENT := true EMMA_INSTRUMENT := true
endif endif
# TODO(b/158212027): Turn this into an error when all users have been moved to
# `NATIVE_COVERAGE_PATHS` and `NATIVE_COVERAGE_EXCLUDE_PATHS`.
ifneq ($(COVERAGE_PATHS),)
$(warning Variable COVERAGE_PATHS is deprecated. Please use NATIVE_COVERAGE_PATHS instead.)
endif
ifneq ($(COVERAGE_EXCLUDE_PATHS),)
$(warning Variable COVERAGE_EXCLUDE_PATHS is deprecated. Please use NATIVE_COVERAGE_EXCLUDE_PATHS instead.)
endif
ifeq (true,$(EMMA_INSTRUMENT)) ifeq (true,$(EMMA_INSTRUMENT))
# Adding the jacoco library can cause the inclusion of # Adding the jacoco library can cause the inclusion of
# some typically banned classes # some typically banned classes