Copy generated xml file for NDK api coverage to dist when CLANG_COVERAGE flag set.

Test: build/soong/soong_ui.bash --make-mode SKIP_ABI_CHECKS=true TARGET_PRODUCT=aosp_cf_x86_phone TARGET_BUILD_VARIANT=userdebug droid dist DIST_DIR=/usr/local/google/home/sophiez/my_dist_dir EMMA_INSTRUMENT=true EMMA_INSTRUMENT_FRAMEWORK=true CLANG_COVERAGE=true SKIP_BOOT_JARS_CHECK=true tests

Change-Id: I778da9ca7897752274744eca5530412c146fac96
This commit is contained in:
sophiez
2020-06-01 12:18:21 -07:00
parent 0dcb96c204
commit a81ee59b74

View File

@@ -1665,6 +1665,11 @@ else # TARGET_BUILD_APPS
$(call dist-for-goals, dist_files, $(api_xmls))
api_xmls :=
ifdef CLANG_COVERAGE
$(foreach f,$(SOONG_NDK_API_XML), \
$(call dist-for-goals,droidcore,$(f):ndk_coverage_xml_dir/$(notdir $(f))))
endif
# Building a full system-- the default is to build droidcore
droid_targets: droidcore dist_files