From 0aa96a05fb2b2c435d7873d892e6087870190549 Mon Sep 17 00:00:00 2001 From: Nan Zhang Date: Mon, 12 Mar 2018 16:33:26 -0700 Subject: [PATCH] Add dist-for-goals for droiddoc docs.zip Old droiddoc will install the *-docs.zip & API files to the dist. And also remove INTERNAL_PLATFORM_*API_FILE variables from config.mk and get rid of the dependencies on api-stubs, system-api-stubs, test-api-stubs timestamp. Test: m -j api-stubs-docs Bug: b/70351683 Change-Id: I08923bb5f62d2f55961d9a2865723d7b3fae7206 Merged-In: I08923bb5f62d2f55961d9a2865723d7b3fae7206 --- core/config.mk | 13 ------------- core/soong_java_prebuilt.mk | 1 + core/tasks/apicheck.mk | 10 +++++----- 3 files changed, 6 insertions(+), 18 deletions(-) diff --git a/core/config.mk b/core/config.mk index 909b8b24e8..e72b55acdd 100644 --- a/core/config.mk +++ b/core/config.mk @@ -961,19 +961,6 @@ TARGET_AVAILABLE_SDK_VERSIONS := test_current core_current $(TARGET_AVAILABLE_SD TARGET_SDK_VERSIONS_WITHOUT_JAVA_18_SUPPORT := $(call numbers_less_than,24,$(TARGET_AVAILABLE_SDK_VERSIONS)) TARGET_SDK_VERSIONS_WITHOUT_JAVA_19_SUPPORT := $(call numbers_less_than,27,$(TARGET_AVAILABLE_SDK_VERSIONS)) -INTERNAL_PLATFORM_API_FILE := $(TARGET_OUT_COMMON_INTERMEDIATES)/PACKAGING/public_api.txt -INTERNAL_PLATFORM_PRIVATE_API_FILE := $(TARGET_OUT_COMMON_INTERMEDIATES)/PACKAGING/private.txt -INTERNAL_PLATFORM_PRIVATE_DEX_API_FILE := $(TARGET_OUT_COMMON_INTERMEDIATES)/PACKAGING/private-dex.txt -INTERNAL_PLATFORM_REMOVED_API_FILE := $(TARGET_OUT_COMMON_INTERMEDIATES)/PACKAGING/removed.txt -INTERNAL_PLATFORM_SYSTEM_API_FILE := $(TARGET_OUT_COMMON_INTERMEDIATES)/PACKAGING/system-api.txt -INTERNAL_PLATFORM_SYSTEM_PRIVATE_API_FILE := $(TARGET_OUT_COMMON_INTERMEDIATES)/PACKAGING/system-private.txt -INTERNAL_PLATFORM_SYSTEM_PRIVATE_DEX_API_FILE := $(TARGET_OUT_COMMON_INTERMEDIATES)/PACKAGING/system-private-dex.txt -INTERNAL_PLATFORM_SYSTEM_REMOVED_API_FILE := $(TARGET_OUT_COMMON_INTERMEDIATES)/PACKAGING/system-removed.txt -INTERNAL_PLATFORM_SYSTEM_EXACT_API_FILE := $(TARGET_OUT_COMMON_INTERMEDIATES)/PACKAGING/system-exact.txt -INTERNAL_PLATFORM_TEST_API_FILE := $(TARGET_OUT_COMMON_INTERMEDIATES)/PACKAGING/test-api.txt -INTERNAL_PLATFORM_TEST_REMOVED_API_FILE := $(TARGET_OUT_COMMON_INTERMEDIATES)/PACKAGING/test-removed.txt -INTERNAL_PLATFORM_TEST_EXACT_API_FILE := $(TARGET_OUT_COMMON_INTERMEDIATES)/PACKAGING/test-exact.txt - INTERNAL_PLATFORM_HIDDENAPI_LIGHT_GREYLIST := $(TARGET_OUT_COMMON_INTERMEDIATES)/PACKAGING/hiddenapi-light-greylist.txt INTERNAL_PLATFORM_HIDDENAPI_DARK_GREYLIST := $(TARGET_OUT_COMMON_INTERMEDIATES)/PACKAGING/hiddenapi-dark-greylist.txt INTERNAL_PLATFORM_HIDDENAPI_BLACKLIST := $(TARGET_OUT_COMMON_INTERMEDIATES)/PACKAGING/hiddenapi-blacklist.txt diff --git a/core/soong_java_prebuilt.mk b/core/soong_java_prebuilt.mk index 36a71e30d4..63a1e2e21a 100644 --- a/core/soong_java_prebuilt.mk +++ b/core/soong_java_prebuilt.mk @@ -30,6 +30,7 @@ endif ifdef LOCAL_DROIDDOC_DOC_ZIP $(eval $(call copy-one-file,$(LOCAL_DROIDDOC_DOC_ZIP),$(OUT_DOCS)/$(LOCAL_MODULE)-docs.zip)) +$(call dist-for-goals,docs,$(OUT_DOCS)/$(LOCAL_MODULE)-docs.zip) endif ifdef LOCAL_SOONG_JACOCO_REPORT_CLASSES_JAR diff --git a/core/tasks/apicheck.mk b/core/tasks/apicheck.mk index 3975d2071e..1d867d18df 100644 --- a/core/tasks/apicheck.mk +++ b/core/tasks/apicheck.mk @@ -54,7 +54,7 @@ $(eval $(call check-api, \ -error 16 -error 17 -error 18 , \ cat $(BUILD_SYSTEM)/apicheck_msg_last.txt, \ check-public-api, \ - $(call doc-timestamp-for,api-stubs) \ + $(OUT_DOCS)/api-stubs-docs-stubs.srcjar \ )) # Check that the API we're building hasn't changed from the not-yet-released @@ -71,7 +71,7 @@ $(eval $(call check-api, \ -error 25 -error 26 -error 27, \ cat $(BUILD_SYSTEM)/apicheck_msg_current.txt, \ check-public-api, \ - $(call doc-timestamp-for,api-stubs) \ + $(OUT_DOCS)/api-stubs-docs-stubs.srcjar \ )) .PHONY: update-public-api @@ -100,7 +100,7 @@ $(eval $(call check-api, \ -error 16 -error 17 -error 18 , \ cat $(BUILD_SYSTEM)/apicheck_msg_last.txt, \ check-system-api, \ - $(call doc-timestamp-for,system-api-stubs) \ + $(OUT_DOCS)/system-api-stubs-docs-stubs.srcjar \ )) # Check that the System API we're building hasn't changed from the not-yet-released @@ -117,7 +117,7 @@ $(eval $(call check-api, \ -error 25 -error 26 -error 27, \ cat $(BUILD_SYSTEM)/apicheck_msg_current.txt, \ check-system-api, \ - $(call doc-timestamp-for,system-api-stubs) \ + $(OUT_DOCS)/system-api-stubs-docs-stubs.srcjar \ )) .PHONY: update-system-api @@ -149,7 +149,7 @@ $(eval $(call check-api, \ -error 25 -error 26 -error 27, \ cat $(BUILD_SYSTEM)/apicheck_msg_current.txt, \ check-test-api, \ - $(call doc-timestamp-for,test-api-stubs) \ + $(OUT_DOCS)/test-api-stubs-docs-stubs.srcjar \ )) .PHONY: update-test-api