Adnan Begovic | aa8614e | 2015-04-23 23:16:27 -0700 | [diff] [blame] | 1 | # Copyright (C) 2015 The CyanogenMod Project |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
Adnan Begovic | aa8614e | 2015-04-23 23:16:27 -0700 | [diff] [blame] | 14 | LOCAL_PATH := $(call my-dir) |
| 15 | |
Adnan Begovic | 37fc76f | 2015-05-05 17:37:05 -0700 | [diff] [blame] | 16 | # We have a special case here where we build the library's resources |
| 17 | # independently from its code, so we need to find where the resource |
| 18 | # class source got placed in the course of building the resources. |
| 19 | # Thus, the magic here. |
| 20 | # Also, this module cannot depend directly on the R.java file; if it |
| 21 | # did, the PRIVATE_* vars for R.java wouldn't be guaranteed to be correct. |
| 22 | # Instead, it depends on the R.stamp file, which lists the corresponding |
| 23 | # R.java file as a prerequisite. |
| 24 | cm_platform_res := APPS/org.cyanogenmod.platform-res_intermediates/src |
| 25 | |
d34d | f2fd836 | 2016-03-04 16:07:39 -0800 | [diff] [blame] | 26 | # List of packages used in cm-api-stubs and cm-system-api-stubs |
Luis Vidal | 217758b | 2016-03-21 11:56:40 -0700 | [diff] [blame] | 27 | cm_stub_packages := cyanogenmod.alarmclock:cyanogenmod.app:cyanogenmod.content:cyanogenmod.externalviews:cyanogenmod.hardware:cyanogenmod.media:cyanogenmod.os:cyanogenmod.profiles:cyanogenmod.providers:cyanogenmod.platform:cyanogenmod.power:cyanogenmod.themes:cyanogenmod.util:cyanogenmod.weather:cyanogenmod.weatherservice |
d34d | f2fd836 | 2016-03-04 16:07:39 -0800 | [diff] [blame] | 28 | |
Adnan Begovic | aa8614e | 2015-04-23 23:16:27 -0700 | [diff] [blame] | 29 | # The CyanogenMod Platform Framework Library |
| 30 | # ============================================================ |
| 31 | include $(CLEAR_VARS) |
| 32 | |
Adnan Begovic | 8d5c2e8 | 2016-04-01 12:21:24 -0700 | [diff] [blame] | 33 | cyanogenmod_sdk_src := sdk/src/java/cyanogenmod |
| 34 | cyanogenmod_sdk_internal_src := sdk/src/java/org/cyanogenmod/internal |
Adnan Begovic | a7d6fc5 | 2015-04-30 11:10:56 -0700 | [diff] [blame] | 35 | library_src := cm/lib/main/java |
Adnan Begovic | aa8614e | 2015-04-23 23:16:27 -0700 | [diff] [blame] | 36 | |
| 37 | LOCAL_MODULE := org.cyanogenmod.platform |
| 38 | LOCAL_MODULE_TAGS := optional |
Adnan Begovic | 37fc76f | 2015-05-05 17:37:05 -0700 | [diff] [blame] | 39 | |
| 40 | LOCAL_JAVA_LIBRARIES := \ |
Steve Kondik | 5ee87cb | 2015-08-16 22:33:30 -0700 | [diff] [blame] | 41 | services \ |
| 42 | org.cyanogenmod.hardware |
Adnan Begovic | aa8614e | 2015-04-23 23:16:27 -0700 | [diff] [blame] | 43 | |
| 44 | LOCAL_SRC_FILES := \ |
Adnan Begovic | 8d5c2e8 | 2016-04-01 12:21:24 -0700 | [diff] [blame] | 45 | $(call all-java-files-under, $(cyanogenmod_sdk_src)) \ |
| 46 | $(call all-java-files-under, $(cyanogenmod_sdk_internal_src)) \ |
Adnan Begovic | 37fc76f | 2015-05-05 17:37:05 -0700 | [diff] [blame] | 47 | $(call all-java-files-under, $(library_src)) |
Adnan Begovic | aa8614e | 2015-04-23 23:16:27 -0700 | [diff] [blame] | 48 | |
| 49 | ## READ ME: ######################################################## |
| 50 | ## |
| 51 | ## When updating this list of aidl files, consider if that aidl is |
| 52 | ## part of the SDK API. If it is, also add it to the list below that |
| 53 | ## is preprocessed and distributed with the SDK. This list should |
| 54 | ## not contain any aidl files for parcelables, but the one below should |
| 55 | ## if you intend for 3rd parties to be able to send those objects |
| 56 | ## across process boundaries. |
| 57 | ## |
| 58 | ## READ ME: ######################################################## |
| 59 | LOCAL_SRC_FILES += \ |
Adnan Begovic | 8d5c2e8 | 2016-04-01 12:21:24 -0700 | [diff] [blame] | 60 | $(call all-Iaidl-files-under, $(cyanogenmod_sdk_src)) \ |
| 61 | $(call all-Iaidl-files-under, $(cyanogenmod_sdk_internal_src)) |
Adnan Begovic | 37fc76f | 2015-05-05 17:37:05 -0700 | [diff] [blame] | 62 | |
Adnan Begovic | 62c951e | 2015-05-28 16:13:04 -0700 | [diff] [blame] | 63 | cmplat_LOCAL_INTERMEDIATE_SOURCES := \ |
Adnan Begovic | 37c4b96 | 2015-05-13 04:48:42 -0700 | [diff] [blame] | 64 | $(cm_platform_res)/cyanogenmod/platform/R.java \ |
| 65 | $(cm_platform_res)/cyanogenmod/platform/Manifest.java \ |
Adnan Begovic | 37fc76f | 2015-05-05 17:37:05 -0700 | [diff] [blame] | 66 | $(cm_platform_res)/org/cyanogenmod/platform/internal/R.java |
Adnan Begovic | aa8614e | 2015-04-23 23:16:27 -0700 | [diff] [blame] | 67 | |
Adnan Begovic | 8c36c41 | 2015-05-19 13:27:17 -0700 | [diff] [blame] | 68 | LOCAL_INTERMEDIATE_SOURCES := \ |
Adnan Begovic | 62c951e | 2015-05-28 16:13:04 -0700 | [diff] [blame] | 69 | $(cmplat_LOCAL_INTERMEDIATE_SOURCES) |
Adnan Begovic | 8c36c41 | 2015-05-19 13:27:17 -0700 | [diff] [blame] | 70 | |
Adnan Begovic | aa8614e | 2015-04-23 23:16:27 -0700 | [diff] [blame] | 71 | # Include aidl files from cyanogenmod.app namespace as well as internal src aidl files |
Adnan Begovic | 8d5c2e8 | 2016-04-01 12:21:24 -0700 | [diff] [blame] | 72 | LOCAL_AIDL_INCLUDES := $(LOCAL_PATH)/sdk/src/java |
Adnan Begovic | aa8614e | 2015-04-23 23:16:27 -0700 | [diff] [blame] | 73 | |
| 74 | include $(BUILD_JAVA_LIBRARY) |
Adnan Begovic | 37fc76f | 2015-05-05 17:37:05 -0700 | [diff] [blame] | 75 | cm_framework_module := $(LOCAL_INSTALLED_MODULE) |
| 76 | |
| 77 | # Make sure that R.java and Manifest.java are built before we build |
| 78 | # the source for this library. |
| 79 | cm_framework_res_R_stamp := \ |
| 80 | $(call intermediates-dir-for,APPS,org.cyanogenmod.platform-res,,COMMON)/src/R.stamp |
| 81 | $(full_classes_compiled_jar): $(cm_framework_res_R_stamp) |
Steve Kondik | 1a5c249 | 2015-11-03 10:13:04 -0800 | [diff] [blame] | 82 | $(built_dex_intermediate): $(cm_framework_res_R_stamp) |
Adnan Begovic | 37fc76f | 2015-05-05 17:37:05 -0700 | [diff] [blame] | 83 | |
| 84 | $(cm_framework_module): | $(dir $(cm_framework_module))org.cyanogenmod.platform-res.apk |
Adnan Begovic | aa8614e | 2015-04-23 23:16:27 -0700 | [diff] [blame] | 85 | |
| 86 | cm_framework_built := $(call java-lib-deps, org.cyanogenmod.platform) |
| 87 | |
| 88 | # ==== org.cyanogenmod.platform.xml lib def ======================== |
| 89 | include $(CLEAR_VARS) |
| 90 | |
| 91 | LOCAL_MODULE := org.cyanogenmod.platform.xml |
| 92 | LOCAL_MODULE_TAGS := optional |
| 93 | |
| 94 | LOCAL_MODULE_CLASS := ETC |
| 95 | |
| 96 | # This will install the file in /system/etc/permissions |
| 97 | LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/permissions |
| 98 | |
| 99 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 100 | |
| 101 | include $(BUILD_PREBUILT) |
| 102 | |
| 103 | # the sdk |
| 104 | # ============================================================ |
| 105 | include $(CLEAR_VARS) |
| 106 | |
| 107 | LOCAL_MODULE:= org.cyanogenmod.platform.sdk |
| 108 | LOCAL_MODULE_TAGS := optional |
| 109 | LOCAL_REQUIRED_MODULES := services |
| 110 | |
| 111 | LOCAL_SRC_FILES := \ |
Adnan Begovic | 8d5c2e8 | 2016-04-01 12:21:24 -0700 | [diff] [blame] | 112 | $(call all-java-files-under, $(cyanogenmod_sdk_src)) \ |
| 113 | $(call all-Iaidl-files-under, $(cyanogenmod_sdk_src)) \ |
| 114 | $(call all-Iaidl-files-under, $(cyanogenmod_sdk_internal_src)) |
Adnan Begovic | aa8614e | 2015-04-23 23:16:27 -0700 | [diff] [blame] | 115 | |
| 116 | # Included aidl files from cyanogenmod.app namespace |
Adnan Begovic | 8d5c2e8 | 2016-04-01 12:21:24 -0700 | [diff] [blame] | 117 | LOCAL_AIDL_INCLUDES := $(LOCAL_PATH)/sdk/src/java |
Adnan Begovic | aa8614e | 2015-04-23 23:16:27 -0700 | [diff] [blame] | 118 | |
Adnan Begovic | e949433 | 2015-08-28 15:28:23 -0700 | [diff] [blame] | 119 | cmsdk_LOCAL_INTERMEDIATE_SOURCES := \ |
| 120 | $(cm_platform_res)/cyanogenmod/platform/R.java \ |
| 121 | $(cm_platform_res)/cyanogenmod/platform/Manifest.java |
| 122 | |
| 123 | LOCAL_INTERMEDIATE_SOURCES := \ |
| 124 | $(cmsdk_LOCAL_INTERMEDIATE_SOURCES) |
| 125 | |
Adnan Begovic | 182b972 | 2016-02-15 15:25:21 -0800 | [diff] [blame] | 126 | # Make sure that R.java and Manifest.java are built before we build |
| 127 | # the source for this library. |
| 128 | cm_framework_res_R_stamp := \ |
| 129 | $(call intermediates-dir-for,APPS,org.cyanogenmod.platform-res,,COMMON)/src/R.stamp |
| 130 | $(full_classes_compiled_jar): $(cm_framework_res_R_stamp) |
| 131 | $(built_dex_intermediate): $(cm_framework_res_R_stamp) |
Adnan Begovic | aa8614e | 2015-04-23 23:16:27 -0700 | [diff] [blame] | 132 | $(full_target): $(cm_framework_built) $(gen) |
| 133 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 134 | |
Roman Birg | 2a85135 | 2016-03-22 14:21:05 -0700 | [diff] [blame] | 135 | # the sdk as an aar for publish, not built as part of full target |
Adnan Begovic | bbab82e | 2016-01-05 14:15:09 -0800 | [diff] [blame] | 136 | # DO NOT LINK AGAINST THIS IN BUILD |
| 137 | # ============================================================ |
| 138 | include $(CLEAR_VARS) |
| 139 | |
Roman Birg | 2a85135 | 2016-03-22 14:21:05 -0700 | [diff] [blame] | 140 | LOCAL_MODULE := org.cyanogenmod.platform.sdk.aar |
| 141 | |
Adnan Begovic | bbab82e | 2016-01-05 14:15:09 -0800 | [diff] [blame] | 142 | LOCAL_JACK_ENABLED := disabled |
| 143 | |
Roman Birg | 2a85135 | 2016-03-22 14:21:05 -0700 | [diff] [blame] | 144 | # just need to define this, $(TOP)/dummy should not exist |
| 145 | LOCAL_SRC_FILES := $(call all-java-files-under, dummy) |
Adnan Begovic | bbab82e | 2016-01-05 14:15:09 -0800 | [diff] [blame] | 146 | |
Roman Birg | 2a85135 | 2016-03-22 14:21:05 -0700 | [diff] [blame] | 147 | LOCAL_RESOURCE_DIR := $(addprefix $(LOCAL_PATH)/, sdk/res/res) |
| 148 | LOCAL_MANIFEST_FILE := sdk/AndroidManifest.xml |
Adnan Begovic | bbab82e | 2016-01-05 14:15:09 -0800 | [diff] [blame] | 149 | |
Roman Birg | 2a85135 | 2016-03-22 14:21:05 -0700 | [diff] [blame] | 150 | LOCAL_STATIC_JAVA_LIBRARIES := org.cyanogenmod.platform.sdk |
Adnan Begovic | bbab82e | 2016-01-05 14:15:09 -0800 | [diff] [blame] | 151 | |
| 152 | include $(BUILD_STATIC_JAVA_LIBRARY) |
Roman Birg | 2a85135 | 2016-03-22 14:21:05 -0700 | [diff] [blame] | 153 | $(LOCAL_MODULE) : $(built_aar) |
Adnan Begovic | bbab82e | 2016-01-05 14:15:09 -0800 | [diff] [blame] | 154 | |
Steve Kondik | 5e522e6 | 2015-11-03 17:34:01 -0800 | [diff] [blame] | 155 | # full target for use by platform apps |
| 156 | # |
| 157 | include $(CLEAR_VARS) |
| 158 | |
| 159 | LOCAL_MODULE:= org.cyanogenmod.platform.internal |
| 160 | LOCAL_MODULE_TAGS := optional |
| 161 | LOCAL_REQUIRED_MODULES := services |
| 162 | |
| 163 | LOCAL_SRC_FILES := \ |
Adnan Begovic | 8d5c2e8 | 2016-04-01 12:21:24 -0700 | [diff] [blame] | 164 | $(call all-java-files-under, $(cyanogenmod_sdk_src)) \ |
| 165 | $(call all-java-files-under, $(cyanogenmod_sdk_internal_src)) \ |
| 166 | $(call all-Iaidl-files-under, $(cyanogenmod_sdk_src)) \ |
| 167 | $(call all-Iaidl-files-under, $(cyanogenmod_sdk_internal_src)) |
Steve Kondik | 5e522e6 | 2015-11-03 17:34:01 -0800 | [diff] [blame] | 168 | |
| 169 | # Included aidl files from cyanogenmod.app namespace |
Adnan Begovic | 8d5c2e8 | 2016-04-01 12:21:24 -0700 | [diff] [blame] | 170 | LOCAL_AIDL_INCLUDES := $(LOCAL_PATH)/sdk/src/java |
Steve Kondik | 5e522e6 | 2015-11-03 17:34:01 -0800 | [diff] [blame] | 171 | |
| 172 | cmsdk_LOCAL_INTERMEDIATE_SOURCES := \ |
| 173 | $(cm_platform_res)/cyanogenmod/platform/R.java \ |
| 174 | $(cm_platform_res)/cyanogenmod/platform/Manifest.java \ |
| 175 | $(cm_platform_res)/org/cyanogenmod/platform/internal/R.java \ |
| 176 | $(cm_platform_res)/org/cyanogenmod/platform/internal/Manifest.java |
| 177 | |
| 178 | LOCAL_INTERMEDIATE_SOURCES := \ |
| 179 | $(cmsdk_LOCAL_INTERMEDIATE_SOURCES) |
| 180 | |
| 181 | $(full_target): $(cm_framework_built) $(gen) |
| 182 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 183 | |
| 184 | |
Adnan Begovic | aa8614e | 2015-04-23 23:16:27 -0700 | [diff] [blame] | 185 | # =========================================================== |
| 186 | # Common Droiddoc vars |
Adnan Begovic | 62c951e | 2015-05-28 16:13:04 -0700 | [diff] [blame] | 187 | cmplat_docs_src_files := \ |
Adnan Begovic | 8d5c2e8 | 2016-04-01 12:21:24 -0700 | [diff] [blame] | 188 | $(call all-java-files-under, $(cyanogenmod_sdk_src)) \ |
| 189 | $(call all-html-files-under, $(cyanogenmod_sdk_src)) |
Adnan Begovic | 62c951e | 2015-05-28 16:13:04 -0700 | [diff] [blame] | 190 | |
| 191 | cmplat_docs_java_libraries := \ |
Adnan Begovic | aa8614e | 2015-04-23 23:16:27 -0700 | [diff] [blame] | 192 | org.cyanogenmod.platform.sdk |
| 193 | |
Adnan Begovic | 62c951e | 2015-05-28 16:13:04 -0700 | [diff] [blame] | 194 | # SDK version as defined |
Adnan Begovic | 7bdcaa5 | 2015-12-22 11:04:08 -0800 | [diff] [blame] | 195 | cmplat_docs_SDK_VERSION := 13.0 |
Adnan Begovic | 62c951e | 2015-05-28 16:13:04 -0700 | [diff] [blame] | 196 | |
| 197 | # release version |
Adnan Begovic | c558652 | 2016-04-01 15:39:53 -0700 | [diff] [blame] | 198 | cmplat_docs_SDK_REL_ID := 6 |
Adnan Begovic | 62c951e | 2015-05-28 16:13:04 -0700 | [diff] [blame] | 199 | |
| 200 | cmplat_docs_LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 201 | |
Adnan Begovic | 62c951e | 2015-05-28 16:13:04 -0700 | [diff] [blame] | 202 | cmplat_docs_LOCAL_DROIDDOC_SOURCE_PATH := \ |
| 203 | $(cmplat_docs_src_files) |
| 204 | |
| 205 | intermediates.COMMON := $(call intermediates-dir-for,$(LOCAL_MODULE_CLASS), org.cyanogenmod.platform.sdk,,COMMON) |
| 206 | |
| 207 | # ==== the api stubs and current.xml =========================== |
| 208 | include $(CLEAR_VARS) |
| 209 | |
| 210 | LOCAL_SRC_FILES:= \ |
Adnan Begovic | 7bdcaa5 | 2015-12-22 11:04:08 -0800 | [diff] [blame] | 211 | $(cmplat_docs_src_files) |
Adnan Begovic | 62c951e | 2015-05-28 16:13:04 -0700 | [diff] [blame] | 212 | LOCAL_INTERMEDIATE_SOURCES:= $(cmplat_LOCAL_INTERMEDIATE_SOURCES) |
| 213 | LOCAL_JAVA_LIBRARIES:= $(cmplat_docs_java_libraries) |
| 214 | LOCAL_MODULE_CLASS:= $(cmplat_docs_LOCAL_MODULE_CLASS) |
| 215 | LOCAL_DROIDDOC_SOURCE_PATH:= $(cmplat_docs_LOCAL_DROIDDOC_SOURCE_PATH) |
| 216 | LOCAL_ADDITIONAL_JAVA_DIR:= $(intermediates.COMMON)/src |
| 217 | LOCAL_ADDITIONAL_DEPENDENCIES:= $(cmplat_docs_LOCAL_ADDITIONAL_DEPENDENCIES) |
| 218 | |
| 219 | LOCAL_MODULE := cm-api-stubs |
| 220 | |
| 221 | LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:= build/tools/droiddoc/templates-sdk |
| 222 | |
| 223 | LOCAL_DROIDDOC_OPTIONS:= \ |
| 224 | -stubs $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/cmsdk_stubs_current_intermediates/src \ |
d34d | f2fd836 | 2016-03-04 16:07:39 -0800 | [diff] [blame] | 225 | -stubpackages $(cm_stub_packages) \ |
Adnan Begovic | 7bdcaa5 | 2015-12-22 11:04:08 -0800 | [diff] [blame] | 226 | -exclude org.cyanogenmod.platform.internal \ |
Adnan Begovic | 62c951e | 2015-05-28 16:13:04 -0700 | [diff] [blame] | 227 | -api $(INTERNAL_CM_PLATFORM_API_FILE) \ |
| 228 | -removedApi $(INTERNAL_CM_PLATFORM_REMOVED_API_FILE) \ |
Adnan Begovic | c02c64b | 2016-02-09 11:05:20 -0800 | [diff] [blame] | 229 | -nodocs |
Adnan Begovic | 62c951e | 2015-05-28 16:13:04 -0700 | [diff] [blame] | 230 | |
| 231 | LOCAL_UNINSTALLABLE_MODULE := true |
| 232 | |
| 233 | include $(BUILD_DROIDDOC) |
| 234 | |
Adnan Begovic | 7bdcaa5 | 2015-12-22 11:04:08 -0800 | [diff] [blame] | 235 | # $(gen), i.e. framework.aidl, is also needed while building against the current stub. |
Adnan Begovic | 62c951e | 2015-05-28 16:13:04 -0700 | [diff] [blame] | 236 | $(full_target): $(cm_framework_built) $(gen) |
| 237 | $(INTERNAL_CM_PLATFORM_API_FILE): $(full_target) |
Adnan Begovic | 7bdcaa5 | 2015-12-22 11:04:08 -0800 | [diff] [blame] | 238 | $(call dist-for-goals,sdk,$(INTERNAL_CM_PLATFORM_API_FILE)) |
Adnan Begovic | 62c951e | 2015-05-28 16:13:04 -0700 | [diff] [blame] | 239 | |
| 240 | # ==== the system api stubs =================================== |
| 241 | include $(CLEAR_VARS) |
| 242 | |
| 243 | LOCAL_SRC_FILES:= \ |
Adnan Begovic | 7bdcaa5 | 2015-12-22 11:04:08 -0800 | [diff] [blame] | 244 | $(cmplat_docs_src_files) |
Adnan Begovic | 62c951e | 2015-05-28 16:13:04 -0700 | [diff] [blame] | 245 | LOCAL_INTERMEDIATE_SOURCES:= $(cmplat_LOCAL_INTERMEDIATE_SOURCES) |
| 246 | LOCAL_JAVA_LIBRARIES:= $(cmplat_docs_java_libraries) |
| 247 | LOCAL_MODULE_CLASS:= $(cmplat_docs_LOCAL_MODULE_CLASS) |
| 248 | LOCAL_DROIDDOC_SOURCE_PATH:= $(cmplat_docs_LOCAL_DROIDDOC_SOURCE_PATH) |
| 249 | LOCAL_ADDITIONAL_JAVA_DIR:= $(intermediates.COMMON)/src |
Adnan Begovic | 62c951e | 2015-05-28 16:13:04 -0700 | [diff] [blame] | 250 | |
| 251 | LOCAL_MODULE := cm-system-api-stubs |
| 252 | |
| 253 | LOCAL_DROIDDOC_OPTIONS:=\ |
| 254 | -stubs $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/cmsdk_system_stubs_current_intermediates/src \ |
d34d | f2fd836 | 2016-03-04 16:07:39 -0800 | [diff] [blame] | 255 | -stubpackages $(cm_stub_packages) \ |
Adnan Begovic | 62c951e | 2015-05-28 16:13:04 -0700 | [diff] [blame] | 256 | -showAnnotation android.annotation.SystemApi \ |
Adnan Begovic | 7bdcaa5 | 2015-12-22 11:04:08 -0800 | [diff] [blame] | 257 | -exclude org.cyanogenmod.platform.internal \ |
Adnan Begovic | 62c951e | 2015-05-28 16:13:04 -0700 | [diff] [blame] | 258 | -api $(INTERNAL_CM_PLATFORM_SYSTEM_API_FILE) \ |
| 259 | -removedApi $(INTERNAL_CM_PLATFORM_SYSTEM_REMOVED_API_FILE) \ |
Adnan Begovic | c02c64b | 2016-02-09 11:05:20 -0800 | [diff] [blame] | 260 | -nodocs |
Adnan Begovic | 62c951e | 2015-05-28 16:13:04 -0700 | [diff] [blame] | 261 | |
| 262 | LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:= build/tools/droiddoc/templates-sdk |
| 263 | |
| 264 | LOCAL_UNINSTALLABLE_MODULE := true |
| 265 | |
| 266 | include $(BUILD_DROIDDOC) |
| 267 | |
Adnan Begovic | 7bdcaa5 | 2015-12-22 11:04:08 -0800 | [diff] [blame] | 268 | # $(gen), i.e. framework.aidl, is also needed while building against the current stub. |
Adnan Begovic | 62c951e | 2015-05-28 16:13:04 -0700 | [diff] [blame] | 269 | $(full_target): $(cm_framework_built) $(gen) |
Adnan Begovic | 6789052 | 2016-04-01 11:08:24 -0700 | [diff] [blame] | 270 | $(INTERNAL_CM_PLATFORM_API_FILE): $(full_target) |
| 271 | $(call dist-for-goals,sdk,$(INTERNAL_CM_PLATFORM_API_FILE)) |
Adnan Begovic | 62c951e | 2015-05-28 16:13:04 -0700 | [diff] [blame] | 272 | |
Adnan Begovic | aa8614e | 2015-04-23 23:16:27 -0700 | [diff] [blame] | 273 | # Documentation |
| 274 | # =========================================================== |
| 275 | include $(CLEAR_VARS) |
| 276 | |
| 277 | LOCAL_MODULE := org.cyanogenmod.platform.sdk |
Adnan Begovic | 62c951e | 2015-05-28 16:13:04 -0700 | [diff] [blame] | 278 | LOCAL_INTERMEDIATE_SOURCES:= $(cmplat_LOCAL_INTERMEDIATE_SOURCES) |
Adnan Begovic | aa8614e | 2015-04-23 23:16:27 -0700 | [diff] [blame] | 279 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 280 | LOCAL_MODULE_TAGS := optional |
| 281 | |
Adnan Begovic | 62c951e | 2015-05-28 16:13:04 -0700 | [diff] [blame] | 282 | LOCAL_SRC_FILES := $(cmplat_docs_src_files) |
Adnan Begovic | aa8614e | 2015-04-23 23:16:27 -0700 | [diff] [blame] | 283 | LOCAL_ADDITONAL_JAVA_DIR := $(intermediates.COMMON)/src |
| 284 | |
Adnan Begovic | aa8614e | 2015-04-23 23:16:27 -0700 | [diff] [blame] | 285 | LOCAL_IS_HOST_MODULE := false |
BitO BSessiOn | 93fd495 | 2016-04-11 10:27:26 +0200 | [diff] [blame] | 286 | LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR := vendor/cmsdk/build/tools/droiddoc/templates-cmsdk |
Adnan Begovic | aa8614e | 2015-04-23 23:16:27 -0700 | [diff] [blame] | 287 | LOCAL_ADDITIONAL_DEPENDENCIES := \ |
Adnan Begovic | 7bdcaa5 | 2015-12-22 11:04:08 -0800 | [diff] [blame] | 288 | services \ |
| 289 | org.cyanogenmod.hardware |
Adnan Begovic | aa8614e | 2015-04-23 23:16:27 -0700 | [diff] [blame] | 290 | |
Adnan Begovic | 62c951e | 2015-05-28 16:13:04 -0700 | [diff] [blame] | 291 | LOCAL_JAVA_LIBRARIES := $(cmplat_docs_java_libraries) |
Adnan Begovic | aa8614e | 2015-04-23 23:16:27 -0700 | [diff] [blame] | 292 | |
| 293 | LOCAL_DROIDDOC_OPTIONS := \ |
Adnan Begovic | 62c951e | 2015-05-28 16:13:04 -0700 | [diff] [blame] | 294 | -offlinemode \ |
Adnan Begovic | 7bdcaa5 | 2015-12-22 11:04:08 -0800 | [diff] [blame] | 295 | -exclude org.cyanogenmod.platform.internal \ |
Adnan Begovic | d1129cc | 2016-01-02 14:07:06 -0800 | [diff] [blame] | 296 | -hidePackage org.cyanogenmod.platform.internal \ |
Adnan Begovic | 62c951e | 2015-05-28 16:13:04 -0700 | [diff] [blame] | 297 | -hdf android.whichdoc offline \ |
| 298 | -hdf sdk.version $(cmplat_docs_docs_SDK_VERSION) \ |
| 299 | -hdf sdk.rel.id $(cmplat_docs_docs_SDK_REL_ID) \ |
| 300 | -hdf sdk.preview 0 \ |
Adnan Begovic | e3ad391 | 2015-07-13 14:52:14 -0700 | [diff] [blame] | 301 | -since $(CM_SRC_API_DIR)/1.txt 1 \ |
Adnan Begovic | 38e8b11 | 2015-09-29 11:40:29 -0700 | [diff] [blame] | 302 | -since $(CM_SRC_API_DIR)/2.txt 2 \ |
Adnan Begovic | 4e53461 | 2015-10-07 11:32:41 -0700 | [diff] [blame] | 303 | -since $(CM_SRC_API_DIR)/3.txt 3 \ |
Adnan Begovic | 24f2bb4 | 2016-01-18 11:26:42 -0800 | [diff] [blame] | 304 | -since $(CM_SRC_API_DIR)/4.txt 4 \ |
Adnan Begovic | c558652 | 2016-04-01 15:39:53 -0700 | [diff] [blame] | 305 | -since $(CM_SRC_API_DIR)/5.txt 5 \ |
| 306 | -since $(CM_SRC_API_DIR)/6.txt 6 |
Adnan Begovic | aa8614e | 2015-04-23 23:16:27 -0700 | [diff] [blame] | 307 | |
| 308 | $(full_target): $(cm_framework_built) $(gen) |
| 309 | include $(BUILD_DROIDDOC) |
| 310 | |
Adnan Begovic | 37fc76f | 2015-05-05 17:37:05 -0700 | [diff] [blame] | 311 | include $(call first-makefiles-under,$(LOCAL_PATH)) |
| 312 | |
Adnan Begovic | aa8614e | 2015-04-23 23:16:27 -0700 | [diff] [blame] | 313 | # Cleanup temp vars |
| 314 | # =========================================================== |
| 315 | cmplat.docs.src_files := |
| 316 | cmplat.docs.java_libraries := |
| 317 | intermediates.COMMON := |