The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 1 | # |
Daniel Sandler | 325dc23 | 2013-06-05 22:57:57 -0400 | [diff] [blame] | 2 | # Copyright (C) 2013 The Android Open Source Project |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [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. |
| 15 | # |
| 16 | |
| 17 | LOCAL_PATH := $(call my-dir) |
Chris Wren | 2b6c21d | 2013-10-02 14:16:04 -0400 | [diff] [blame] | 18 | |
| 19 | # |
Sunny Goyal | 7313339 | 2017-11-02 11:04:49 -0700 | [diff] [blame] | 20 | # Prebuilt Java Libraries |
| 21 | # |
| 22 | include $(CLEAR_VARS) |
Jiyong Park | 1bb730c | 2018-02-23 18:02:11 +0900 | [diff] [blame] | 23 | LOCAL_MODULE := libSharedSystemUI |
| 24 | LOCAL_MODULE_TAGS := optional |
| 25 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 26 | LOCAL_SRC_FILES := quickstep/libs/sysui_shared.jar |
| 27 | LOCAL_UNINSTALLABLE_MODULE := true |
| 28 | LOCAL_SDK_VERSION := current |
| 29 | include $(BUILD_PREBUILT) |
Sunny Goyal | 7313339 | 2017-11-02 11:04:49 -0700 | [diff] [blame] | 30 | |
Tony Wickham | 76cce29 | 2018-10-05 15:11:21 -0700 | [diff] [blame^] | 31 | include $(CLEAR_VARS) |
| 32 | LOCAL_MODULE := libPluginCore |
| 33 | LOCAL_MODULE_TAGS := optional |
| 34 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 35 | LOCAL_SRC_FILES := libs/plugin_core.jar |
| 36 | LOCAL_UNINSTALLABLE_MODULE := true |
| 37 | LOCAL_SDK_VERSION := current |
| 38 | include $(BUILD_PREBUILT) |
| 39 | |
| 40 | # |
| 41 | # Build rule for plugin lib (needed to write a plugin). |
| 42 | # |
| 43 | include $(CLEAR_VARS) |
| 44 | LOCAL_USE_AAPT2 := true |
| 45 | LOCAL_AAPT2_ONLY := true |
| 46 | LOCAL_MODULE_TAGS := optional |
| 47 | |
| 48 | LOCAL_STATIC_JAVA_LIBRARIES := libPluginCore |
| 49 | |
| 50 | LOCAL_SRC_FILES := \ |
| 51 | $(call all-java-files-under, src_plugins) |
| 52 | |
| 53 | LOCAL_SDK_VERSION := current |
| 54 | LOCAL_MIN_SDK_VERSION := 28 |
| 55 | LOCAL_MODULE := LauncherPluginLib |
| 56 | LOCAL_PRIVILEGED_MODULE := true |
| 57 | |
| 58 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 59 | |
Sunny Goyal | 7313339 | 2017-11-02 11:04:49 -0700 | [diff] [blame] | 60 | # |
Sunny Goyal | 9fc9797 | 2018-06-18 01:12:37 -0700 | [diff] [blame] | 61 | # Build rule for Launcher3 dependencies lib. |
Chris Wren | 2b6c21d | 2013-10-02 14:16:04 -0400 | [diff] [blame] | 62 | # |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 63 | include $(CLEAR_VARS) |
Sunny Goyal | 9fc9797 | 2018-06-18 01:12:37 -0700 | [diff] [blame] | 64 | LOCAL_USE_AAPT2 := true |
| 65 | LOCAL_AAPT2_ONLY := true |
Jean-Baptiste Queru | 2583ac5 | 2010-01-05 11:09:52 -0800 | [diff] [blame] | 66 | LOCAL_MODULE_TAGS := optional |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 67 | |
Sunny Goyal | 9fc9797 | 2018-06-18 01:12:37 -0700 | [diff] [blame] | 68 | LOCAL_STATIC_ANDROID_LIBRARIES := \ |
Sunny Goyal | d230307 | 2018-08-14 15:21:45 -0700 | [diff] [blame] | 69 | androidx.recyclerview_recyclerview \ |
| 70 | androidx.dynamicanimation_dynamicanimation |
Hyunyoung Song | d30e845 | 2015-07-27 18:24:45 -0700 | [diff] [blame] | 71 | |
Tony Wickham | 76cce29 | 2018-10-05 15:11:21 -0700 | [diff] [blame^] | 72 | LOCAL_STATIC_JAVA_LIBRARIES := libPluginCore |
| 73 | |
Sunny Goyal | d83a67a | 2016-05-23 21:40:53 -0700 | [diff] [blame] | 74 | LOCAL_SRC_FILES := \ |
Sunny Goyal | 2385ebe | 2017-07-19 01:24:07 -0700 | [diff] [blame] | 75 | $(call all-proto-files-under, protos) \ |
| 76 | $(call all-proto-files-under, proto_overrides) |
Hyunyoung Song | d30e845 | 2015-07-27 18:24:45 -0700 | [diff] [blame] | 77 | |
Sunny Goyal | 9fc9797 | 2018-06-18 01:12:37 -0700 | [diff] [blame] | 78 | LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res |
Hyunyoung Song | d30e845 | 2015-07-27 18:24:45 -0700 | [diff] [blame] | 79 | |
Sunny Goyal | 9fc9797 | 2018-06-18 01:12:37 -0700 | [diff] [blame] | 80 | LOCAL_PROGUARD_ENABLED := disabled |
Chris Wren | 1ada10d | 2013-09-13 18:01:38 -0400 | [diff] [blame] | 81 | |
| 82 | LOCAL_PROTOC_OPTIMIZE_TYPE := nano |
Sunny Goyal | 2385ebe | 2017-07-19 01:24:07 -0700 | [diff] [blame] | 83 | LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)/protos/ --proto_path=$(LOCAL_PATH)/proto_overrides/ |
Sunny Goyal | 6c46a6d | 2016-11-23 02:24:32 +0530 | [diff] [blame] | 84 | LOCAL_PROTO_JAVA_OUTPUT_PARAMS := enum_style=java |
| 85 | |
Sunny Goyal | 9fc9797 | 2018-06-18 01:12:37 -0700 | [diff] [blame] | 86 | LOCAL_SDK_VERSION := current |
| 87 | LOCAL_MIN_SDK_VERSION := 21 |
| 88 | LOCAL_MODULE := Launcher3CommonDepsLib |
| 89 | LOCAL_PRIVILEGED_MODULE := true |
| 90 | LOCAL_MANIFEST_FILE := AndroidManifest-common.xml |
| 91 | |
| 92 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 93 | |
| 94 | # |
| 95 | # Build rule for Launcher3 app. |
| 96 | # |
| 97 | include $(CLEAR_VARS) |
| 98 | LOCAL_USE_AAPT2 := true |
| 99 | LOCAL_MODULE_TAGS := optional |
| 100 | |
| 101 | LOCAL_STATIC_ANDROID_LIBRARIES := Launcher3CommonDepsLib |
| 102 | LOCAL_SRC_FILES := \ |
| 103 | $(call all-java-files-under, src) \ |
| 104 | $(call all-java-files-under, src_ui_overrides) \ |
| 105 | $(call all-java-files-under, src_flags) |
| 106 | |
| 107 | LOCAL_PROGUARD_FLAG_FILES := proguard.flags |
Sunny Goyal | 4548a7d | 2018-10-10 10:02:41 -0700 | [diff] [blame] | 108 | # Proguard is disable for testing. Derivarive prjects to keep proguard enabled |
| 109 | LOCAL_PROGUARD_ENABLED := disabled |
Chris Wren | 1ada10d | 2013-09-13 18:01:38 -0400 | [diff] [blame] | 110 | |
Sunny Goyal | 4a6c2c5 | 2015-07-07 11:40:31 -0700 | [diff] [blame] | 111 | LOCAL_SDK_VERSION := current |
Sunny Goyal | d297be2 | 2016-05-10 15:35:02 -0700 | [diff] [blame] | 112 | LOCAL_MIN_SDK_VERSION := 21 |
Daniel Sandler | 325dc23 | 2013-06-05 22:57:57 -0400 | [diff] [blame] | 113 | LOCAL_PACKAGE_NAME := Launcher3 |
Hyunyoung Song | 3fa9954 | 2016-11-14 10:44:39 -0800 | [diff] [blame] | 114 | LOCAL_PRIVILEGED_MODULE := true |
bohu | 8617902 | 2015-05-21 08:20:38 -0700 | [diff] [blame] | 115 | LOCAL_OVERRIDES_PACKAGES := Home Launcher2 |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 116 | |
Sunny Goyal | d83a67a | 2016-05-23 21:40:53 -0700 | [diff] [blame] | 117 | LOCAL_FULL_LIBS_MANIFEST_FILES := $(LOCAL_PATH)/AndroidManifest-common.xml |
| 118 | |
Shankhoneer Chakrovarty | 687c345 | 2016-09-14 18:30:05 -0700 | [diff] [blame] | 119 | LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.* |
| 120 | |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 121 | include $(BUILD_PACKAGE) |
Shih-wei Liao | 163feae | 2010-07-20 01:22:10 -0700 | [diff] [blame] | 122 | |
Chris Wren | 2b6c21d | 2013-10-02 14:16:04 -0400 | [diff] [blame] | 123 | # |
Sunny Goyal | 64a75aa | 2017-07-03 13:50:52 -0700 | [diff] [blame] | 124 | # Build rule for Launcher3 Go app for Android Go devices. |
| 125 | # |
| 126 | include $(CLEAR_VARS) |
Sunny Goyal | 9fc9797 | 2018-06-18 01:12:37 -0700 | [diff] [blame] | 127 | LOCAL_USE_AAPT2 := true |
Sunny Goyal | 64a75aa | 2017-07-03 13:50:52 -0700 | [diff] [blame] | 128 | LOCAL_MODULE_TAGS := optional |
Sunny Goyal | 9fc9797 | 2018-06-18 01:12:37 -0700 | [diff] [blame] | 129 | LOCAL_STATIC_ANDROID_LIBRARIES := Launcher3CommonDepsLib |
Sunny Goyal | 64a75aa | 2017-07-03 13:50:52 -0700 | [diff] [blame] | 130 | |
| 131 | LOCAL_SRC_FILES := \ |
| 132 | $(call all-java-files-under, src) \ |
Sunny Goyal | 8552517 | 2017-11-06 13:00:42 -0800 | [diff] [blame] | 133 | $(call all-java-files-under, src_ui_overrides) \ |
Sunny Goyal | 9fc9797 | 2018-06-18 01:12:37 -0700 | [diff] [blame] | 134 | $(call all-java-files-under, go/src_flags) |
Sunny Goyal | 64a75aa | 2017-07-03 13:50:52 -0700 | [diff] [blame] | 135 | |
Sunny Goyal | 9fc9797 | 2018-06-18 01:12:37 -0700 | [diff] [blame] | 136 | LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/go/res |
Sunny Goyal | 64a75aa | 2017-07-03 13:50:52 -0700 | [diff] [blame] | 137 | |
| 138 | LOCAL_PROGUARD_FLAG_FILES := proguard.flags |
| 139 | |
Sunny Goyal | 64a75aa | 2017-07-03 13:50:52 -0700 | [diff] [blame] | 140 | LOCAL_SDK_VERSION := current |
| 141 | LOCAL_MIN_SDK_VERSION := 21 |
| 142 | LOCAL_PACKAGE_NAME := Launcher3Go |
| 143 | LOCAL_PRIVILEGED_MODULE := true |
Tim Joines | 56ded9c | 2018-06-19 15:02:52 -0700 | [diff] [blame] | 144 | LOCAL_OVERRIDES_PACKAGES := Home Launcher2 Launcher3 Launcher3QuickStep |
Sunny Goyal | 64a75aa | 2017-07-03 13:50:52 -0700 | [diff] [blame] | 145 | |
| 146 | LOCAL_FULL_LIBS_MANIFEST_FILES := \ |
| 147 | $(LOCAL_PATH)/AndroidManifest.xml \ |
| 148 | $(LOCAL_PATH)/AndroidManifest-common.xml |
| 149 | |
Rajeev Kumar | ff8699e | 2018-03-15 23:48:46 +0000 | [diff] [blame] | 150 | LOCAL_MANIFEST_FILE := go/AndroidManifest.xml |
Sunny Goyal | 64a75aa | 2017-07-03 13:50:52 -0700 | [diff] [blame] | 151 | LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.* |
Sunny Goyal | 64a75aa | 2017-07-03 13:50:52 -0700 | [diff] [blame] | 152 | include $(BUILD_PACKAGE) |
| 153 | |
| 154 | # |
Sunny Goyal | 9fc9797 | 2018-06-18 01:12:37 -0700 | [diff] [blame] | 155 | # Build rule for Quickstep library. |
| 156 | # |
| 157 | include $(CLEAR_VARS) |
| 158 | LOCAL_USE_AAPT2 := true |
| 159 | LOCAL_AAPT2_ONLY := true |
| 160 | LOCAL_MODULE_TAGS := optional |
| 161 | |
Hyunyoung Song | 74176d6 | 2018-08-31 10:48:46 -0700 | [diff] [blame] | 162 | ifneq (,$(wildcard frameworks/base)) |
Hyunyoung Song | f120e0a | 2018-08-31 13:57:04 -0700 | [diff] [blame] | 163 | LOCAL_STATIC_JAVA_LIBRARIES := SystemUISharedLib |
Hyunyoung Song | 74176d6 | 2018-08-31 10:48:46 -0700 | [diff] [blame] | 164 | LOCAL_PRIVATE_PLATFORM_APIS := true |
| 165 | else |
| 166 | LOCAL_STATIC_JAVA_LIBRARIES := libSharedSystemUI |
| 167 | LOCAL_SDK_VERSION := system_current |
| 168 | LOCAL_MIN_SDK_VERSION := 26 |
| 169 | endif |
| 170 | LOCAL_MODULE := Launcher3QuickStepLib |
| 171 | LOCAL_PRIVILEGED_MODULE := true |
Sunny Goyal | 9fc9797 | 2018-06-18 01:12:37 -0700 | [diff] [blame] | 172 | LOCAL_STATIC_ANDROID_LIBRARIES := Launcher3CommonDepsLib |
| 173 | |
| 174 | LOCAL_SRC_FILES := \ |
| 175 | $(call all-java-files-under, src) \ |
| 176 | $(call all-java-files-under, quickstep/src) \ |
| 177 | $(call all-java-files-under, src_flags) |
| 178 | |
| 179 | LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/quickstep/res |
| 180 | LOCAL_PROGUARD_ENABLED := disabled |
| 181 | |
Sunny Goyal | 9fc9797 | 2018-06-18 01:12:37 -0700 | [diff] [blame] | 182 | |
| 183 | LOCAL_MANIFEST_FILE := quickstep/AndroidManifest.xml |
| 184 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 185 | |
| 186 | # |
Sunny Goyal | 9d34196 | 2017-10-30 10:03:34 -0700 | [diff] [blame] | 187 | # Build rule for Quickstep app. |
Chris Wren | 2b6c21d | 2013-10-02 14:16:04 -0400 | [diff] [blame] | 188 | # |
| 189 | include $(CLEAR_VARS) |
Sunny Goyal | 9fc9797 | 2018-06-18 01:12:37 -0700 | [diff] [blame] | 190 | LOCAL_USE_AAPT2 := true |
Sunny Goyal | 9d34196 | 2017-10-30 10:03:34 -0700 | [diff] [blame] | 191 | LOCAL_MODULE_TAGS := optional |
| 192 | |
Sunny Goyal | 9fc9797 | 2018-06-18 01:12:37 -0700 | [diff] [blame] | 193 | LOCAL_STATIC_ANDROID_LIBRARIES := Launcher3QuickStepLib |
Sunny Goyal | 7313339 | 2017-11-02 11:04:49 -0700 | [diff] [blame] | 194 | LOCAL_PROGUARD_ENABLED := disabled |
Chris Wren | 2b6c21d | 2013-10-02 14:16:04 -0400 | [diff] [blame] | 195 | |
Hyunyoung Song | 74176d6 | 2018-08-31 10:48:46 -0700 | [diff] [blame] | 196 | ifneq (,$(wildcard frameworks/base)) |
| 197 | LOCAL_PRIVATE_PLATFORM_APIS := true |
| 198 | else |
| 199 | LOCAL_SDK_VERSION := system_current |
| 200 | LOCAL_MIN_SDK_VERSION := 26 |
| 201 | endif |
Sunny Goyal | 9d34196 | 2017-10-30 10:03:34 -0700 | [diff] [blame] | 202 | LOCAL_PACKAGE_NAME := Launcher3QuickStep |
| 203 | LOCAL_PRIVILEGED_MODULE := true |
| 204 | LOCAL_OVERRIDES_PACKAGES := Home Launcher2 Launcher3 |
| 205 | |
Sunny Goyal | 9fc9797 | 2018-06-18 01:12:37 -0700 | [diff] [blame] | 206 | LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/quickstep/res |
| 207 | |
Sunny Goyal | 9d34196 | 2017-10-30 10:03:34 -0700 | [diff] [blame] | 208 | LOCAL_FULL_LIBS_MANIFEST_FILES := \ |
| 209 | $(LOCAL_PATH)/AndroidManifest.xml \ |
| 210 | $(LOCAL_PATH)/AndroidManifest-common.xml |
| 211 | |
| 212 | LOCAL_MANIFEST_FILE := quickstep/AndroidManifest.xml |
Sunny Goyal | 9d34196 | 2017-10-30 10:03:34 -0700 | [diff] [blame] | 213 | LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.* |
| 214 | |
| 215 | include $(BUILD_PACKAGE) |
| 216 | |
Sunny Goyal | 9fc9797 | 2018-06-18 01:12:37 -0700 | [diff] [blame] | 217 | |
Sunny Goyal | c551927 | 2018-05-24 12:44:26 -0700 | [diff] [blame] | 218 | # |
| 219 | # Build rule for Launcher3 Go app with quickstep for Android Go devices. |
| 220 | # |
| 221 | include $(CLEAR_VARS) |
Sunny Goyal | 9fc9797 | 2018-06-18 01:12:37 -0700 | [diff] [blame] | 222 | LOCAL_USE_AAPT2 := true |
Sunny Goyal | c551927 | 2018-05-24 12:44:26 -0700 | [diff] [blame] | 223 | LOCAL_MODULE_TAGS := optional |
| 224 | |
Hyunyoung Song | 74176d6 | 2018-08-31 10:48:46 -0700 | [diff] [blame] | 225 | ifneq (,$(wildcard frameworks/base)) |
Hyunyoung Song | f120e0a | 2018-08-31 13:57:04 -0700 | [diff] [blame] | 226 | LOCAL_STATIC_JAVA_LIBRARIES := SystemUISharedLib |
Hyunyoung Song | 74176d6 | 2018-08-31 10:48:46 -0700 | [diff] [blame] | 227 | LOCAL_PRIVATE_PLATFORM_APIS := true |
| 228 | else |
| 229 | LOCAL_STATIC_JAVA_LIBRARIES := libSharedSystemUI |
| 230 | LOCAL_SDK_VERSION := system_current |
| 231 | LOCAL_MIN_SDK_VERSION := 26 |
| 232 | endif |
Sunny Goyal | 9fc9797 | 2018-06-18 01:12:37 -0700 | [diff] [blame] | 233 | LOCAL_STATIC_ANDROID_LIBRARIES := Launcher3CommonDepsLib |
Sunny Goyal | c551927 | 2018-05-24 12:44:26 -0700 | [diff] [blame] | 234 | |
| 235 | LOCAL_SRC_FILES := \ |
| 236 | $(call all-java-files-under, src) \ |
| 237 | $(call all-java-files-under, quickstep/src) \ |
Sunny Goyal | 9fc9797 | 2018-06-18 01:12:37 -0700 | [diff] [blame] | 238 | $(call all-java-files-under, go/src_flags) |
Sunny Goyal | c551927 | 2018-05-24 12:44:26 -0700 | [diff] [blame] | 239 | |
| 240 | LOCAL_RESOURCE_DIR := \ |
| 241 | $(LOCAL_PATH)/quickstep/res \ |
Sunny Goyal | 9fc9797 | 2018-06-18 01:12:37 -0700 | [diff] [blame] | 242 | $(LOCAL_PATH)/go/res |
Sunny Goyal | c551927 | 2018-05-24 12:44:26 -0700 | [diff] [blame] | 243 | |
Rajeev Kumar | dedecd8 | 2018-08-06 14:32:26 -0700 | [diff] [blame] | 244 | LOCAL_PROGUARD_FLAG_FILES := proguard.flags |
Rajeev Kumar | 02c33da | 2018-07-31 12:44:09 -0700 | [diff] [blame] | 245 | LOCAL_PROGUARD_ENABLED := full |
Sunny Goyal | c551927 | 2018-05-24 12:44:26 -0700 | [diff] [blame] | 246 | |
Sunny Goyal | c551927 | 2018-05-24 12:44:26 -0700 | [diff] [blame] | 247 | LOCAL_PACKAGE_NAME := Launcher3QuickStepGo |
| 248 | LOCAL_PRIVILEGED_MODULE := true |
Tim Joines | 56ded9c | 2018-06-19 15:02:52 -0700 | [diff] [blame] | 249 | LOCAL_OVERRIDES_PACKAGES := Home Launcher2 Launcher3 Launcher3QuickStep |
Sunny Goyal | c551927 | 2018-05-24 12:44:26 -0700 | [diff] [blame] | 250 | |
| 251 | LOCAL_FULL_LIBS_MANIFEST_FILES := \ |
| 252 | $(LOCAL_PATH)/go/AndroidManifest.xml \ |
| 253 | $(LOCAL_PATH)/AndroidManifest.xml \ |
| 254 | $(LOCAL_PATH)/AndroidManifest-common.xml |
| 255 | |
| 256 | LOCAL_MANIFEST_FILE := quickstep/AndroidManifest.xml |
| 257 | LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.* |
Sunny Goyal | c551927 | 2018-05-24 12:44:26 -0700 | [diff] [blame] | 258 | include $(BUILD_PACKAGE) |
Sunny Goyal | 9d34196 | 2017-10-30 10:03:34 -0700 | [diff] [blame] | 259 | |
Chris Wren | ba2923a | 2013-12-10 15:48:47 -0500 | [diff] [blame] | 260 | |
Sunny Goyal | d68725c | 2015-03-13 10:26:27 -0700 | [diff] [blame] | 261 | # ================================================== |
| 262 | include $(call all-makefiles-under,$(LOCAL_PATH)) |