forked from openkylin/platform_build
Merge "Generate api.xml for every target build." am: 22b9a4a207
am: 823e08eea4
am: 74475f02e7
Change-Id: I26be66bbab1cb72927f9b2e62a60d057a7fccb6d
This commit is contained in:
commit
b378d4d0a5
18
core/main.mk
18
core/main.mk
|
@ -1582,21 +1582,21 @@ else # TARGET_BUILD_APPS
|
|||
ifeq ($(EMMA_INSTRUMENT),true)
|
||||
$(JACOCO_REPORT_CLASSES_ALL) : $(INSTALLED_SYSTEMIMAGE_TARGET)
|
||||
$(call dist-for-goals, dist_files, $(JACOCO_REPORT_CLASSES_ALL))
|
||||
endif
|
||||
|
||||
# Put XML formatted API files in the dist dir.
|
||||
$(TARGET_OUT_COMMON_INTERMEDIATES)/api.xml: $(call java-lib-header-files,android_stubs_current) $(APICHECK)
|
||||
$(TARGET_OUT_COMMON_INTERMEDIATES)/system-api.xml: $(call java-lib-header-files,android_system_stubs_current) $(APICHECK)
|
||||
$(TARGET_OUT_COMMON_INTERMEDIATES)/test-api.xml: $(call java-lib-header-files,android_test_stubs_current) $(APICHECK)
|
||||
# Put XML formatted API files in the dist dir.
|
||||
$(TARGET_OUT_COMMON_INTERMEDIATES)/api.xml: $(call java-lib-header-files,android_stubs_current) $(APICHECK)
|
||||
$(TARGET_OUT_COMMON_INTERMEDIATES)/system-api.xml: $(call java-lib-header-files,android_system_stubs_current) $(APICHECK)
|
||||
$(TARGET_OUT_COMMON_INTERMEDIATES)/test-api.xml: $(call java-lib-header-files,android_test_stubs_current) $(APICHECK)
|
||||
|
||||
api_xmls := $(addprefix $(TARGET_OUT_COMMON_INTERMEDIATES)/,api.xml system-api.xml test-api.xml)
|
||||
$(api_xmls):
|
||||
api_xmls := $(addprefix $(TARGET_OUT_COMMON_INTERMEDIATES)/,api.xml system-api.xml test-api.xml)
|
||||
$(api_xmls):
|
||||
$(hide) echo "Converting API file to XML: $@"
|
||||
$(hide) mkdir -p $(dir $@)
|
||||
$(hide) $(APICHECK_COMMAND) --input-api-jar $< --api-xml $@
|
||||
|
||||
$(call dist-for-goals, dist_files, $(api_xmls))
|
||||
api_xmls :=
|
||||
endif
|
||||
$(call dist-for-goals, dist_files, $(api_xmls))
|
||||
api_xmls :=
|
||||
|
||||
# Building a full system-- the default is to build droidcore
|
||||
droid_targets: droidcore dist_files
|
||||
|
|
Loading…
Reference in New Issue