From 7dbf7dcb7bc081f80112ee4b612faaffcdc69486 Mon Sep 17 00:00:00 2001 From: Anton Hansson Date: Wed, 1 Apr 2020 14:36:28 +0100 Subject: [PATCH] Add api xml files for new api surfaces The coverage infra ingests these xml files to track api coverage of APIs. Create files equivalent to the existing files for the new API surfaces defined in R. Bug: 152949797 Test: m dist && du -hs out/dist/*.xml Change-Id: Id1914c34d1e9527964251b328179d20613a2d712 --- core/main.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/main.mk b/core/main.mk index ab54ffe71b..4059a78aed 100644 --- a/core/main.mk +++ b/core/main.mk @@ -1621,9 +1621,11 @@ else # TARGET_BUILD_APPS # Put XML formatted API files in the dist dir. $(TARGET_OUT_COMMON_INTERMEDIATES)/api.xml: $(call java-lib-files,android_stubs_current) $(APICHECK) $(TARGET_OUT_COMMON_INTERMEDIATES)/system-api.xml: $(call java-lib-files,android_system_stubs_current) $(APICHECK) + $(TARGET_OUT_COMMON_INTERMEDIATES)/module-lib-api.xml: $(call java-lib-files,android_module_lib_stubs_current) $(APICHECK) + $(TARGET_OUT_COMMON_INTERMEDIATES)/system-server-api.xml: $(call java-lib-files,android_system_server_stubs_current) $(APICHECK) $(TARGET_OUT_COMMON_INTERMEDIATES)/test-api.xml: $(call java-lib-files,android_test_stubs_current) $(APICHECK) - api_xmls := $(addprefix $(TARGET_OUT_COMMON_INTERMEDIATES)/,api.xml system-api.xml test-api.xml) + api_xmls := $(addprefix $(TARGET_OUT_COMMON_INTERMEDIATES)/,api.xml system-api.xml module-lib-api.xml system-server-api.xml test-api.xml) $(api_xmls): $(hide) echo "Converting API file to XML: $@" $(hide) mkdir -p $(dir $@)