Merge "Add offline/online-sdk-docs in Soong." into pi-dev-plus-aosp
This commit is contained in:
committed by
Android (Google) Code Review
commit
f3a585475e
303
Android.bp
303
Android.bp
@@ -994,6 +994,7 @@ framework_docs_args = "-android -manifest $(location core/res/AndroidManifest.xm
|
||||
"-since $(location 26/public/api/android.txt) 26 " +
|
||||
"-since $(location 27/public/api/android.txt) 27 " +
|
||||
"-since $(location 28/public/api/android.txt) 28 " +
|
||||
"-since $(location api/current.txt) Q " +
|
||||
"-werror -lerror -hide 111 -hide 113 -hide 125 -hide 126 -hide 127 -hide 128 " +
|
||||
"-overview $(location core/java/overview.html) " +
|
||||
// Federate Support Library references against local API file.
|
||||
@@ -1001,7 +1002,7 @@ framework_docs_args = "-android -manifest $(location core/res/AndroidManifest.xm
|
||||
"-federationapi SupportLib $(location current/support-api.txt) "
|
||||
|
||||
doc_defaults {
|
||||
name: "framework-docs-default",
|
||||
name: "api-stubs-default",
|
||||
srcs: [
|
||||
":opt-telephony-srcs",
|
||||
":opt-net-voip-srcs",
|
||||
@@ -1051,7 +1052,7 @@ doc_defaults {
|
||||
|
||||
droiddoc {
|
||||
name: "api-stubs-docs",
|
||||
defaults: ["framework-docs-default"],
|
||||
defaults: ["api-stubs-default"],
|
||||
arg_files: [
|
||||
"core/res/AndroidManifest.xml",
|
||||
":api-version-xml",
|
||||
@@ -1084,7 +1085,7 @@ droiddoc {
|
||||
|
||||
droiddoc {
|
||||
name: "system-api-stubs-docs",
|
||||
defaults: ["framework-docs-default"],
|
||||
defaults: ["api-stubs-default"],
|
||||
arg_files: [
|
||||
"core/res/AndroidManifest.xml",
|
||||
":api-version-xml",
|
||||
@@ -1118,7 +1119,7 @@ droiddoc {
|
||||
|
||||
droiddoc {
|
||||
name: "test-api-stubs-docs",
|
||||
defaults: ["framework-docs-default"],
|
||||
defaults: ["api-stubs-default"],
|
||||
arg_files: [
|
||||
"core/res/AndroidManifest.xml",
|
||||
":api-version-xml",
|
||||
@@ -1143,6 +1144,286 @@ droiddoc {
|
||||
},
|
||||
}
|
||||
|
||||
doc_defaults {
|
||||
name: "framework-docs-default",
|
||||
srcs: [
|
||||
"test-base/src/**/*.java",
|
||||
":opt-telephony-srcs",
|
||||
":opt-net-voip-srcs",
|
||||
":openjdk_javadoc_files",
|
||||
":non_openjdk_javadoc_files",
|
||||
":android_icu4j_src_files_for_docs",
|
||||
":gen-ojluni-jaif-annotated-srcs",
|
||||
"test-mock/src/**/*.java",
|
||||
"test-runner/src/**/*.java",
|
||||
],
|
||||
exclude_srcs: [
|
||||
":annotated_ojluni_files",
|
||||
],
|
||||
srcs_lib: "framework",
|
||||
srcs_lib_whitelist_dirs: frameworks_base_subdirs,
|
||||
srcs_lib_whitelist_pkgs: packages_to_document,
|
||||
libs: [
|
||||
"voip-common",
|
||||
"android.test.mock",
|
||||
"android-support-annotations",
|
||||
"android-support-compat",
|
||||
"android-support-core-ui",
|
||||
"android-support-core-utils",
|
||||
"android-support-customtabs",
|
||||
"android-support-design",
|
||||
"android-support-dynamic-animation",
|
||||
"android-support-exifinterface",
|
||||
"android-support-fragment",
|
||||
"android-support-media-compat",
|
||||
"android-support-percent",
|
||||
"android-support-recommendation",
|
||||
"android-support-transition",
|
||||
"android-support-tv-provider",
|
||||
"android-support-v7-cardview",
|
||||
"android-support-v7-gridlayout",
|
||||
"android-support-v7-mediarouter",
|
||||
"android-support-v7-palette",
|
||||
"android-support-v7-preference",
|
||||
"android-support-v13",
|
||||
"android-support-v14-preference",
|
||||
"android-support-v17-leanback",
|
||||
"android-support-v17-preference-leanback",
|
||||
"android-support-wear",
|
||||
"android-support-vectordrawable",
|
||||
"android-support-animatedvectordrawable",
|
||||
"android-support-v7-appcompat",
|
||||
"android-support-v7-recyclerview",
|
||||
"android-support-emoji",
|
||||
"android-support-emoji-appcompat",
|
||||
"android-support-emoji-bundled",
|
||||
"android-support-v8-renderscript",
|
||||
"android-support-multidex",
|
||||
"android-support-multidex-instrumentation",
|
||||
],
|
||||
local_sourcepaths: frameworks_base_subdirs,
|
||||
html_dirs: [
|
||||
"docs/html",
|
||||
],
|
||||
knowntags: [
|
||||
"docs/knowntags.txt",
|
||||
":known-oj-tags",
|
||||
],
|
||||
custom_template: "droiddoc-templates-sdk",
|
||||
resourcesdir: "docs/html/reference/images/",
|
||||
resourcesoutdir: "reference/android/images/",
|
||||
hdf: [
|
||||
"dac true",
|
||||
"sdk.codename O",
|
||||
"sdk.preview.version 1",
|
||||
"sdk.version 7.0",
|
||||
"sdk.rel.id 1",
|
||||
"sdk.preview 0",
|
||||
],
|
||||
arg_files: [
|
||||
"core/res/AndroidManifest.xml",
|
||||
":api-version-xml",
|
||||
"core/java/overview.html",
|
||||
":current-support-api",
|
||||
"api/current.txt",
|
||||
],
|
||||
create_stubs: false,
|
||||
}
|
||||
|
||||
droiddoc {
|
||||
name: "doc-comment-check-docs",
|
||||
defaults: ["framework-docs-default"],
|
||||
args: framework_docs_args + " -referenceonly -parsecomments",
|
||||
installable: false,
|
||||
}
|
||||
|
||||
droiddoc {
|
||||
name: "offline-sdk-docs",
|
||||
defaults: ["framework-docs-default"],
|
||||
hdf: [
|
||||
"android.whichdoc offline",
|
||||
],
|
||||
proofread_file: "offline-sdk-docs-proofrerad.txt",
|
||||
args: framework_docs_args + " -offlinemode -title \"Android SDK\"",
|
||||
write_sdk_values: true,
|
||||
static_doc_index_redirect: "docs/docs-preview-index.html",
|
||||
}
|
||||
|
||||
droiddoc {
|
||||
name: "offline-sdk-referenceonly-docs",
|
||||
defaults: ["framework-docs-default"],
|
||||
hdf: [
|
||||
"android.whichdoc offline",
|
||||
],
|
||||
proofread_file: "offline-sdk-referenceonly-docs-proofrerad.txt",
|
||||
args: framework_docs_args + " -offlinemode -title \"Android SDK\" -referenceonly",
|
||||
write_sdk_values: true,
|
||||
static_doc_index_redirect: "docs/docs-documentation-redirect.html",
|
||||
static_doc_properties: "docs/source.properties",
|
||||
}
|
||||
|
||||
droiddoc {
|
||||
name: "offline-system-sdk-referenceonly-docs",
|
||||
defaults: ["framework-docs-default"],
|
||||
hdf: [
|
||||
"android.whichdoc offline",
|
||||
],
|
||||
proofread_file: "offline-system-sdk-referenceonly-docs-proofrerad.txt",
|
||||
args: framework_docs_args + " -hide 101 -hide 104 -hide 108" +
|
||||
" -showAnnotation android.annotation.SystemApi " +
|
||||
" -offlinemode -title \"Android System SDK\" -referenceonly",
|
||||
write_sdk_values: true,
|
||||
static_doc_index_redirect: "docs/docs-documentation-redirect.html",
|
||||
static_doc_properties: "docs/source.properties",
|
||||
}
|
||||
|
||||
droiddoc {
|
||||
name: "online-sdk-docs",
|
||||
defaults: ["framework-docs-default"],
|
||||
hdf: [
|
||||
"android.whichdoc online",
|
||||
"android.hasSamples true",
|
||||
],
|
||||
proofread_file: "online-sdk-docs-proofrerad.txt",
|
||||
args: framework_docs_args +
|
||||
" -toroot / -samplegroup Admin " +
|
||||
" -samplegroup Background " +
|
||||
" -samplegroup Connectivity " +
|
||||
" -samplegroup Content " +
|
||||
" -samplegroup Input " +
|
||||
" -samplegroup Media " +
|
||||
" -samplegroup Notification " +
|
||||
" -samplegroup RenderScript " +
|
||||
" -samplegroup Security " +
|
||||
" -samplegroup Sensors " +
|
||||
" -samplegroup System " +
|
||||
" -samplegroup Testing " +
|
||||
" -samplegroup UI " +
|
||||
" -samplegroup Views " +
|
||||
" -samplegroup Wearable -samplesdir development/samples/browseable ",
|
||||
}
|
||||
|
||||
droiddoc {
|
||||
name: "online-system-api-sdk-docs",
|
||||
defaults: ["framework-docs-default"],
|
||||
hdf: [
|
||||
"android.whichdoc online",
|
||||
"android.hasSamples true",
|
||||
],
|
||||
proofread_file: "online-system-api-sdk-docs-proofrerad.txt",
|
||||
args: framework_docs_args +
|
||||
" -referenceonly " +
|
||||
" -showAnnotation android.annotation.SystemApi " +
|
||||
" -title \"Android SDK - Including system APIs.\" " +
|
||||
" -hide 101 " +
|
||||
" -hide 104 " +
|
||||
" -hide 108 " +
|
||||
" -toroot / -samplegroup Admin " +
|
||||
" -samplegroup Background " +
|
||||
" -samplegroup Connectivity " +
|
||||
" -samplegroup Content " +
|
||||
" -samplegroup Input " +
|
||||
" -samplegroup Media " +
|
||||
" -samplegroup Notification " +
|
||||
" -samplegroup RenderScript " +
|
||||
" -samplegroup Security " +
|
||||
" -samplegroup Sensors " +
|
||||
" -samplegroup System " +
|
||||
" -samplegroup Testing " +
|
||||
" -samplegroup UI " +
|
||||
" -samplegroup Views " +
|
||||
" -samplegroup Wearable -samplesdir development/samples/browseable ",
|
||||
installable: false,
|
||||
}
|
||||
|
||||
droiddoc {
|
||||
name: "ds-docs",
|
||||
defaults: ["framework-docs-default"],
|
||||
hdf: [
|
||||
"android.whichdoc online",
|
||||
"android.hasSamples true",
|
||||
],
|
||||
proofread_file: "ds-docs-proofrerad.txt",
|
||||
args: framework_docs_args +
|
||||
" -toroot / -samplegroup Admin " +
|
||||
" -samplegroup Background " +
|
||||
" -samplegroup Connectivity " +
|
||||
" -samplegroup Content " +
|
||||
" -samplegroup Input " +
|
||||
" -samplegroup Media " +
|
||||
" -samplegroup Notification " +
|
||||
" -samplegroup RenderScript " +
|
||||
" -samplegroup Security " +
|
||||
" -samplegroup Sensors " +
|
||||
" -samplegroup System " +
|
||||
" -samplegroup Testing " +
|
||||
" -samplegroup UI " +
|
||||
" -samplegroup Views " +
|
||||
" -samplegroup Wearable -devsite -samplesdir development/samples/browseable ",
|
||||
}
|
||||
|
||||
droiddoc {
|
||||
name: "ds-static-docs",
|
||||
defaults: ["framework-docs-default"],
|
||||
hdf: [
|
||||
"android.whichdoc online",
|
||||
],
|
||||
proofread_file: "ds-static-docs-proofrerad.txt",
|
||||
args: framework_docs_args +
|
||||
" -staticonly " +
|
||||
" -toroot / " +
|
||||
" -devsite " +
|
||||
" -ignoreJdLinks ",
|
||||
}
|
||||
|
||||
droiddoc {
|
||||
name: "ds-ref-navtree-docs",
|
||||
defaults: ["framework-docs-default"],
|
||||
hdf: [
|
||||
"android.whichdoc online",
|
||||
],
|
||||
proofread_file: "ds-ref-navtree-docs-proofrerad.txt",
|
||||
args: framework_docs_args +
|
||||
" -toroot / " +
|
||||
" -atLinksNavtree " +
|
||||
" -navtreeonly ",
|
||||
}
|
||||
|
||||
droiddoc {
|
||||
name: "online-sdk-dev-docs",
|
||||
defaults: ["framework-docs-default"],
|
||||
hdf: [
|
||||
"android.whichdoc online",
|
||||
"android.hasSamples true",
|
||||
],
|
||||
proofread_file: "online-sdk-dev-docs-proofrerad.txt",
|
||||
args: framework_docs_args +
|
||||
" -toroot / -samplegroup Admin " +
|
||||
" -samplegroup Background " +
|
||||
" -samplegroup Connectivity " +
|
||||
" -samplegroup Content " +
|
||||
" -samplegroup Input " +
|
||||
" -samplegroup Media " +
|
||||
" -samplegroup Notification " +
|
||||
" -samplegroup RenderScript " +
|
||||
" -samplegroup Security " +
|
||||
" -samplegroup Sensors " +
|
||||
" -samplegroup System " +
|
||||
" -samplegroup Testing " +
|
||||
" -samplegroup UI " +
|
||||
" -samplegroup Views " +
|
||||
" -samplegroup Wearable -samplesdir development/samples/browseable ",
|
||||
}
|
||||
|
||||
droiddoc {
|
||||
name: "hidden-docs",
|
||||
defaults: ["framework-docs-default"],
|
||||
proofread_file: "hidden-docs-proofrerad.txt",
|
||||
args: framework_docs_args +
|
||||
" -referenceonly " +
|
||||
" -title \"Android SDK - Including hidden APIs.\"",
|
||||
}
|
||||
|
||||
droiddoc {
|
||||
name: "hwbinder-stubs-docs",
|
||||
srcs: [
|
||||
@@ -1176,12 +1457,13 @@ java_library_static {
|
||||
|
||||
droiddoc {
|
||||
name: "hiddenapi-lists",
|
||||
defaults: ["framework-docs-default"],
|
||||
defaults: ["api-stubs-default"],
|
||||
arg_files: [
|
||||
"core/res/AndroidManifest.xml",
|
||||
":api-version-xml",
|
||||
"core/java/overview.html",
|
||||
":current-support-api",
|
||||
"api/current.txt",
|
||||
],
|
||||
dex_api_filename: "public-dex.txt",
|
||||
private_dex_api_filename: "private-dex.txt",
|
||||
@@ -1196,12 +1478,13 @@ droiddoc {
|
||||
|
||||
droiddoc {
|
||||
name: "hiddenapi-mappings",
|
||||
defaults: ["framework-docs-default"],
|
||||
defaults: ["api-stubs-default"],
|
||||
arg_files: [
|
||||
"core/res/AndroidManifest.xml",
|
||||
":api-version-xml",
|
||||
"core/java/overview.html",
|
||||
":current-support-api",
|
||||
"api/current.txt",
|
||||
],
|
||||
dex_mapping_filename: "dex-mapping.txt",
|
||||
args: framework_docs_args +
|
||||
@@ -1245,7 +1528,7 @@ metalava_framework_docs_args = "--manifest $(location core/res/AndroidManifest.x
|
||||
"--hide SdkConstant --hide HiddenTypeParameter --hide Todo --hide Typo"
|
||||
|
||||
doc_defaults {
|
||||
name: "metalava-framework-docs-default",
|
||||
name: "metalava-api-stubs-default",
|
||||
srcs: [
|
||||
":opt-telephony-srcs",
|
||||
":opt-net-voip-srcs",
|
||||
@@ -1283,7 +1566,7 @@ doc_defaults {
|
||||
|
||||
droiddoc {
|
||||
name: "metalava-api-stubs-docs",
|
||||
defaults: ["metalava-framework-docs-default"],
|
||||
defaults: ["metalava-api-stubs-default"],
|
||||
api_tag_name: "METALAVA_PUBLIC",
|
||||
api_filename: "public_api.txt",
|
||||
private_api_filename: "private.txt",
|
||||
@@ -1296,7 +1579,7 @@ droiddoc {
|
||||
|
||||
droiddoc {
|
||||
name: "metalava-system-api-stubs-docs",
|
||||
defaults: ["metalava-framework-docs-default"],
|
||||
defaults: ["metalava-api-stubs-default"],
|
||||
api_tag_name: "METALAVA_SYSTEM",
|
||||
api_filename: "system-api.txt",
|
||||
private_api_filename: "system-private.txt",
|
||||
@@ -1310,7 +1593,7 @@ droiddoc {
|
||||
|
||||
droiddoc {
|
||||
name: "metalava-test-api-stubs-docs",
|
||||
defaults: ["metalava-framework-docs-default"],
|
||||
defaults: ["metalava-api-stubs-default"],
|
||||
api_tag_name: "METALAVA_TEST",
|
||||
api_filename: "test-api.txt",
|
||||
removed_api_filename: "test-removed.txt",
|
||||
|
||||
365
Android.mk
365
Android.mk
@@ -311,364 +311,13 @@ $(call dist-for-goals,sdk,$(INTERNAL_PLATFORM_API_FILE))
|
||||
$(call dist-for-goals,sdk,$(INTERNAL_PLATFORM_SYSTEM_API_FILE))
|
||||
$(call dist-for-goals,sdk,$(INTERNAL_PLATFORM_TEST_API_FILE))
|
||||
|
||||
# ==== check javadoc comments but don't generate docs ========
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
|
||||
LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
|
||||
LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
|
||||
LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_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_ADDITIONAL_JAVA_DIR)
|
||||
LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
|
||||
|
||||
LOCAL_MODULE := doc-comment-check
|
||||
|
||||
LOCAL_DROIDDOC_OPTIONS:=\
|
||||
$(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
|
||||
-referenceonly \
|
||||
-parsecomments
|
||||
|
||||
LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
|
||||
|
||||
LOCAL_UNINSTALLABLE_MODULE := true
|
||||
|
||||
include $(BUILD_DROIDDOC)
|
||||
|
||||
# Run this for checkbuild
|
||||
checkbuild: doc-comment-check-docs
|
||||
# Check comment when you are updating the API
|
||||
update-api: doc-comment-check-docs
|
||||
|
||||
# ==== static html in the sdk ==================================
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
|
||||
LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
|
||||
LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
|
||||
LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_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_ADDITIONAL_JAVA_DIR)
|
||||
LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
|
||||
|
||||
LOCAL_MODULE := offline-sdk
|
||||
|
||||
LOCAL_DROIDDOC_OPTIONS:=\
|
||||
$(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
|
||||
-offlinemode \
|
||||
-title "Android SDK" \
|
||||
-proofread $(OUT_DOCS)/$(LOCAL_MODULE)-proofread.txt \
|
||||
-sdkvalues $(OUT_DOCS) \
|
||||
-hdf android.whichdoc offline
|
||||
|
||||
LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
|
||||
|
||||
include $(BUILD_DROIDDOC)
|
||||
|
||||
static_doc_index_redirect := $(out_dir)/index.html
|
||||
$(static_doc_index_redirect): \
|
||||
$(LOCAL_PATH)/docs/docs-preview-index.html | $(ACP)
|
||||
$(hide) mkdir -p $(dir $@)
|
||||
$(hide) $(ACP) $< $@
|
||||
|
||||
$(full_target): $(static_doc_index_redirect)
|
||||
|
||||
|
||||
# ==== Public API static reference docs ==================================
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
|
||||
LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
|
||||
LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
|
||||
LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_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_ADDITIONAL_JAVA_DIR)
|
||||
LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
|
||||
|
||||
LOCAL_MODULE := offline-sdk-referenceonly
|
||||
|
||||
LOCAL_DROIDDOC_OPTIONS:=\
|
||||
$(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
|
||||
-offlinemode \
|
||||
-title "Android SDK" \
|
||||
-proofread $(OUT_DOCS)/$(LOCAL_MODULE)-proofread.txt \
|
||||
-sdkvalues $(OUT_DOCS) \
|
||||
-hdf android.whichdoc offline \
|
||||
-referenceonly
|
||||
|
||||
LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
|
||||
|
||||
include $(BUILD_DROIDDOC)
|
||||
|
||||
static_doc_index_redirect := $(out_dir)/index.html
|
||||
$(static_doc_index_redirect): $(LOCAL_PATH)/docs/docs-documentation-redirect.html
|
||||
$(copy-file-to-target)
|
||||
|
||||
static_doc_properties := $(out_dir)/source.properties
|
||||
$(static_doc_properties): \
|
||||
$(LOCAL_PATH)/docs/source.properties | $(ACP)
|
||||
$(hide) mkdir -p $(dir $@)
|
||||
$(hide) $(ACP) $< $@
|
||||
|
||||
$(full_target): $(static_doc_index_redirect)
|
||||
$(full_target): $(static_doc_properties)
|
||||
|
||||
|
||||
# ==== System API static reference docs ==================================
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
|
||||
LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
|
||||
LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
|
||||
LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_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_ADDITIONAL_JAVA_DIR)
|
||||
LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
|
||||
|
||||
LOCAL_MODULE := offline-system-sdk-referenceonly
|
||||
|
||||
LOCAL_DROIDDOC_OPTIONS:=\
|
||||
$(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
|
||||
-hide 101 -hide 104 -hide 108 \
|
||||
-showAnnotation android.annotation.SystemApi \
|
||||
-offlinemode \
|
||||
-title "Android System SDK" \
|
||||
-proofread $(OUT_DOCS)/$(LOCAL_MODULE)-proofread.txt \
|
||||
-sdkvalues $(OUT_DOCS) \
|
||||
-hdf android.whichdoc offline \
|
||||
-referenceonly
|
||||
|
||||
LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
|
||||
|
||||
include $(BUILD_DROIDDOC)
|
||||
|
||||
static_doc_index_redirect := $(out_dir)/index.html
|
||||
$(static_doc_index_redirect): $(LOCAL_PATH)/docs/docs-documentation-redirect.html
|
||||
$(copy-file-to-target)
|
||||
|
||||
static_doc_properties := $(out_dir)/source.properties
|
||||
$(static_doc_properties): \
|
||||
$(LOCAL_PATH)/docs/source.properties | $(ACP)
|
||||
$(hide) mkdir -p $(dir $@)
|
||||
$(hide) $(ACP) $< $@
|
||||
|
||||
$(full_target): $(static_doc_index_redirect)
|
||||
$(full_target): $(static_doc_properties)
|
||||
$(full_target): $(framework_built)
|
||||
|
||||
|
||||
# ==== docs for the web (on the androiddevdocs app engine server) =======================
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
|
||||
LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
|
||||
LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
|
||||
LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
|
||||
LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_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_ADDITIONAL_JAVA_DIR)
|
||||
LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
|
||||
LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl /
|
||||
|
||||
LOCAL_MODULE := online-sdk
|
||||
|
||||
LOCAL_DROIDDOC_OPTIONS:= \
|
||||
$(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
|
||||
-toroot / \
|
||||
-hdf android.whichdoc online \
|
||||
$(sample_groups) \
|
||||
-hdf android.hasSamples true \
|
||||
-samplesdir $(samples_dir)
|
||||
|
||||
LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
|
||||
|
||||
include $(BUILD_DROIDDOC)
|
||||
|
||||
# ==== docs for the web (on the androiddevdocs app engine server) =======================
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
|
||||
LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
|
||||
LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
|
||||
LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
|
||||
LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_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_ADDITIONAL_JAVA_DIR)
|
||||
LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
|
||||
LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl /
|
||||
|
||||
LOCAL_MODULE := online-system-api-sdk
|
||||
|
||||
LOCAL_DROIDDOC_OPTIONS:= \
|
||||
$(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
|
||||
-referenceonly \
|
||||
-showAnnotation android.annotation.SystemApi \
|
||||
-title "Android SDK - Including system APIs." \
|
||||
-toroot / \
|
||||
-hide 101 \
|
||||
-hide 104 \
|
||||
-hide 108 \
|
||||
-hdf android.whichdoc online \
|
||||
$(sample_groups) \
|
||||
-hdf android.hasSamples true \
|
||||
-samplesdir $(samples_dir)
|
||||
|
||||
LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
|
||||
|
||||
LOCAL_UNINSTALLABLE_MODULE := true
|
||||
|
||||
include $(BUILD_DROIDDOC)
|
||||
|
||||
# ==== docs for the web (on the devsite app engine server) =======================
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
|
||||
LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
|
||||
LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
|
||||
LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
|
||||
LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_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_ADDITIONAL_JAVA_DIR)
|
||||
LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
|
||||
# specify a second html input dir and an output path relative to OUT_DIR)
|
||||
LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl /
|
||||
|
||||
LOCAL_MODULE := ds
|
||||
|
||||
LOCAL_DROIDDOC_OPTIONS:= \
|
||||
$(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
|
||||
-toroot / \
|
||||
-hdf android.whichdoc online \
|
||||
-devsite \
|
||||
-yamlV2 \
|
||||
$(sample_groups) \
|
||||
-hdf android.hasSamples true \
|
||||
-samplesdir $(samples_dir)
|
||||
|
||||
LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
|
||||
|
||||
include $(BUILD_DROIDDOC)
|
||||
|
||||
# ==== docs for the web (on the devsite app engine server) =======================
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
|
||||
LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
|
||||
LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
|
||||
LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
|
||||
LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_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_ADDITIONAL_JAVA_DIR)
|
||||
LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
|
||||
# specify a second html input dir and an output path relative to OUT_DIR)
|
||||
LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl /
|
||||
|
||||
LOCAL_MODULE := ds-static
|
||||
|
||||
LOCAL_DROIDDOC_OPTIONS:= \
|
||||
$(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
|
||||
-hdf android.whichdoc online \
|
||||
-staticonly \
|
||||
-toroot / \
|
||||
-devsite \
|
||||
-ignoreJdLinks
|
||||
|
||||
LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
|
||||
|
||||
include $(BUILD_DROIDDOC)
|
||||
|
||||
# ==== generates full navtree for resolving @links in ds postprocessing ====
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
|
||||
LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
|
||||
LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
|
||||
LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
|
||||
LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
|
||||
LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
|
||||
LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
|
||||
LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
|
||||
LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
|
||||
|
||||
LOCAL_MODULE := ds-ref-navtree
|
||||
|
||||
LOCAL_DROIDDOC_OPTIONS:= \
|
||||
$(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
|
||||
-hdf android.whichdoc online \
|
||||
-toroot / \
|
||||
-atLinksNavtree \
|
||||
-navtreeonly
|
||||
|
||||
LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
|
||||
|
||||
include $(BUILD_DROIDDOC)
|
||||
|
||||
# ==== site updates for docs (on the androiddevdocs app engine server) =======================
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
|
||||
LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
|
||||
LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
|
||||
LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
|
||||
LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_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_ADDITIONAL_JAVA_DIR)
|
||||
LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
|
||||
LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl /
|
||||
|
||||
LOCAL_MODULE := online-sdk-dev
|
||||
|
||||
LOCAL_DROIDDOC_OPTIONS:= \
|
||||
$(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
|
||||
-toroot / \
|
||||
-hdf android.whichdoc online \
|
||||
$(sample_groups) \
|
||||
-hdf android.hasSamples true \
|
||||
-samplesdir $(samples_dir)
|
||||
|
||||
LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
|
||||
|
||||
include $(BUILD_DROIDDOC)
|
||||
|
||||
# ==== docs that have all of the stuff that's @hidden =======================
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
|
||||
LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
|
||||
LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
|
||||
LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_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_ADDITIONAL_JAVA_DIR)
|
||||
LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
|
||||
|
||||
LOCAL_MODULE := hidden
|
||||
LOCAL_DROIDDOC_OPTIONS:=\
|
||||
$(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
|
||||
-referenceonly \
|
||||
-title "Android SDK - Including hidden APIs."
|
||||
# -hidden
|
||||
|
||||
LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
|
||||
|
||||
include $(BUILD_DROIDDOC)
|
||||
# sdk.atree needs to copy the whole dir: $(OUT_DOCS)/offline-sdk to the final zip.
|
||||
# So keep offline-sdk-timestamp target here, and unzip offline-sdk-docs.zip to
|
||||
# $(OUT_DOCS)/offline-sdk.
|
||||
$(OUT_DOCS)/offline-sdk-timestamp: $(OUT_DOCS)/offline-sdk-docs-docs.zip
|
||||
$(hide) rm -rf $(OUT_DOCS)/offline-sdk
|
||||
$(hide) mkdir -p $(OUT_DOCS)/offline-sdk
|
||||
( unzip -qo $< -d $(OUT_DOCS)/offline-sdk && touch -f $@ ) || exit 1
|
||||
|
||||
# ==== java proto device library (for test only) ==============================
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
Reference in New Issue
Block a user