Merge "Add device-tests as a dep of JACOCO_REPORT_CLASSES_ALL." into udc-dev am: c31092cbb0 am: 0b2d944d93

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

Change-Id: Ic875c9a4ae22c96c35e8f2de2f1cf6570a93aad2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Yu Liu 2023-08-16 22:34:43 +00:00 committed by Automerger Merge Worker
commit 421f5836b7

View file

@ -6588,6 +6588,14 @@ $(JACOCO_REPORT_CLASSES_ALL) :
ifeq (,$(TARGET_BUILD_UNBUNDLED))
$(JACOCO_REPORT_CLASSES_ALL): $(INTERNAL_ALLIMAGES_FILES)
endif
# This is not ideal, but it is difficult to correctly figure out the actual jacoco report
# jars we need to add here as dependencies, so we add the device-tests as a dependency when
# the env variable is set and this should guarantee thaat all the jacoco report jars are ready
# when we package the final report jar here.
ifeq ($(JACOCO_PACKAGING_INCLUDE_DEVICE_TESTS),true)
$(JACOCO_REPORT_CLASSES_ALL): $(COMPATIBILITY.device-tests.FILES)
endif
endif # EMMA_INSTRUMENT=true