2015-05-07 03:23:20 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2008 The Android Open Source Project
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
#
|
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
|
2017-11-16 00:15:28 -08:00
|
|
|
# Load framework-specific path mappings used later in the build.
|
|
|
|
include $(LOCAL_PATH)/pathmap.mk
|
2015-05-07 03:23:20 +00:00
|
|
|
|
|
|
|
# Build the master framework library.
|
|
|
|
# The framework contains too many method references (>64K) for poor old DEX.
|
|
|
|
# So we first build the framework as a monolithic static library then split it
|
|
|
|
# up into smaller pieces.
|
|
|
|
# ============================================================
|
|
|
|
|
|
|
|
# embedded builds use nothing in frameworks/base
|
|
|
|
ifneq ($(ANDROID_BUILD_EMBEDDED),true)
|
|
|
|
|
|
|
|
# Copy AIDL files to be preprocessed and included in the SDK,
|
|
|
|
# specified relative to the root of the build tree.
|
|
|
|
# ============================================================
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
2017-12-15 17:30:33 -08:00
|
|
|
aidl_parcelables :=
|
|
|
|
define stubs-to-aidl-parcelables
|
|
|
|
gen := $(TARGET_OUT_COMMON_INTERMEDIATES)/$1.aidl
|
|
|
|
aidl_parcelables += $$(gen)
|
|
|
|
$$(gen): $(call java-lib-header-files,$1) | $(HOST_OUT_EXECUTABLES)/sdkparcelables
|
|
|
|
@echo Extract SDK parcelables: $$@
|
|
|
|
rm -f $$@
|
|
|
|
$(HOST_OUT_EXECUTABLES)/sdkparcelables $$< $$@
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(foreach stubs,android_stubs_current android_test_stubs_current android_system_stubs_current,\
|
|
|
|
$(eval $(call stubs-to-aidl-parcelables,$(stubs))))
|
|
|
|
|
2015-05-07 03:23:20 +00:00
|
|
|
gen := $(TARGET_OUT_COMMON_INTERMEDIATES)/framework.aidl
|
2017-12-15 17:30:33 -08:00
|
|
|
.KATI_RESTAT: $(gen)
|
|
|
|
$(gen): $(aidl_parcelables)
|
|
|
|
@echo Combining SDK parcelables: $@
|
|
|
|
rm -f $@.tmp
|
|
|
|
cat $^ | sort -u > $@.tmp
|
|
|
|
$(call commit-change-for-toc,$@)
|
2015-05-07 03:23:20 +00:00
|
|
|
|
|
|
|
# the documentation
|
|
|
|
# ============================================================
|
|
|
|
|
|
|
|
# TODO: deal with com/google/android/googleapps
|
|
|
|
packages_to_document := \
|
2017-11-16 00:15:28 -08:00
|
|
|
android \
|
|
|
|
javax/microedition/khronos \
|
|
|
|
org/apache/http/conn \
|
|
|
|
org/apache/http/params \
|
2015-05-07 03:23:20 +00:00
|
|
|
|
|
|
|
# include definition of libcore_to_document
|
|
|
|
include libcore/Docs.mk
|
|
|
|
|
|
|
|
non_base_dirs := \
|
2017-11-16 00:15:28 -08:00
|
|
|
../opt/telephony/src/java/android/telephony \
|
|
|
|
../opt/telephony/src/java/android/telephony/gsm \
|
|
|
|
../opt/net/voip/src/java/android/net/rtp \
|
|
|
|
../opt/net/voip/src/java/android/net/sip \
|
2015-05-07 03:23:20 +00:00
|
|
|
|
2017-11-16 00:15:28 -08:00
|
|
|
# Find all files in specific directories (relative to frameworks/base)
|
|
|
|
# to document and check apis
|
|
|
|
files_to_check_apis := \
|
|
|
|
$(call find-other-java-files, \
|
|
|
|
$(non_base_dirs) \
|
|
|
|
)
|
|
|
|
|
|
|
|
# Find all files in specific packages that were used to compile
|
|
|
|
# framework.jar to document and check apis
|
|
|
|
files_to_check_apis += \
|
|
|
|
$(addprefix ../../,\
|
|
|
|
$(filter \
|
|
|
|
$(foreach dir,$(FRAMEWORKS_BASE_JAVA_SRC_DIRS),\
|
|
|
|
$(foreach package,$(packages_to_document),\
|
|
|
|
$(dir)/$(package)/%.java)),\
|
|
|
|
$(SOONG_FRAMEWORK_SRCS)))
|
|
|
|
|
|
|
|
# Find all generated files that were used to compile framework.jar
|
2017-12-04 13:45:19 -08:00
|
|
|
files_to_check_apis_generated := \
|
|
|
|
$(filter $(OUT_DIR)/%,\
|
|
|
|
$(SOONG_FRAMEWORK_SRCS))
|
2015-12-03 07:39:55 -08:00
|
|
|
|
2015-05-07 03:23:20 +00:00
|
|
|
# These are relative to frameworks/base
|
|
|
|
# FRAMEWORKS_BASE_SUBDIRS comes from build/core/pathmap.mk
|
2017-11-16 00:15:28 -08:00
|
|
|
files_to_document := \
|
|
|
|
$(files_to_check_apis) \
|
|
|
|
$(call find-other-java-files,\
|
2017-12-13 14:34:31 +00:00
|
|
|
test-base/src \
|
2017-12-15 15:49:08 +00:00
|
|
|
test-mock/src \
|
2017-11-16 00:15:28 -08:00
|
|
|
test-runner/src)
|
2015-12-03 07:39:55 -08:00
|
|
|
|
2015-05-07 03:23:20 +00:00
|
|
|
# These are relative to frameworks/base
|
|
|
|
html_dirs := \
|
|
|
|
$(FRAMEWORKS_BASE_SUBDIRS) \
|
2017-11-16 00:15:28 -08:00
|
|
|
$(non_base_dirs) \
|
2015-05-07 03:23:20 +00:00
|
|
|
|
|
|
|
# Common sources for doc check and api check
|
|
|
|
common_src_files := \
|
|
|
|
$(call find-other-html-files, $(html_dirs)) \
|
2017-11-16 00:15:28 -08:00
|
|
|
$(addprefix ../../, $(libcore_to_document)) \
|
2015-05-07 03:23:20 +00:00
|
|
|
|
|
|
|
# These are relative to frameworks/base
|
|
|
|
framework_docs_LOCAL_SRC_FILES := \
|
2017-11-16 00:15:28 -08:00
|
|
|
$(files_to_document) \
|
|
|
|
$(common_src_files) \
|
2015-05-07 03:23:20 +00:00
|
|
|
|
|
|
|
# These are relative to frameworks/base
|
|
|
|
framework_docs_LOCAL_API_CHECK_SRC_FILES := \
|
2017-11-16 00:15:28 -08:00
|
|
|
$(files_to_check_apis) \
|
|
|
|
$(common_src_files) \
|
2015-05-07 03:23:20 +00:00
|
|
|
|
|
|
|
# This is used by ide.mk as the list of source files that are
|
|
|
|
# always included.
|
|
|
|
INTERNAL_SDK_SOURCE_DIRS := $(addprefix $(LOCAL_PATH)/,$(dirs_to_document))
|
|
|
|
|
|
|
|
framework_docs_LOCAL_DROIDDOC_SOURCE_PATH := \
|
|
|
|
$(FRAMEWORKS_BASE_JAVA_SRC_DIRS)
|
|
|
|
|
2017-11-16 00:15:28 -08:00
|
|
|
framework_docs_LOCAL_SRCJARS := $(SOONG_FRAMEWORK_SRCJARS)
|
|
|
|
|
2017-12-04 13:45:19 -08:00
|
|
|
framework_docs_LOCAL_GENERATED_SOURCES := \
|
|
|
|
$(libcore_to_document_generated) \
|
|
|
|
$(files_to_check_apis_generated) \
|
2015-05-07 03:23:20 +00:00
|
|
|
|
|
|
|
framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES := \
|
2015-02-17 16:58:52 +00:00
|
|
|
core-oj \
|
2015-05-07 03:23:20 +00:00
|
|
|
core-libart \
|
|
|
|
conscrypt \
|
|
|
|
bouncycastle \
|
|
|
|
okhttp \
|
|
|
|
ext \
|
2015-08-03 13:54:28 +01:00
|
|
|
icu4j \
|
2015-05-07 03:23:20 +00:00
|
|
|
framework \
|
2017-06-29 14:58:43 +01:00
|
|
|
voip-common \
|
2015-05-07 03:23:20 +00:00
|
|
|
|
2017-04-05 10:21:58 -04:00
|
|
|
# Platform docs can refer to Support Library APIs, but we don't actually build
|
|
|
|
# them as part of the docs target, so we need to include them on the classpath.
|
2015-05-07 03:23:20 +00:00
|
|
|
framework_docs_LOCAL_JAVA_LIBRARIES := \
|
|
|
|
$(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES) \
|
|
|
|
$(FRAMEWORKS_SUPPORT_JAVA_LIBRARIES)
|
|
|
|
|
|
|
|
framework_docs_LOCAL_MODULE_CLASS := JAVA_LIBRARIES
|
|
|
|
framework_docs_LOCAL_DROIDDOC_HTML_DIR := docs/html
|
|
|
|
# The since flag (-since N.xml API_LEVEL) is used to add API Level information
|
|
|
|
# to the reference documentation. Must be in order of oldest to newest.
|
|
|
|
#
|
|
|
|
# Conscrypt (com.android.org.conscrypt) is an implementation detail and should
|
|
|
|
# not be referenced in the documentation.
|
|
|
|
framework_docs_LOCAL_DROIDDOC_OPTIONS := \
|
2017-04-24 18:06:20 -06:00
|
|
|
-android \
|
2015-05-07 03:23:20 +00:00
|
|
|
-knowntags ./frameworks/base/docs/knowntags.txt \
|
2015-07-27 14:02:11 +01:00
|
|
|
-knowntags ./libcore/known_oj_tags.txt \
|
2017-06-05 17:38:17 -06:00
|
|
|
-manifest ./frameworks/base/core/res/AndroidManifest.xml \
|
2017-11-24 15:58:38 +00:00
|
|
|
-hidePackage com.android.okhttp \
|
2015-05-07 03:23:20 +00:00
|
|
|
-hidePackage com.android.org.conscrypt \
|
2017-11-27 10:32:07 +00:00
|
|
|
-hidePackage com.android.server \
|
2015-05-07 03:23:20 +00:00
|
|
|
-since $(SRC_API_DIR)/1.xml 1 \
|
|
|
|
-since $(SRC_API_DIR)/2.xml 2 \
|
|
|
|
-since $(SRC_API_DIR)/3.xml 3 \
|
|
|
|
-since $(SRC_API_DIR)/4.xml 4 \
|
|
|
|
-since $(SRC_API_DIR)/5.xml 5 \
|
|
|
|
-since $(SRC_API_DIR)/6.xml 6 \
|
|
|
|
-since $(SRC_API_DIR)/7.xml 7 \
|
|
|
|
-since $(SRC_API_DIR)/8.xml 8 \
|
|
|
|
-since $(SRC_API_DIR)/9.xml 9 \
|
|
|
|
-since $(SRC_API_DIR)/10.xml 10 \
|
|
|
|
-since $(SRC_API_DIR)/11.xml 11 \
|
|
|
|
-since $(SRC_API_DIR)/12.xml 12 \
|
|
|
|
-since $(SRC_API_DIR)/13.xml 13 \
|
|
|
|
-since $(SRC_API_DIR)/14.txt 14 \
|
|
|
|
-since $(SRC_API_DIR)/15.txt 15 \
|
|
|
|
-since $(SRC_API_DIR)/16.txt 16 \
|
|
|
|
-since $(SRC_API_DIR)/17.txt 17 \
|
|
|
|
-since $(SRC_API_DIR)/18.txt 18 \
|
|
|
|
-since $(SRC_API_DIR)/19.txt 19 \
|
|
|
|
-since $(SRC_API_DIR)/20.txt 20 \
|
|
|
|
-since $(SRC_API_DIR)/21.txt 21 \
|
|
|
|
-since $(SRC_API_DIR)/22.txt 22 \
|
2015-08-12 19:45:22 -07:00
|
|
|
-since $(SRC_API_DIR)/23.txt 23 \
|
2016-06-14 16:26:28 -07:00
|
|
|
-since $(SRC_API_DIR)/24.txt 24 \
|
2016-10-14 10:27:08 -07:00
|
|
|
-since $(SRC_API_DIR)/25.txt 25 \
|
2017-06-09 14:43:32 -07:00
|
|
|
-since $(SRC_API_DIR)/26.txt 26 \
|
2017-10-06 14:27:20 -07:00
|
|
|
-since $(SRC_API_DIR)/27.txt 27 \
|
2017-11-27 15:02:10 -07:00
|
|
|
-werror -lerror -hide 111 -hide 113 -hide 125 -hide 126 -hide 127 -hide 128 \
|
2017-04-24 18:06:20 -06:00
|
|
|
-overview $(LOCAL_PATH)/core/java/overview.html \
|
2015-05-07 03:23:20 +00:00
|
|
|
|
|
|
|
framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR:= \
|
|
|
|
$(call intermediates-dir-for,JAVA_LIBRARIES,framework,,COMMON)
|
|
|
|
|
|
|
|
framework_docs_LOCAL_ADDITIONAL_JAVA_DIR:= \
|
2017-04-05 10:21:58 -04:00
|
|
|
$(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR)
|
2015-05-07 03:23:20 +00:00
|
|
|
|
|
|
|
framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES := \
|
2015-07-14 13:39:23 +01:00
|
|
|
frameworks/base/docs/knowntags.txt \
|
2017-10-27 10:46:53 -07:00
|
|
|
$(libcore_to_document_generated)
|
2015-05-07 03:23:20 +00:00
|
|
|
|
|
|
|
samples_dir := development/samples/browseable
|
|
|
|
|
|
|
|
# Whitelist of valid groups, used for default TOC grouping. Each sample must
|
|
|
|
# belong to one (and only one) group. Assign samples to groups by setting
|
|
|
|
# a sample.group var to one of these groups in the sample's _index.jd.
|
|
|
|
sample_groups := -samplegroup Admin \
|
|
|
|
-samplegroup Background \
|
|
|
|
-samplegroup Connectivity \
|
|
|
|
-samplegroup Content \
|
|
|
|
-samplegroup Input \
|
|
|
|
-samplegroup Media \
|
|
|
|
-samplegroup Notification \
|
|
|
|
-samplegroup RenderScript \
|
|
|
|
-samplegroup Security \
|
|
|
|
-samplegroup Sensors \
|
2015-05-27 14:50:51 -07:00
|
|
|
-samplegroup System \
|
2015-05-07 03:23:20 +00:00
|
|
|
-samplegroup Testing \
|
|
|
|
-samplegroup UI \
|
|
|
|
-samplegroup Views \
|
|
|
|
-samplegroup Wearable
|
|
|
|
|
|
|
|
## SDK version identifiers used in the published docs
|
|
|
|
# major[.minor] version for current SDK. (full releases only)
|
2016-08-29 18:36:50 -07:00
|
|
|
framework_docs_SDK_VERSION:=7.0
|
2015-05-07 03:23:20 +00:00
|
|
|
# release version (ie "Release x") (full releases only)
|
|
|
|
framework_docs_SDK_REL_ID:=1
|
|
|
|
|
|
|
|
framework_docs_LOCAL_DROIDDOC_OPTIONS += \
|
2017-03-03 13:09:15 -08:00
|
|
|
-hdf dac true \
|
2017-03-21 13:43:31 -07:00
|
|
|
-hdf sdk.codename O \
|
|
|
|
-hdf sdk.preview.version 1 \
|
2015-05-07 03:23:20 +00:00
|
|
|
-hdf sdk.version $(framework_docs_SDK_VERSION) \
|
|
|
|
-hdf sdk.rel.id $(framework_docs_SDK_REL_ID) \
|
2017-03-21 13:43:31 -07:00
|
|
|
-hdf sdk.preview 0 \
|
|
|
|
-resourcesdir $(LOCAL_PATH)/docs/html/reference/images/ \
|
|
|
|
-resourcesoutdir reference/android/images/
|
2015-05-07 03:23:20 +00:00
|
|
|
|
2017-04-05 10:21:58 -04:00
|
|
|
# Federate Support Library references against local API file.
|
|
|
|
framework_docs_LOCAL_DROIDDOC_OPTIONS += \
|
|
|
|
-federate SupportLib https://developer.android.com \
|
|
|
|
-federationapi SupportLib prebuilts/sdk/current/support-api.txt
|
|
|
|
|
2017-11-29 13:14:27 -07:00
|
|
|
# ==== Public API diff ===========================
|
2017-07-13 17:10:14 -04:00
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES := $(framework_docs_LOCAL_API_CHECK_SRC_FILES)
|
2017-12-04 13:45:19 -08:00
|
|
|
LOCAL_GENERATED_SOURCES := $(framework_docs_LOCAL_GENERATED_SOURCES)
|
2017-11-16 00:15:28 -08:00
|
|
|
LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
|
2017-07-13 17:10:14 -04:00
|
|
|
LOCAL_JAVA_LIBRARIES := $(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES)
|
|
|
|
LOCAL_MODULE_CLASS := $(framework_docs_LOCAL_MODULE_CLASS)
|
|
|
|
LOCAL_ADDITIONAL_JAVA_DIR := $(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR)
|
|
|
|
LOCAL_ADDITIONAL_DEPENDENCIES := \
|
|
|
|
$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES) \
|
|
|
|
$(INTERNAL_PLATFORM_API_FILE)
|
|
|
|
|
|
|
|
LOCAL_MODULE := offline-sdk-referenceonly
|
|
|
|
|
|
|
|
last_released_sdk_version := $(lastword $(call numerically_sort, \
|
|
|
|
$(filter-out current, \
|
|
|
|
$(patsubst $(SRC_API_DIR)/%.txt,%, $(wildcard $(SRC_API_DIR)/*.txt)) \
|
|
|
|
)\
|
|
|
|
))
|
|
|
|
|
|
|
|
LOCAL_APIDIFF_OLDAPI := $(LOCAL_PATH)/../../$(SRC_API_DIR)/$(last_released_sdk_version)
|
|
|
|
LOCAL_APIDIFF_NEWAPI := $(LOCAL_PATH)/../../$(basename $(INTERNAL_PLATFORM_API_FILE))
|
|
|
|
|
|
|
|
include $(BUILD_APIDIFF)
|
|
|
|
|
2017-12-08 14:52:37 -07:00
|
|
|
# Hack to get diffs included in docs output
|
|
|
|
out_zip := $(OUT_DOCS)/$(LOCAL_MODULE)-docs.zip
|
|
|
|
$(out_zip): $(full_target)
|
|
|
|
|
2017-11-29 13:14:27 -07:00
|
|
|
# ==== System API diff ===========================
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES := $(framework_docs_LOCAL_API_CHECK_SRC_FILES)
|
2017-12-04 13:45:19 -08:00
|
|
|
LOCAL_GENERATED_SOURCES := $(framework_docs_LOCAL_GENERATED_SOURCES)
|
2017-11-16 00:15:28 -08:00
|
|
|
LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
|
2017-11-29 13:14:27 -07:00
|
|
|
LOCAL_JAVA_LIBRARIES := $(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES)
|
|
|
|
LOCAL_MODULE_CLASS := $(framework_docs_LOCAL_MODULE_CLASS)
|
|
|
|
LOCAL_ADDITIONAL_JAVA_DIR := $(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR)
|
|
|
|
LOCAL_ADDITIONAL_DEPENDENCIES := \
|
|
|
|
$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES) \
|
|
|
|
$(INTERNAL_PLATFORM_SYSTEM_API_FILE)
|
|
|
|
|
|
|
|
LOCAL_MODULE := offline-system-sdk-referenceonly
|
|
|
|
|
|
|
|
last_released_sdk_version := $(lastword $(call numerically_sort, \
|
|
|
|
$(filter-out current, \
|
|
|
|
$(patsubst $(SRC_SYSTEM_API_DIR)/%.txt,%, $(wildcard $(SRC_SYSTEM_API_DIR)/*.txt)) \
|
|
|
|
)\
|
|
|
|
))
|
|
|
|
|
|
|
|
LOCAL_APIDIFF_OLDAPI := $(LOCAL_PATH)/../../$(SRC_SYSTEM_API_DIR)/$(last_released_sdk_version)
|
|
|
|
LOCAL_APIDIFF_NEWAPI := $(LOCAL_PATH)/../../$(basename $(INTERNAL_PLATFORM_SYSTEM_API_FILE))
|
|
|
|
|
|
|
|
include $(BUILD_APIDIFF)
|
|
|
|
|
2017-12-08 14:52:37 -07:00
|
|
|
# Hack to get diffs included in docs output
|
|
|
|
out_zip := $(OUT_DOCS)/$(LOCAL_MODULE)-docs.zip
|
|
|
|
$(out_zip): $(full_target)
|
|
|
|
|
2015-05-07 03:23:20 +00:00
|
|
|
# ==== the api stubs and current.xml ===========================
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES:=$(framework_docs_LOCAL_API_CHECK_SRC_FILES)
|
2017-12-04 13:45:19 -08:00
|
|
|
LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
|
2017-11-16 00:15:28 -08:00
|
|
|
LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
|
2015-05-07 03:23:20 +00:00
|
|
|
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
|
|
|
|
|
2015-07-16 14:20:22 -07:00
|
|
|
LOCAL_DROIDDOC_STUB_OUT_DIR := $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/android_stubs_current_intermediates/src
|
|
|
|
|
2015-05-07 03:23:20 +00:00
|
|
|
LOCAL_DROIDDOC_OPTIONS:=\
|
|
|
|
$(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
|
2016-09-01 19:52:17 -07:00
|
|
|
-referenceonly \
|
2015-05-07 03:23:20 +00:00
|
|
|
-api $(INTERNAL_PLATFORM_API_FILE) \
|
2018-01-16 15:03:20 +00:00
|
|
|
-privateApi $(INTERNAL_PLATFORM_PRIVATE_API_FILE) \
|
|
|
|
-privateDexApi $(INTERNAL_PLATFORM_PRIVATE_DEX_API_FILE) \
|
2015-05-07 03:23:20 +00:00
|
|
|
-removedApi $(INTERNAL_PLATFORM_REMOVED_API_FILE) \
|
|
|
|
-nodocs
|
|
|
|
|
2017-02-21 14:30:58 -08:00
|
|
|
LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
|
2015-05-07 03:23:20 +00:00
|
|
|
|
|
|
|
LOCAL_UNINSTALLABLE_MODULE := true
|
|
|
|
|
|
|
|
include $(BUILD_DROIDDOC)
|
|
|
|
|
2018-01-16 15:03:20 +00:00
|
|
|
$(full_target): .KATI_IMPLICIT_OUTPUTS := $(INTERNAL_PLATFORM_API_FILE) \
|
|
|
|
$(INTERNAL_PLATFORM_PRIVATE_API_FILE) \
|
|
|
|
$(INTERNAL_PLATFORM_PRIVATE_DEX_API_FILE)
|
2015-05-07 03:23:20 +00:00
|
|
|
$(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)
|
2017-12-04 13:45:19 -08:00
|
|
|
LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
|
2017-11-16 00:15:28 -08:00
|
|
|
LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
|
2015-05-07 03:23:20 +00:00
|
|
|
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
|
|
|
|
|
2015-07-16 14:20:22 -07:00
|
|
|
LOCAL_DROIDDOC_STUB_OUT_DIR := $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/android_system_stubs_current_intermediates/src
|
|
|
|
|
2015-05-07 03:23:20 +00:00
|
|
|
LOCAL_DROIDDOC_OPTIONS:=\
|
|
|
|
$(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
|
2016-09-01 19:52:17 -07:00
|
|
|
-referenceonly \
|
2015-05-07 03:23:20 +00:00
|
|
|
-showAnnotation android.annotation.SystemApi \
|
|
|
|
-api $(INTERNAL_PLATFORM_SYSTEM_API_FILE) \
|
2018-01-16 15:03:20 +00:00
|
|
|
-privateApi $(INTERNAL_PLATFORM_SYSTEM_PRIVATE_API_FILE) \
|
|
|
|
-privateDexApi $(INTERNAL_PLATFORM_SYSTEM_PRIVATE_DEX_API_FILE) \
|
2015-05-07 03:23:20 +00:00
|
|
|
-removedApi $(INTERNAL_PLATFORM_SYSTEM_REMOVED_API_FILE) \
|
2017-05-09 19:01:09 -06:00
|
|
|
-exactApi $(INTERNAL_PLATFORM_SYSTEM_EXACT_API_FILE) \
|
2015-05-07 03:23:20 +00:00
|
|
|
-nodocs
|
|
|
|
|
2017-02-21 14:30:58 -08:00
|
|
|
LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
|
2015-05-07 03:23:20 +00:00
|
|
|
|
|
|
|
LOCAL_UNINSTALLABLE_MODULE := true
|
|
|
|
|
|
|
|
include $(BUILD_DROIDDOC)
|
|
|
|
|
2018-01-16 15:03:20 +00:00
|
|
|
$(full_target): .KATI_IMPLICIT_OUTPUTS := $(INTERNAL_PLATFORM_SYSTEM_API_FILE) \
|
|
|
|
$(INTERNAL_PLATFORM_SYSTEM_PRIVATE_API_FILE) \
|
|
|
|
$(INTERNAL_PLATFORM_SYSTEM_PRIVATE_DEX_API_FILE)
|
2015-05-07 03:23:20 +00:00
|
|
|
$(call dist-for-goals,sdk,$(INTERNAL_PLATFORM_SYSTEM_API_FILE))
|
|
|
|
|
2015-11-06 15:21:13 +00:00
|
|
|
# ==== the test api stubs ===================================
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES:=$(framework_docs_LOCAL_API_CHECK_SRC_FILES)
|
2017-12-04 13:45:19 -08:00
|
|
|
LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
|
2017-11-16 00:15:28 -08:00
|
|
|
LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
|
2015-11-06 15:21:13 +00:00
|
|
|
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) \
|
2016-09-01 19:52:17 -07:00
|
|
|
-referenceonly \
|
2015-11-06 15:21:13 +00:00
|
|
|
-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) \
|
2017-05-09 19:01:09 -06:00
|
|
|
-exactApi $(INTERNAL_PLATFORM_TEST_EXACT_API_FILE) \
|
2015-11-06 15:21:13 +00:00
|
|
|
-nodocs
|
|
|
|
|
2017-02-21 14:30:58 -08:00
|
|
|
LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
|
2015-11-06 15:21:13 +00:00
|
|
|
|
|
|
|
LOCAL_UNINSTALLABLE_MODULE := true
|
|
|
|
|
|
|
|
include $(BUILD_DROIDDOC)
|
|
|
|
|
|
|
|
$(INTERNAL_PLATFORM_TEST_API_FILE): $(full_target)
|
|
|
|
$(call dist-for-goals,sdk,$(INTERNAL_PLATFORM_TEST_API_FILE))
|
|
|
|
|
2015-05-07 03:23:20 +00:00
|
|
|
# ==== check javadoc comments but don't generate docs ========
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
|
2017-12-04 13:45:19 -08:00
|
|
|
LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
|
2017-11-16 00:15:28 -08:00
|
|
|
LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
|
2015-05-07 03:23:20 +00:00
|
|
|
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) \
|
2016-09-01 19:52:17 -07:00
|
|
|
-referenceonly \
|
2015-05-07 03:23:20 +00:00
|
|
|
-parsecomments
|
|
|
|
|
2017-02-21 14:30:58 -08:00
|
|
|
LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
|
2015-05-07 03:23:20 +00:00
|
|
|
|
|
|
|
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)
|
2017-12-04 13:45:19 -08:00
|
|
|
LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
|
2017-11-16 00:15:28 -08:00
|
|
|
LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
|
2015-05-07 03:23:20 +00:00
|
|
|
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
|
|
|
|
|
2016-06-14 17:11:57 -07:00
|
|
|
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
|
|
|
|
|
2017-02-21 14:30:58 -08:00
|
|
|
LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
|
2016-06-14 17:11:57 -07:00
|
|
|
|
|
|
|
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)
|
|
|
|
|
|
|
|
|
2017-11-29 13:14:27 -07:00
|
|
|
# ==== Public API static reference docs ==================================
|
2016-06-14 17:11:57 -07:00
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
|
2017-12-04 13:45:19 -08:00
|
|
|
LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
|
2017-11-16 00:15:28 -08:00
|
|
|
LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
|
2016-06-14 17:11:57 -07:00
|
|
|
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
|
|
|
|
|
2016-03-07 18:38:08 -08:00
|
|
|
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 \
|
2017-03-21 13:43:31 -07:00
|
|
|
-referenceonly
|
2016-03-07 18:38:08 -08:00
|
|
|
|
2017-02-21 14:30:58 -08:00
|
|
|
LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
|
2016-03-07 18:38:08 -08:00
|
|
|
|
|
|
|
include $(BUILD_DROIDDOC)
|
|
|
|
|
2017-11-29 13:14:27 -07:00
|
|
|
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)
|
2017-12-04 13:45:19 -08:00
|
|
|
LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
|
2017-11-16 00:15:28 -08:00
|
|
|
LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
|
2017-11-29 13:14:27 -07:00
|
|
|
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)
|
|
|
|
|
2016-03-07 18:38:08 -08:00
|
|
|
static_doc_index_redirect := $(out_dir)/index.html
|
2016-08-31 08:42:09 -07:00
|
|
|
$(static_doc_index_redirect): $(LOCAL_PATH)/docs/docs-documentation-redirect.html
|
2016-03-23 00:42:44 -07:00
|
|
|
$(copy-file-to-target)
|
2016-03-07 18:38:08 -08:00
|
|
|
|
2016-09-21 14:05:50 -07:00
|
|
|
static_doc_properties := $(out_dir)/source.properties
|
|
|
|
$(static_doc_properties): \
|
|
|
|
$(LOCAL_PATH)/docs/source.properties | $(ACP)
|
|
|
|
$(hide) mkdir -p $(dir $@)
|
|
|
|
$(hide) $(ACP) $< $@
|
|
|
|
|
2016-03-07 18:38:08 -08:00
|
|
|
$(full_target): $(static_doc_index_redirect)
|
2016-09-21 14:05:50 -07:00
|
|
|
$(full_target): $(static_doc_properties)
|
2016-03-07 18:38:08 -08:00
|
|
|
$(full_target): $(framework_built)
|
|
|
|
|
2016-03-10 14:13:30 -08:00
|
|
|
|
2015-05-07 03:23:20 +00:00
|
|
|
# ==== docs for the web (on the androiddevdocs app engine server) =======================
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
|
2017-12-04 13:45:19 -08:00
|
|
|
LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
|
2017-11-16 00:15:28 -08:00
|
|
|
LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
|
2015-05-07 03:23:20 +00:00
|
|
|
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)
|
|
|
|
|
2017-02-21 14:30:58 -08:00
|
|
|
LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
|
2015-05-07 03:23:20 +00:00
|
|
|
|
|
|
|
include $(BUILD_DROIDDOC)
|
|
|
|
|
|
|
|
# ==== docs for the web (on the androiddevdocs app engine server) =======================
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
|
2017-12-04 13:45:19 -08:00
|
|
|
LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
|
2017-11-16 00:15:28 -08:00
|
|
|
LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
|
2015-05-07 03:23:20 +00:00
|
|
|
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) \
|
2016-09-01 19:52:17 -07:00
|
|
|
-referenceonly \
|
2015-05-07 03:23:20 +00:00
|
|
|
-showAnnotation android.annotation.SystemApi \
|
|
|
|
-title "Android SDK - Including system APIs." \
|
|
|
|
-toroot / \
|
2016-05-31 17:25:48 -07:00
|
|
|
-hide 101 \
|
|
|
|
-hide 104 \
|
|
|
|
-hide 108 \
|
2015-05-07 03:23:20 +00:00
|
|
|
-hdf android.whichdoc online \
|
|
|
|
$(sample_groups) \
|
|
|
|
-hdf android.hasSamples true \
|
|
|
|
-samplesdir $(samples_dir)
|
|
|
|
|
2017-02-21 14:30:58 -08:00
|
|
|
LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
|
2017-05-09 19:01:09 -06:00
|
|
|
|
2015-05-07 03:23:20 +00:00
|
|
|
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)
|
2017-12-04 13:45:19 -08:00
|
|
|
LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
|
2017-11-16 00:15:28 -08:00
|
|
|
LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
|
2015-05-07 03:23:20 +00:00
|
|
|
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)
|
2016-04-10 02:05:09 -07:00
|
|
|
LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl /
|
2015-05-07 03:23:20 +00:00
|
|
|
|
|
|
|
LOCAL_MODULE := ds
|
|
|
|
|
|
|
|
LOCAL_DROIDDOC_OPTIONS:= \
|
|
|
|
$(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
|
|
|
|
-toroot / \
|
|
|
|
-hdf android.whichdoc online \
|
2016-06-14 16:26:28 -07:00
|
|
|
-devsite \
|
2016-04-10 02:05:09 -07:00
|
|
|
$(sample_groups) \
|
|
|
|
-hdf android.hasSamples true \
|
|
|
|
-samplesdir $(samples_dir)
|
2015-05-07 03:23:20 +00:00
|
|
|
|
2017-02-21 14:30:58 -08:00
|
|
|
LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
|
2015-05-07 03:23:20 +00:00
|
|
|
|
|
|
|
include $(BUILD_DROIDDOC)
|
|
|
|
|
2016-06-14 16:26:28 -07:00
|
|
|
# ==== docs for the web (on the devsite app engine server) =======================
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
|
2017-12-04 13:45:19 -08:00
|
|
|
LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
|
2017-11-16 00:15:28 -08:00
|
|
|
LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
|
2016-06-14 16:26:28 -07:00
|
|
|
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
|
|
|
|
|
2017-02-21 14:30:58 -08:00
|
|
|
LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
|
2016-06-14 16:26:28 -07:00
|
|
|
|
|
|
|
include $(BUILD_DROIDDOC)
|
|
|
|
|
2016-09-13 16:44:25 -07:00
|
|
|
# ==== generates full navtree for resolving @links in ds postprocessing ====
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
|
2017-12-04 13:45:19 -08:00
|
|
|
LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
|
2017-11-16 00:15:28 -08:00
|
|
|
LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
|
2016-09-13 16:44:25 -07:00
|
|
|
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
|
|
|
|
|
2017-02-21 14:30:58 -08:00
|
|
|
LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
|
2016-09-13 16:44:25 -07:00
|
|
|
|
2016-06-14 16:26:28 -07:00
|
|
|
include $(BUILD_DROIDDOC)
|
2015-05-07 03:23:20 +00:00
|
|
|
|
2015-11-07 13:18:02 -08:00
|
|
|
# ==== site updates for docs (on the androiddevdocs app engine server) =======================
|
2015-05-07 03:23:20 +00:00
|
|
|
include $(CLEAR_VARS)
|
2015-11-07 13:18:02 -08:00
|
|
|
|
2015-05-07 03:23:20 +00:00
|
|
|
LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
|
2017-12-04 13:45:19 -08:00
|
|
|
LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
|
2017-11-16 00:15:28 -08:00
|
|
|
LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
|
2015-05-07 03:23:20 +00:00
|
|
|
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)
|
2015-11-07 13:18:02 -08:00
|
|
|
LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
|
2015-05-07 03:23:20 +00:00
|
|
|
LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
|
|
|
|
LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
|
2015-11-07 13:18:02 -08:00
|
|
|
LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl /
|
2015-05-07 03:23:20 +00:00
|
|
|
|
2015-11-07 13:18:02 -08:00
|
|
|
LOCAL_MODULE := online-sdk-dev
|
2015-05-07 03:23:20 +00:00
|
|
|
|
|
|
|
LOCAL_DROIDDOC_OPTIONS:= \
|
|
|
|
$(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
|
|
|
|
-toroot / \
|
|
|
|
-hdf android.whichdoc online \
|
|
|
|
$(sample_groups) \
|
|
|
|
-hdf android.hasSamples true \
|
|
|
|
-samplesdir $(samples_dir)
|
|
|
|
|
2017-02-21 14:30:58 -08:00
|
|
|
LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
|
2015-05-07 03:23:20 +00:00
|
|
|
|
|
|
|
include $(BUILD_DROIDDOC)
|
|
|
|
|
|
|
|
# ==== docs that have all of the stuff that's @hidden =======================
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
|
2017-12-04 13:45:19 -08:00
|
|
|
LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
|
2017-11-16 00:15:28 -08:00
|
|
|
LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
|
2015-05-07 03:23:20 +00:00
|
|
|
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) \
|
2016-09-01 19:52:17 -07:00
|
|
|
-referenceonly \
|
2015-05-07 03:23:20 +00:00
|
|
|
-title "Android SDK - Including hidden APIs."
|
|
|
|
# -hidden
|
|
|
|
|
2017-02-21 14:30:58 -08:00
|
|
|
LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
|
2015-05-07 03:23:20 +00:00
|
|
|
|
|
|
|
include $(BUILD_DROIDDOC)
|
|
|
|
|
First checkin of incident reporting.
There are a few major pieces here:
incidentd
---------
This daemon (started by init) runs and accepts incoming requests to take
incident reports. When prompted, it calls into various system services
and fills in an IncidentProto data structure, and then writes the report
into dropbox.
The next steps for incidentd:
- Security review of SELinux policies. These will be a subset of
the dumpstate permissions. Until this is done, incidentd is
not started at boot time.
incident
--------
This shell command calls into incidentd, and can initiate an incident
report and either capture the output or leave for dropbox.
incident_report
---------------
This host side tool can call adb shell with the correct parameters
and also format the incident report as text. This formatting code
was left of the device on purpose. Right now it's pretty small, but
as the number of fields increases, the metadata and code to do the
formatting will start to grow.
The incident_report command also contains a workaround to let it
work before incidentd is turned on by default. Right now, it is
implemented to call adb shell dumpsys <service> --proto directly,
whereas in the future it will go through the full incidentd flow.
incident_section_gen
--------------------
A build-time tool that generates a stripped down set of information
about the fields that are available.
libincident
-----------
This library contains the code to connect to incidentd, and the
meta proto definitions that are used by the framework protos.
The basics are here now, but they are not fully fleshed out yet.
The privacy.proto file contains annotations that can go in the
proto file that we will later use to filter which fields are
uploaded, and which are used by local sources. For example, a
device in a test lab is safe to upload much much more information
than a real user. These will share the same mechanism, but the
user's output will be filtered according to these annotations.
frameworks/core/proto
---------------------
These .proto files contain the definitions of the system's
output. There is one master android.os.IncidentProto file that
is the top level of an incident report, but some other services
(notification, fingerprint, batterystats, etc) will have others
that are used directly by the logging mechanism.
Other files which are shared by several of the services also go
here, such as ComponentName, Locale, Configuration, etc. There
will be many more.
There is also a first iplementation of a dump method handling
--proto in the fingerprint service.
IncidentManager
---------------
The java API to trigger an incident report.
Test: Not written yet
Change-Id: I59568b115ac7fcf73af70c946c95752bf33ae67f
2016-11-21 17:51:35 -08:00
|
|
|
# ==== java proto host library ==============================
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := platformprotos
|
|
|
|
LOCAL_PROTOC_OPTIMIZE_TYPE := full
|
|
|
|
LOCAL_PROTOC_FLAGS := \
|
|
|
|
-Iexternal/protobuf/src
|
|
|
|
LOCAL_SOURCE_FILES_ALL_GENERATED := true
|
|
|
|
LOCAL_SRC_FILES := \
|
2017-11-13 12:06:45 -08:00
|
|
|
cmds/am/proto/instrumentation_data.proto \
|
2018-01-10 12:14:50 +00:00
|
|
|
cmds/statsd/src/perfetto/perfetto_config.proto \
|
First checkin of incident reporting.
There are a few major pieces here:
incidentd
---------
This daemon (started by init) runs and accepts incoming requests to take
incident reports. When prompted, it calls into various system services
and fills in an IncidentProto data structure, and then writes the report
into dropbox.
The next steps for incidentd:
- Security review of SELinux policies. These will be a subset of
the dumpstate permissions. Until this is done, incidentd is
not started at boot time.
incident
--------
This shell command calls into incidentd, and can initiate an incident
report and either capture the output or leave for dropbox.
incident_report
---------------
This host side tool can call adb shell with the correct parameters
and also format the incident report as text. This formatting code
was left of the device on purpose. Right now it's pretty small, but
as the number of fields increases, the metadata and code to do the
formatting will start to grow.
The incident_report command also contains a workaround to let it
work before incidentd is turned on by default. Right now, it is
implemented to call adb shell dumpsys <service> --proto directly,
whereas in the future it will go through the full incidentd flow.
incident_section_gen
--------------------
A build-time tool that generates a stripped down set of information
about the fields that are available.
libincident
-----------
This library contains the code to connect to incidentd, and the
meta proto definitions that are used by the framework protos.
The basics are here now, but they are not fully fleshed out yet.
The privacy.proto file contains annotations that can go in the
proto file that we will later use to filter which fields are
uploaded, and which are used by local sources. For example, a
device in a test lab is safe to upload much much more information
than a real user. These will share the same mechanism, but the
user's output will be filtered according to these annotations.
frameworks/core/proto
---------------------
These .proto files contain the definitions of the system's
output. There is one master android.os.IncidentProto file that
is the top level of an incident report, but some other services
(notification, fingerprint, batterystats, etc) will have others
that are used directly by the logging mechanism.
Other files which are shared by several of the services also go
here, such as ComponentName, Locale, Configuration, etc. There
will be many more.
There is also a first iplementation of a dump method handling
--proto in the fingerprint service.
IncidentManager
---------------
The java API to trigger an incident report.
Test: Not written yet
Change-Id: I59568b115ac7fcf73af70c946c95752bf33ae67f
2016-11-21 17:51:35 -08:00
|
|
|
$(call all-proto-files-under, core/proto) \
|
2017-11-22 12:36:41 -08:00
|
|
|
$(call all-proto-files-under, libs/incident/proto) \
|
|
|
|
$(call all-proto-files-under, cmds/statsd/src)
|
First checkin of incident reporting.
There are a few major pieces here:
incidentd
---------
This daemon (started by init) runs and accepts incoming requests to take
incident reports. When prompted, it calls into various system services
and fills in an IncidentProto data structure, and then writes the report
into dropbox.
The next steps for incidentd:
- Security review of SELinux policies. These will be a subset of
the dumpstate permissions. Until this is done, incidentd is
not started at boot time.
incident
--------
This shell command calls into incidentd, and can initiate an incident
report and either capture the output or leave for dropbox.
incident_report
---------------
This host side tool can call adb shell with the correct parameters
and also format the incident report as text. This formatting code
was left of the device on purpose. Right now it's pretty small, but
as the number of fields increases, the metadata and code to do the
formatting will start to grow.
The incident_report command also contains a workaround to let it
work before incidentd is turned on by default. Right now, it is
implemented to call adb shell dumpsys <service> --proto directly,
whereas in the future it will go through the full incidentd flow.
incident_section_gen
--------------------
A build-time tool that generates a stripped down set of information
about the fields that are available.
libincident
-----------
This library contains the code to connect to incidentd, and the
meta proto definitions that are used by the framework protos.
The basics are here now, but they are not fully fleshed out yet.
The privacy.proto file contains annotations that can go in the
proto file that we will later use to filter which fields are
uploaded, and which are used by local sources. For example, a
device in a test lab is safe to upload much much more information
than a real user. These will share the same mechanism, but the
user's output will be filtered according to these annotations.
frameworks/core/proto
---------------------
These .proto files contain the definitions of the system's
output. There is one master android.os.IncidentProto file that
is the top level of an incident report, but some other services
(notification, fingerprint, batterystats, etc) will have others
that are used directly by the logging mechanism.
Other files which are shared by several of the services also go
here, such as ComponentName, Locale, Configuration, etc. There
will be many more.
There is also a first iplementation of a dump method handling
--proto in the fingerprint service.
IncidentManager
---------------
The java API to trigger an incident report.
Test: Not written yet
Change-Id: I59568b115ac7fcf73af70c946c95752bf33ae67f
2016-11-21 17:51:35 -08:00
|
|
|
include $(BUILD_HOST_JAVA_LIBRARY)
|
|
|
|
|
2017-08-03 13:37:26 -07:00
|
|
|
# ==== java proto device library (for test only) ==============================
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := platformprotosnano
|
2017-11-18 20:32:56 -08:00
|
|
|
LOCAL_MODULE_TAGS := tests
|
2017-08-03 13:37:26 -07:00
|
|
|
LOCAL_PROTOC_OPTIMIZE_TYPE := nano
|
|
|
|
LOCAL_PROTOC_FLAGS := \
|
|
|
|
-Iexternal/protobuf/src
|
|
|
|
LOCAL_PROTO_JAVA_OUTPUT_PARAMS := \
|
|
|
|
store_unknown_fields = true
|
|
|
|
LOCAL_JAVA_LIBRARIES := core-oj core-libart
|
|
|
|
LOCAL_SRC_FILES := \
|
2018-01-10 11:34:26 -08:00
|
|
|
$(call all-proto-files-under, core/proto) \
|
|
|
|
$(call all-proto-files-under, libs/incident/proto/android/os)
|
2017-08-03 13:37:26 -07:00
|
|
|
include $(BUILD_STATIC_JAVA_LIBRARY)
|
|
|
|
|
2015-05-07 03:23:20 +00:00
|
|
|
|
2017-11-18 20:32:56 -08:00
|
|
|
# ==== java proto device library (for test only) ==============================
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := platformprotoslite
|
|
|
|
LOCAL_MODULE_TAGS := tests
|
|
|
|
LOCAL_PROTOC_OPTIMIZE_TYPE := lite
|
|
|
|
LOCAL_PROTOC_FLAGS := \
|
|
|
|
-Iexternal/protobuf/src
|
|
|
|
LOCAL_SRC_FILES := \
|
2018-01-10 11:34:26 -08:00
|
|
|
$(call all-proto-files-under, core/proto) \
|
|
|
|
$(call all-proto-files-under, libs/incident/proto/android/os)
|
2018-01-30 18:50:34 -08:00
|
|
|
# Protos have lots of MissingOverride and similar.
|
|
|
|
LOCAL_ERROR_PRONE_FLAGS := -XepDisableAllChecks
|
2017-11-18 20:32:56 -08:00
|
|
|
include $(BUILD_STATIC_JAVA_LIBRARY)
|
|
|
|
|
2018-01-22 22:23:13 +00:00
|
|
|
# ==== hiddenapi lists =======================================
|
|
|
|
|
2018-01-31 14:43:36 +00:00
|
|
|
# Copy blacklist and light greylist over into the build folder.
|
2018-01-26 11:13:35 +00:00
|
|
|
# This is for ART buildbots which need to mock these lists and have alternative
|
|
|
|
# rules for building them. Other rules in the build system should depend on the
|
|
|
|
# files in the build folder.
|
|
|
|
|
|
|
|
$(eval $(call copy-one-file,frameworks/base/config/hiddenapi-blacklist.txt,\
|
|
|
|
$(INTERNAL_PLATFORM_HIDDENAPI_BLACKLIST)))
|
2018-01-31 14:43:36 +00:00
|
|
|
$(eval $(call copy-one-file,frameworks/base/config/hiddenapi-light-greylist.txt,\
|
|
|
|
$(INTERNAL_PLATFORM_HIDDENAPI_LIGHT_GREYLIST)))
|
|
|
|
|
|
|
|
# Generate dark greylist as private API minus (blacklist plus light greylist).
|
|
|
|
|
|
|
|
$(INTERNAL_PLATFORM_HIDDENAPI_DARK_GREYLIST): PRIVATE_API := $(INTERNAL_PLATFORM_PRIVATE_DEX_API_FILE)
|
|
|
|
$(INTERNAL_PLATFORM_HIDDENAPI_DARK_GREYLIST): BLACKLIST := $(INTERNAL_PLATFORM_HIDDENAPI_BLACKLIST)
|
|
|
|
$(INTERNAL_PLATFORM_HIDDENAPI_DARK_GREYLIST): LIGHT_GREYLIST := $(INTERNAL_PLATFORM_HIDDENAPI_LIGHT_GREYLIST)
|
|
|
|
$(INTERNAL_PLATFORM_HIDDENAPI_DARK_GREYLIST): $(INTERNAL_PLATFORM_PRIVATE_DEX_API_FILE) \
|
|
|
|
$(INTERNAL_PLATFORM_HIDDENAPI_BLACKLIST) \
|
|
|
|
$(INTERNAL_PLATFORM_HIDDENAPI_LIGHT_GREYLIST)
|
|
|
|
if [ ! -z "`comm -12 <(sort $(BLACKLIST)) <(sort $(LIGHT_GREYLIST))`" ]; then \
|
|
|
|
echo "There should be no overlap between $(BLACKLIST) and $(LIGHT_GREYLIST)" 1>&2; \
|
2018-01-22 22:23:13 +00:00
|
|
|
exit 1; \
|
|
|
|
elif [ ! -z "`comm -13 <(sort $(PRIVATE_API)) <(sort $(BLACKLIST))`" ]; then \
|
|
|
|
echo "$(BLACKLIST) must be a subset of $(PRIVATE_API)" 1>&2; \
|
|
|
|
exit 2; \
|
2018-01-31 14:43:36 +00:00
|
|
|
elif [ ! -z "`comm -13 <(sort $(PRIVATE_API)) <(sort $(LIGHT_GREYLIST))`" ]; then \
|
|
|
|
echo "$(LIGHT_GREYLIST) must be a subset of $(PRIVATE_API)" 1>&2; \
|
2018-01-22 22:23:13 +00:00
|
|
|
exit 3; \
|
|
|
|
fi
|
2018-01-31 14:43:36 +00:00
|
|
|
comm -23 <(sort $(PRIVATE_API)) <(sort $(BLACKLIST) $(LIGHT_GREYLIST)) > $@
|
2018-01-22 22:23:13 +00:00
|
|
|
|
2015-05-07 03:23:20 +00:00
|
|
|
# Include subdirectory makefiles
|
|
|
|
# ============================================================
|
|
|
|
|
|
|
|
# If we're building with ONE_SHOT_MAKEFILE (mm, mmm), then what the framework
|
|
|
|
# team really wants is to build the stuff defined by this makefile.
|
|
|
|
ifeq (,$(ONE_SHOT_MAKEFILE))
|
|
|
|
include $(call first-makefiles-under,$(LOCAL_PATH))
|
|
|
|
endif
|
|
|
|
|
2017-12-21 18:44:59 -08:00
|
|
|
endif # ANDROID_BUILD_EMBEDDED
|
|
|
|
|