Merge "Distribute XML formatted API files as part of the coverage build."

am: f2365aa2c5

Change-Id: I91c661d74e617f17553f27a39cb32496dd5acf4c
This commit is contained in:
allenhair 2018-06-21 11:52:01 -07:00 committed by android-build-merger
commit 2e627d5e7d
1 changed files with 10 additions and 0 deletions

View File

@ -1270,6 +1270,16 @@ else # TARGET_BUILD_APPS
ifeq ($(EMMA_INSTRUMENT),true)
$(JACOCO_REPORT_CLASSES_ALL) : $(INSTALLED_SYSTEMIMAGE)
$(call dist-for-goals, dist_files, $(JACOCO_REPORT_CLASSES_ALL))
# Put XML formatted API files in the dist dir.
api_xmls := $(addprefix $(TARGET_OUT_COMMON_INTERMEDIATES)/,api.xml system-api.xml test-api.xml)
$(api_xmls): $(TARGET_OUT_COMMON_INTERMEDIATES)/%api.xml : frameworks/base/api/%current.txt $(APICHECK)
$(hide) echo "Converting API file to XML: $@"
$(hide) mkdir -p $(dir $@)
$(hide) $(APICHECK_COMMAND) -convert2xml $< $@
$(call dist-for-goals, dist_files, $(api_xmls))
api_xmls :=
endif
# Building a full system-- the default is to build droidcore