Install JNI coverage outputs from Soong-built apps

Test: Built mainline module coverage data
Bug: 152117890
Change-Id: Ibb809c3e8b599b467c7176e750e0b78a5bfee38e
This commit is contained in:
Jaewoong Jung 2020-03-26 15:45:44 -07:00
parent 318db68993
commit e66eaf3602
1 changed files with 7 additions and 0 deletions

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)