Install JNI coverage outputs from Soong-built apps

This is a cherry-pick change.

Test: Built mainline module coverage data
Bug: 152117890
Change-Id: Ibb809c3e8b599b467c7176e750e0b78a5bfee38e
Merged-In: Ibb809c3e8b599b467c7176e750e0b78a5bfee38e
This commit is contained in:
Jaewoong Jung 2020-03-26 15:45:44 -07:00
parent cc464a4cdb
commit 7c1432ce8a

View file

@ -202,4 +202,11 @@ ifdef LOCAL_SOONG_PRODUCT_RRO_DIRS
)
endif
ifdef LOCAL_PREBUILT_COVERAGE_ARCHIVE
my_coverage_dir := $(TARGET_OUT_COVERAGE)/$(patsubst $(PRODUCT_OUT)/%,%,$(my_module_path))
my_coverage_copy_pairs := $(foreach f,$(LOCAL_PREBUILT_COVERAGE_ARCHIVE),$(f):$(my_coverage_dir)/$(notdir $(f)))
my_coverage_files := $(call copy-many-files,$(my_coverage_copy_pairs))
$(LOCAL_INSTALLED_MODULE): $(my_coverage_files)
endif
SOONG_ALREADY_CONV := $(SOONG_ALREADY_CONV) $(LOCAL_MODULE)