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