Remove Make side (system/test-)api-stubs droiddoc targets
Remove old droiddoc targets for api-stubs, system-api-stubs, and test-api-stubs. And also set api_tag_name, api_filename, private_api_filename, and etc. properties in Android.bp for new droiddoc. Test: manually compare if dependencies change after Soong based droiddoc runs. Bug: b/70351683 Change-Id: I8d944c83de120ec8148276adc1c9872113d9d29b Merged-In: I8d944c83de120ec8148276adc1c9872113d9d29b
This commit is contained in:
44
Android.bp
44
Android.bp
@@ -903,6 +903,7 @@ doc_defaults {
|
||||
],
|
||||
resourcesdir: "docs/html/reference/images",
|
||||
resourcesoutdir: "reference/android/images",
|
||||
installable: false,
|
||||
}
|
||||
|
||||
droiddoc {
|
||||
@@ -914,14 +915,11 @@ droiddoc {
|
||||
"core/java/overview.html",
|
||||
":current-support-api",
|
||||
],
|
||||
args: framework_docs_args +
|
||||
"-referenceonly -api $(genDir)/PACKAGING/public_api.txt -privateApi $(genDir)/PACKAGING/private.txt "+
|
||||
"-privateDexApi $(genDir)/PACKAGING/private-dex.txt -removedApi $(genDir)/PACKAGING/removed.txt -nodocs",
|
||||
out: [
|
||||
"PACKAGING/public_api.txt",
|
||||
"PACKAGING/private.txt",
|
||||
"PACKAGING/private-dex.txt",
|
||||
]
|
||||
api_filename: "public_api.txt",
|
||||
private_api_filename: "private.txt",
|
||||
private_dex_api_filename: "private-dex.txt",
|
||||
removed_api_filename: "removed.txt",
|
||||
args: framework_docs_args + " -referenceonly -nodocs",
|
||||
}
|
||||
|
||||
droiddoc {
|
||||
@@ -933,16 +931,13 @@ droiddoc {
|
||||
"core/java/overview.html",
|
||||
":current-support-api",
|
||||
],
|
||||
args: framework_docs_args +
|
||||
"-referenceonly -showAnnotation android.annotation.SystemApi " +
|
||||
"-api $(genDir)/PACKAGING/system-api.txt -privateApi $(genDir)/PACKAGING/system-private.txt " +
|
||||
"-privateDexApi $(genDir)/PACKAGING/system-private-dex.txt -removedApi $(genDir)/PACKAGING/system-removed.txt " +
|
||||
"-exactApi $(genDir)/PACKAGING/system-exact.txt -nodocs",
|
||||
out: [
|
||||
"PACKAGING/system-api.txt",
|
||||
"PACKAGING/system-private.txt",
|
||||
"PACKAGING/system-private-dex.txt",
|
||||
]
|
||||
api_tag_name: "SYSTEM",
|
||||
api_filename: "system-api.txt",
|
||||
private_api_filename: "system-private.txt",
|
||||
private_dex_api_filename: "system-private-dex.txt",
|
||||
removed_api_filename: "system-removed.txt",
|
||||
exact_api_filename: "system-exact.txt",
|
||||
args: framework_docs_args + " -referenceonly -showAnnotation android.annotation.SystemApi -nodocs",
|
||||
}
|
||||
|
||||
droiddoc {
|
||||
@@ -954,12 +949,9 @@ droiddoc {
|
||||
"core/java/overview.html",
|
||||
":current-support-api",
|
||||
],
|
||||
args: framework_docs_args +
|
||||
"-referenceonly -showAnnotation android.annotation.TestApi " +
|
||||
"-api $(genDir)/PACKAGING/test-api.txt " +
|
||||
"-removedApi $(genDir)/PACKAGING/test-removed.txt " +
|
||||
"-exactApi $(genDir)/PACKAGING/test-exact.txt -nodocs",
|
||||
out: [
|
||||
"PACKAGING/test-api.txt",
|
||||
]
|
||||
api_tag_name: "TEST",
|
||||
api_filename: "test-api.txt",
|
||||
removed_api_filename: "test-removed.txt",
|
||||
exact_api_filename: "test-exact.txt",
|
||||
args: framework_docs_args + " -referenceonly -showAnnotation android.annotation.TestApi -nodocs",
|
||||
}
|
||||
|
||||
107
Android.mk
107
Android.mk
@@ -260,116 +260,9 @@ framework_docs_LOCAL_DROIDDOC_OPTIONS += \
|
||||
-federate SupportLib https://developer.android.com \
|
||||
-federationapi SupportLib prebuilts/sdk/current/support-api.txt
|
||||
|
||||
# ==== the api stubs and current.xml ===========================
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_SRC_FILES:=$(framework_docs_LOCAL_API_CHECK_SRC_FILES)
|
||||
LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
|
||||
LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
|
||||
LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES)
|
||||
LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
|
||||
LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
|
||||
LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
|
||||
LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR)
|
||||
LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
|
||||
|
||||
LOCAL_MODULE := api-stubs
|
||||
|
||||
LOCAL_DROIDDOC_STUB_OUT_DIR := $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/android_stubs_current_intermediates/src
|
||||
|
||||
LOCAL_DROIDDOC_OPTIONS:=\
|
||||
$(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
|
||||
-referenceonly \
|
||||
-api $(INTERNAL_PLATFORM_API_FILE) \
|
||||
-privateApi $(INTERNAL_PLATFORM_PRIVATE_API_FILE) \
|
||||
-privateDexApi $(INTERNAL_PLATFORM_PRIVATE_DEX_API_FILE) \
|
||||
-removedApi $(INTERNAL_PLATFORM_REMOVED_API_FILE) \
|
||||
-nodocs
|
||||
|
||||
LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
|
||||
|
||||
LOCAL_UNINSTALLABLE_MODULE := true
|
||||
|
||||
include $(BUILD_DROIDDOC)
|
||||
|
||||
$(full_target): .KATI_IMPLICIT_OUTPUTS := $(INTERNAL_PLATFORM_API_FILE) \
|
||||
$(INTERNAL_PLATFORM_PRIVATE_API_FILE) \
|
||||
$(INTERNAL_PLATFORM_PRIVATE_DEX_API_FILE)
|
||||
$(call dist-for-goals,sdk,$(INTERNAL_PLATFORM_API_FILE))
|
||||
|
||||
# ==== the system api stubs ===================================
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_SRC_FILES:=$(framework_docs_LOCAL_API_CHECK_SRC_FILES)
|
||||
LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
|
||||
LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
|
||||
LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES)
|
||||
LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
|
||||
LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
|
||||
LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
|
||||
LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR)
|
||||
LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
|
||||
|
||||
LOCAL_MODULE := system-api-stubs
|
||||
|
||||
LOCAL_DROIDDOC_STUB_OUT_DIR := $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/android_system_stubs_current_intermediates/src
|
||||
|
||||
LOCAL_DROIDDOC_OPTIONS:=\
|
||||
$(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
|
||||
-referenceonly \
|
||||
-showAnnotation android.annotation.SystemApi \
|
||||
-api $(INTERNAL_PLATFORM_SYSTEM_API_FILE) \
|
||||
-privateApi $(INTERNAL_PLATFORM_SYSTEM_PRIVATE_API_FILE) \
|
||||
-privateDexApi $(INTERNAL_PLATFORM_SYSTEM_PRIVATE_DEX_API_FILE) \
|
||||
-removedApi $(INTERNAL_PLATFORM_SYSTEM_REMOVED_API_FILE) \
|
||||
-exactApi $(INTERNAL_PLATFORM_SYSTEM_EXACT_API_FILE) \
|
||||
-nodocs
|
||||
|
||||
LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
|
||||
|
||||
LOCAL_UNINSTALLABLE_MODULE := true
|
||||
|
||||
include $(BUILD_DROIDDOC)
|
||||
|
||||
$(full_target): .KATI_IMPLICIT_OUTPUTS := $(INTERNAL_PLATFORM_SYSTEM_API_FILE) \
|
||||
$(INTERNAL_PLATFORM_SYSTEM_PRIVATE_API_FILE) \
|
||||
$(INTERNAL_PLATFORM_SYSTEM_PRIVATE_DEX_API_FILE)
|
||||
$(call dist-for-goals,sdk,$(INTERNAL_PLATFORM_SYSTEM_API_FILE))
|
||||
|
||||
# ==== the test api stubs ===================================
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_SRC_FILES:=$(framework_docs_LOCAL_API_CHECK_SRC_FILES)
|
||||
LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
|
||||
LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
|
||||
LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES)
|
||||
LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
|
||||
LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
|
||||
LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
|
||||
LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR)
|
||||
LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
|
||||
|
||||
LOCAL_MODULE := test-api-stubs
|
||||
|
||||
LOCAL_DROIDDOC_STUB_OUT_DIR := $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/android_test_stubs_current_intermediates/src
|
||||
|
||||
LOCAL_DROIDDOC_OPTIONS:=\
|
||||
$(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
|
||||
-referenceonly \
|
||||
-stubs $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/android_test_stubs_current_intermediates/src \
|
||||
-showAnnotation android.annotation.TestApi \
|
||||
-api $(INTERNAL_PLATFORM_TEST_API_FILE) \
|
||||
-removedApi $(INTERNAL_PLATFORM_TEST_REMOVED_API_FILE) \
|
||||
-exactApi $(INTERNAL_PLATFORM_TEST_EXACT_API_FILE) \
|
||||
-nodocs
|
||||
|
||||
LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
|
||||
|
||||
LOCAL_UNINSTALLABLE_MODULE := true
|
||||
|
||||
include $(BUILD_DROIDDOC)
|
||||
|
||||
$(INTERNAL_PLATFORM_TEST_API_FILE): $(full_target)
|
||||
$(call dist-for-goals,sdk,$(INTERNAL_PLATFORM_TEST_API_FILE))
|
||||
|
||||
# ==== check javadoc comments but don't generate docs ========
|
||||
|
||||
Reference in New Issue
Block a user