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 | # |
Tony Wickham | 76cce29 | 2018-10-05 15:11:21 -0700 | [diff] [blame] | 20 | # Build rule for plugin lib (needed to write a plugin). |
| 21 | # |
| 22 | include $(CLEAR_VARS) |
| 23 | LOCAL_USE_AAPT2 := true |
| 24 | LOCAL_AAPT2_ONLY := true |
| 25 | LOCAL_MODULE_TAGS := optional |
| 26 | |
Hyunyoung Song | 3f8544a | 2019-04-03 23:05:55 -0700 | [diff] [blame] | 27 | ifneq (,$(wildcard frameworks/base)) |
| 28 | LOCAL_STATIC_JAVA_LIBRARIES:= PluginCoreLib |
| 29 | else |
| 30 | LOCAL_STATIC_JAVA_LIBRARIES:= libPluginCore |
| 31 | endif |
Tony Wickham | 76cce29 | 2018-10-05 15:11:21 -0700 | [diff] [blame] | 32 | |
| 33 | LOCAL_SRC_FILES := \ |
| 34 | $(call all-java-files-under, src_plugins) |
| 35 | |
| 36 | LOCAL_SDK_VERSION := current |
| 37 | LOCAL_MIN_SDK_VERSION := 28 |
| 38 | LOCAL_MODULE := LauncherPluginLib |
Tony Wickham | 76cce29 | 2018-10-05 15:11:21 -0700 | [diff] [blame] | 39 | |
| 40 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 41 | |
Sunny Goyal | 7313339 | 2017-11-02 11:04:49 -0700 | [diff] [blame] | 42 | # |
Sunny Goyal | 9fc9797 | 2018-06-18 01:12:37 -0700 | [diff] [blame] | 43 | # Build rule for Launcher3 dependencies lib. |
Chris Wren | 2b6c21d | 2013-10-02 14:16:04 -0400 | [diff] [blame] | 44 | # |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 45 | include $(CLEAR_VARS) |
Sunny Goyal | 9fc9797 | 2018-06-18 01:12:37 -0700 | [diff] [blame] | 46 | LOCAL_USE_AAPT2 := true |
| 47 | LOCAL_AAPT2_ONLY := true |
Jean-Baptiste Queru | 2583ac5 | 2010-01-05 11:09:52 -0800 | [diff] [blame] | 48 | LOCAL_MODULE_TAGS := optional |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 49 | |
Sunny Goyal | 9fc9797 | 2018-06-18 01:12:37 -0700 | [diff] [blame] | 50 | LOCAL_STATIC_ANDROID_LIBRARIES := \ |
Sunny Goyal | d230307 | 2018-08-14 15:21:45 -0700 | [diff] [blame] | 51 | androidx.recyclerview_recyclerview \ |
Sunny Goyal | b2498b2 | 2018-10-16 16:36:02 -0700 | [diff] [blame] | 52 | androidx.dynamicanimation_dynamicanimation \ |
Hyunyoung Song | 719eee2 | 2018-11-01 23:12:54 -0700 | [diff] [blame] | 53 | androidx.preference_preference \ |
Sunny Goyal | 202fabf | 2018-11-09 11:13:10 -0800 | [diff] [blame] | 54 | iconloader_base |
Hyunyoung Song | d30e845 | 2015-07-27 18:24:45 -0700 | [diff] [blame] | 55 | |
Amir Zaidi | 781616f | 2019-02-01 00:15:14 +0100 | [diff] [blame] | 56 | LOCAL_STATIC_JAVA_LIBRARIES := LauncherPluginLib |
Tony Wickham | 76cce29 | 2018-10-05 15:11:21 -0700 | [diff] [blame] | 57 | |
Sunny Goyal | d83a67a | 2016-05-23 21:40:53 -0700 | [diff] [blame] | 58 | LOCAL_SRC_FILES := \ |
Sunny Goyal | 2385ebe | 2017-07-19 01:24:07 -0700 | [diff] [blame] | 59 | $(call all-proto-files-under, protos) \ |
Sunny Goyal | 4276e7b | 2018-11-26 23:44:41 -0800 | [diff] [blame] | 60 | $(call all-proto-files-under, proto_overrides) \ |
| 61 | $(call all-java-files-under, src_build_config) \ |
Hyunyoung Song | d30e845 | 2015-07-27 18:24:45 -0700 | [diff] [blame] | 62 | |
Sunny Goyal | 9fc9797 | 2018-06-18 01:12:37 -0700 | [diff] [blame] | 63 | LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res |
Hyunyoung Song | d30e845 | 2015-07-27 18:24:45 -0700 | [diff] [blame] | 64 | |
Sunny Goyal | 9fc9797 | 2018-06-18 01:12:37 -0700 | [diff] [blame] | 65 | LOCAL_PROGUARD_ENABLED := disabled |
Chris Wren | 1ada10d | 2013-09-13 18:01:38 -0400 | [diff] [blame] | 66 | |
| 67 | LOCAL_PROTOC_OPTIMIZE_TYPE := nano |
Sunny Goyal | 2385ebe | 2017-07-19 01:24:07 -0700 | [diff] [blame] | 68 | 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] | 69 | LOCAL_PROTO_JAVA_OUTPUT_PARAMS := enum_style=java |
| 70 | |
Alex Cruz | c906c1c | 2018-10-17 19:18:09 -0500 | [diff] [blame] | 71 | LOCAL_PRIVATE_PLATFORM_APIS := true |
| 72 | LOCAL_CERTIFICATE := platform |
Sunny Goyal | 9fc9797 | 2018-06-18 01:12:37 -0700 | [diff] [blame] | 73 | LOCAL_MODULE := Launcher3CommonDepsLib |
| 74 | LOCAL_PRIVILEGED_MODULE := true |
| 75 | LOCAL_MANIFEST_FILE := AndroidManifest-common.xml |
| 76 | |
Amir Zaidi | 781616f | 2019-02-01 00:15:14 +0100 | [diff] [blame] | 77 | LOCAL_AIDL_INCLUDES := src/com/google/android/libraries/launcherclient |
| 78 | |
| 79 | LOCAL_SRC_FILES += \ |
| 80 | src/com/google/android/libraries/launcherclient/ILauncherOverlayCallback.aidl \ |
| 81 | src/com/google/android/libraries/launcherclient/ILauncherOverlay.aidl |
| 82 | |
Sunny Goyal | 9fc9797 | 2018-06-18 01:12:37 -0700 | [diff] [blame] | 83 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 84 | |
| 85 | # |
| 86 | # Build rule for Launcher3 app. |
| 87 | # |
| 88 | include $(CLEAR_VARS) |
| 89 | LOCAL_USE_AAPT2 := true |
| 90 | LOCAL_MODULE_TAGS := optional |
| 91 | |
Chilun | 3516bd8 | 2018-11-29 20:38:22 +0800 | [diff] [blame] | 92 | LOCAL_STATIC_ANDROID_LIBRARIES := \ |
| 93 | Launcher3CommonDepsLib \ |
| 94 | SecondaryDisplayLauncherLib |
Sunny Goyal | 9fc9797 | 2018-06-18 01:12:37 -0700 | [diff] [blame] | 95 | LOCAL_SRC_FILES := \ |
| 96 | $(call all-java-files-under, src) \ |
Rajeev Kumar | 51ca603 | 2018-10-31 12:54:15 -0700 | [diff] [blame] | 97 | $(call all-java-files-under, src_shortcuts_overrides) \ |
Sunny Goyal | 9fc9797 | 2018-06-18 01:12:37 -0700 | [diff] [blame] | 98 | $(call all-java-files-under, src_ui_overrides) \ |
| 99 | $(call all-java-files-under, src_flags) |
| 100 | |
| 101 | LOCAL_PROGUARD_FLAG_FILES := proguard.flags |
Sunny Goyal | 4548a7d | 2018-10-10 10:02:41 -0700 | [diff] [blame] | 102 | # Proguard is disable for testing. Derivarive prjects to keep proguard enabled |
| 103 | LOCAL_PROGUARD_ENABLED := disabled |
Chris Wren | 1ada10d | 2013-09-13 18:01:38 -0400 | [diff] [blame] | 104 | |
Alex Cruz | c906c1c | 2018-10-17 19:18:09 -0500 | [diff] [blame] | 105 | LOCAL_PRIVATE_PLATFORM_APIS := true |
| 106 | LOCAL_CERTIFICATE := platform |
Daniel Sandler | 325dc23 | 2013-06-05 22:57:57 -0400 | [diff] [blame] | 107 | LOCAL_PACKAGE_NAME := Launcher3 |
Hyunyoung Song | 3fa9954 | 2016-11-14 10:44:39 -0800 | [diff] [blame] | 108 | LOCAL_PRIVILEGED_MODULE := true |
Hyunyoung Song | 6163624 | 2019-02-01 17:43:40 -0800 | [diff] [blame] | 109 | LOCAL_PRODUCT_MODULE := true |
bohu | 8617902 | 2015-05-21 08:20:38 -0700 | [diff] [blame] | 110 | LOCAL_OVERRIDES_PACKAGES := Home Launcher2 |
Anton Hansson | 3e75460 | 2019-02-06 10:26:17 +0000 | [diff] [blame] | 111 | LOCAL_REQUIRED_MODULES := privapp_whitelist_com.android.launcher3 |
Michael Bestas | 09e984a | 2020-05-06 21:07:17 +0300 | [diff] [blame] | 112 | LOCAL_REQUIRED_MODULES += privapp_whitelist_com.android.launcher3-ext.xml |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 113 | |
Sunny Goyal | d83a67a | 2016-05-23 21:40:53 -0700 | [diff] [blame] | 114 | LOCAL_FULL_LIBS_MANIFEST_FILES := $(LOCAL_PATH)/AndroidManifest-common.xml |
| 115 | |
Shankhoneer Chakrovarty | 687c345 | 2016-09-14 18:30:05 -0700 | [diff] [blame] | 116 | LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.* |
| 117 | |
Amir Zaidi | 781616f | 2019-02-01 00:15:14 +0100 | [diff] [blame] | 118 | LOCAL_AIDL_INCLUDES := src/com/google/android/libraries/launcherclient |
| 119 | |
| 120 | LOCAL_SRC_FILES += \ |
| 121 | src/com/google/android/libraries/launcherclient/ILauncherOverlayCallback.aidl \ |
| 122 | src/com/google/android/libraries/launcherclient/ILauncherOverlay.aidl |
| 123 | |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 124 | include $(BUILD_PACKAGE) |
Shih-wei Liao | 163feae | 2010-07-20 01:22:10 -0700 | [diff] [blame] | 125 | |
Chris Wren | 2b6c21d | 2013-10-02 14:16:04 -0400 | [diff] [blame] | 126 | # |
Sunny Goyal | 64a75aa | 2017-07-03 13:50:52 -0700 | [diff] [blame] | 127 | # Build rule for Launcher3 Go app for Android Go devices. |
| 128 | # |
| 129 | include $(CLEAR_VARS) |
Sunny Goyal | 9fc9797 | 2018-06-18 01:12:37 -0700 | [diff] [blame] | 130 | LOCAL_USE_AAPT2 := true |
Sunny Goyal | 64a75aa | 2017-07-03 13:50:52 -0700 | [diff] [blame] | 131 | LOCAL_MODULE_TAGS := optional |
Sunny Goyal | 9fc9797 | 2018-06-18 01:12:37 -0700 | [diff] [blame] | 132 | LOCAL_STATIC_ANDROID_LIBRARIES := Launcher3CommonDepsLib |
Sunny Goyal | 64a75aa | 2017-07-03 13:50:52 -0700 | [diff] [blame] | 133 | |
| 134 | LOCAL_SRC_FILES := \ |
| 135 | $(call all-java-files-under, src) \ |
Sunny Goyal | 8552517 | 2017-11-06 13:00:42 -0800 | [diff] [blame] | 136 | $(call all-java-files-under, src_ui_overrides) \ |
Rajeev Kumar | c00a259 | 2018-10-30 17:16:25 -0700 | [diff] [blame] | 137 | $(call all-java-files-under, go/src) |
Sunny Goyal | 64a75aa | 2017-07-03 13:50:52 -0700 | [diff] [blame] | 138 | |
Sunny Goyal | 9fc9797 | 2018-06-18 01:12:37 -0700 | [diff] [blame] | 139 | LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/go/res |
Sunny Goyal | 64a75aa | 2017-07-03 13:50:52 -0700 | [diff] [blame] | 140 | |
| 141 | LOCAL_PROGUARD_FLAG_FILES := proguard.flags |
| 142 | |
Alex Cruz | c906c1c | 2018-10-17 19:18:09 -0500 | [diff] [blame] | 143 | LOCAL_PRIVATE_PLATFORM_APIS := true |
| 144 | LOCAL_CERTIFICATE := platform |
Sunny Goyal | 64a75aa | 2017-07-03 13:50:52 -0700 | [diff] [blame] | 145 | LOCAL_PACKAGE_NAME := Launcher3Go |
| 146 | LOCAL_PRIVILEGED_MODULE := true |
Hyunyoung Song | 6163624 | 2019-02-01 17:43:40 -0800 | [diff] [blame] | 147 | LOCAL_PRODUCT_MODULE := true |
Tim Joines | 56ded9c | 2018-06-19 15:02:52 -0700 | [diff] [blame] | 148 | LOCAL_OVERRIDES_PACKAGES := Home Launcher2 Launcher3 Launcher3QuickStep |
Anton Hansson | 3e75460 | 2019-02-06 10:26:17 +0000 | [diff] [blame] | 149 | LOCAL_REQUIRED_MODULES := privapp_whitelist_com.android.launcher3 |
Michael Bestas | 09e984a | 2020-05-06 21:07:17 +0300 | [diff] [blame] | 150 | LOCAL_REQUIRED_MODULES += privapp_whitelist_com.android.launcher3-ext.xml |
Sunny Goyal | 64a75aa | 2017-07-03 13:50:52 -0700 | [diff] [blame] | 151 | |
| 152 | LOCAL_FULL_LIBS_MANIFEST_FILES := \ |
| 153 | $(LOCAL_PATH)/AndroidManifest.xml \ |
| 154 | $(LOCAL_PATH)/AndroidManifest-common.xml |
| 155 | |
Rajeev Kumar | ff8699e | 2018-03-15 23:48:46 +0000 | [diff] [blame] | 156 | LOCAL_MANIFEST_FILE := go/AndroidManifest.xml |
Sunny Goyal | 64a75aa | 2017-07-03 13:50:52 -0700 | [diff] [blame] | 157 | LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.* |
Amir Zaidi | 781616f | 2019-02-01 00:15:14 +0100 | [diff] [blame] | 158 | |
| 159 | LOCAL_AIDL_INCLUDES := src/com/google/android/libraries/launcherclient |
| 160 | |
| 161 | LOCAL_SRC_FILES += \ |
| 162 | src/com/google/android/libraries/launcherclient/ILauncherOverlayCallback.aidl \ |
| 163 | src/com/google/android/libraries/launcherclient/ILauncherOverlay.aidl |
| 164 | |
Sunny Goyal | 64a75aa | 2017-07-03 13:50:52 -0700 | [diff] [blame] | 165 | include $(BUILD_PACKAGE) |
| 166 | |
| 167 | # |
Sunny Goyal | 9fc9797 | 2018-06-18 01:12:37 -0700 | [diff] [blame] | 168 | # Build rule for Quickstep library. |
| 169 | # |
| 170 | include $(CLEAR_VARS) |
| 171 | LOCAL_USE_AAPT2 := true |
| 172 | LOCAL_AAPT2_ONLY := true |
| 173 | LOCAL_MODULE_TAGS := optional |
| 174 | |
Hyunyoung Song | 74176d6 | 2018-08-31 10:48:46 -0700 | [diff] [blame] | 175 | ifneq (,$(wildcard frameworks/base)) |
Hyunyoung Song | 0ae3888 | 2018-11-05 14:45:19 -0800 | [diff] [blame] | 176 | LOCAL_STATIC_JAVA_LIBRARIES := SystemUISharedLib launcherprotosnano |
Hyunyoung Song | 74176d6 | 2018-08-31 10:48:46 -0700 | [diff] [blame] | 177 | LOCAL_PRIVATE_PLATFORM_APIS := true |
| 178 | else |
Amir Zaidi | 781616f | 2019-02-01 00:15:14 +0100 | [diff] [blame] | 179 | LOCAL_STATIC_JAVA_LIBRARIES := libSharedSystemUI libLauncherProtos |
Hyunyoung Song | 74176d6 | 2018-08-31 10:48:46 -0700 | [diff] [blame] | 180 | LOCAL_SDK_VERSION := system_current |
| 181 | LOCAL_MIN_SDK_VERSION := 26 |
| 182 | endif |
| 183 | LOCAL_MODULE := Launcher3QuickStepLib |
| 184 | LOCAL_PRIVILEGED_MODULE := true |
Chilun | ed0a112 | 2019-01-08 14:31:56 +0800 | [diff] [blame] | 185 | LOCAL_STATIC_ANDROID_LIBRARIES := \ |
| 186 | Launcher3CommonDepsLib \ |
| 187 | SecondaryDisplayLauncherLib |
Sunny Goyal | 9fc9797 | 2018-06-18 01:12:37 -0700 | [diff] [blame] | 188 | |
| 189 | LOCAL_SRC_FILES := \ |
| 190 | $(call all-java-files-under, src) \ |
| 191 | $(call all-java-files-under, quickstep/src) \ |
Kevin | 2857871 | 2019-01-04 17:54:51 -0800 | [diff] [blame] | 192 | $(call all-java-files-under, quickstep/recents_ui_overrides/src) \ |
Rajeev Kumar | 51ca603 | 2018-10-31 12:54:15 -0700 | [diff] [blame] | 193 | $(call all-java-files-under, src_flags) \ |
| 194 | $(call all-java-files-under, src_shortcuts_overrides) |
Sunny Goyal | 9fc9797 | 2018-06-18 01:12:37 -0700 | [diff] [blame] | 195 | |
Kevin | 2857871 | 2019-01-04 17:54:51 -0800 | [diff] [blame] | 196 | LOCAL_RESOURCE_DIR := \ |
| 197 | $(LOCAL_PATH)/quickstep/res \ |
| 198 | $(LOCAL_PATH)/quickstep/recents_ui_overrides/res |
Sunny Goyal | 9fc9797 | 2018-06-18 01:12:37 -0700 | [diff] [blame] | 199 | LOCAL_PROGUARD_ENABLED := disabled |
| 200 | |
Sunny Goyal | 9fc9797 | 2018-06-18 01:12:37 -0700 | [diff] [blame] | 201 | |
| 202 | LOCAL_MANIFEST_FILE := quickstep/AndroidManifest.xml |
Amir Zaidi | 781616f | 2019-02-01 00:15:14 +0100 | [diff] [blame] | 203 | |
Sunny Goyal | 9fc9797 | 2018-06-18 01:12:37 -0700 | [diff] [blame] | 204 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 205 | |
| 206 | # |
Sunny Goyal | 9d34196 | 2017-10-30 10:03:34 -0700 | [diff] [blame] | 207 | # Build rule for Quickstep app. |
Chris Wren | 2b6c21d | 2013-10-02 14:16:04 -0400 | [diff] [blame] | 208 | # |
| 209 | include $(CLEAR_VARS) |
Sunny Goyal | 9fc9797 | 2018-06-18 01:12:37 -0700 | [diff] [blame] | 210 | LOCAL_USE_AAPT2 := true |
Sunny Goyal | 9d34196 | 2017-10-30 10:03:34 -0700 | [diff] [blame] | 211 | LOCAL_MODULE_TAGS := optional |
| 212 | |
Sunny Goyal | 9fc9797 | 2018-06-18 01:12:37 -0700 | [diff] [blame] | 213 | LOCAL_STATIC_ANDROID_LIBRARIES := Launcher3QuickStepLib |
Sunny Goyal | 7313339 | 2017-11-02 11:04:49 -0700 | [diff] [blame] | 214 | LOCAL_PROGUARD_ENABLED := disabled |
Chris Wren | 2b6c21d | 2013-10-02 14:16:04 -0400 | [diff] [blame] | 215 | |
Sunny Goyal | 9d34196 | 2017-10-30 10:03:34 -0700 | [diff] [blame] | 216 | LOCAL_PACKAGE_NAME := Launcher3QuickStep |
| 217 | LOCAL_PRIVILEGED_MODULE := true |
Alex Cruz | c906c1c | 2018-10-17 19:18:09 -0500 | [diff] [blame] | 218 | LOCAL_PRIVATE_PLATFORM_APIS := true |
| 219 | LOCAL_CERTIFICATE := platform |
Hyunyoung Song | 6163624 | 2019-02-01 17:43:40 -0800 | [diff] [blame] | 220 | LOCAL_PRODUCT_MODULE := true |
Sunny Goyal | 9d34196 | 2017-10-30 10:03:34 -0700 | [diff] [blame] | 221 | LOCAL_OVERRIDES_PACKAGES := Home Launcher2 Launcher3 |
Hyunyoung Song | 896a715 | 2019-03-21 14:06:02 -0700 | [diff] [blame] | 222 | LOCAL_REQUIRED_MODULES := privapp_whitelist_com.android.launcher3 |
Michael Bestas | 09e984a | 2020-05-06 21:07:17 +0300 | [diff] [blame] | 223 | LOCAL_REQUIRED_MODULES += privapp_whitelist_com.android.launcher3-ext.xml |
Sunny Goyal | 9d34196 | 2017-10-30 10:03:34 -0700 | [diff] [blame] | 224 | |
Kevin | 2857871 | 2019-01-04 17:54:51 -0800 | [diff] [blame] | 225 | LOCAL_RESOURCE_DIR := \ |
| 226 | $(LOCAL_PATH)/quickstep/res \ |
| 227 | $(LOCAL_PATH)/quickstep/recents_ui_overrides/res |
Sunny Goyal | 9fc9797 | 2018-06-18 01:12:37 -0700 | [diff] [blame] | 228 | |
Sunny Goyal | 9d34196 | 2017-10-30 10:03:34 -0700 | [diff] [blame] | 229 | LOCAL_FULL_LIBS_MANIFEST_FILES := \ |
| 230 | $(LOCAL_PATH)/AndroidManifest.xml \ |
| 231 | $(LOCAL_PATH)/AndroidManifest-common.xml |
| 232 | |
| 233 | LOCAL_MANIFEST_FILE := quickstep/AndroidManifest.xml |
Sunny Goyal | 9d34196 | 2017-10-30 10:03:34 -0700 | [diff] [blame] | 234 | LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.* |
| 235 | |
| 236 | include $(BUILD_PACKAGE) |
| 237 | |
Sunny Goyal | c551927 | 2018-05-24 12:44:26 -0700 | [diff] [blame] | 238 | # |
| 239 | # Build rule for Launcher3 Go app with quickstep for Android Go devices. |
| 240 | # |
| 241 | include $(CLEAR_VARS) |
Sunny Goyal | 9fc9797 | 2018-06-18 01:12:37 -0700 | [diff] [blame] | 242 | LOCAL_USE_AAPT2 := true |
Sunny Goyal | c551927 | 2018-05-24 12:44:26 -0700 | [diff] [blame] | 243 | LOCAL_MODULE_TAGS := optional |
| 244 | |
Hyunyoung Song | 74176d6 | 2018-08-31 10:48:46 -0700 | [diff] [blame] | 245 | ifneq (,$(wildcard frameworks/base)) |
Hyunyoung Song | 0ae3888 | 2018-11-05 14:45:19 -0800 | [diff] [blame] | 246 | LOCAL_STATIC_JAVA_LIBRARIES := SystemUISharedLib launcherprotosnano |
Hyunyoung Song | 74176d6 | 2018-08-31 10:48:46 -0700 | [diff] [blame] | 247 | else |
Amir Zaidi | 781616f | 2019-02-01 00:15:14 +0100 | [diff] [blame] | 248 | LOCAL_STATIC_JAVA_LIBRARIES := libSharedSystemUI libLauncherProtos |
Hyunyoung Song | 74176d6 | 2018-08-31 10:48:46 -0700 | [diff] [blame] | 249 | endif |
Sunny Goyal | 9fc9797 | 2018-06-18 01:12:37 -0700 | [diff] [blame] | 250 | LOCAL_STATIC_ANDROID_LIBRARIES := Launcher3CommonDepsLib |
Sunny Goyal | c551927 | 2018-05-24 12:44:26 -0700 | [diff] [blame] | 251 | |
| 252 | LOCAL_SRC_FILES := \ |
| 253 | $(call all-java-files-under, src) \ |
| 254 | $(call all-java-files-under, quickstep/src) \ |
Kevin | 2857871 | 2019-01-04 17:54:51 -0800 | [diff] [blame] | 255 | $(call all-java-files-under, quickstep/recents_ui_overrides/src) \ |
Rajeev Kumar | c00a259 | 2018-10-30 17:16:25 -0700 | [diff] [blame] | 256 | $(call all-java-files-under, go/src) |
Sunny Goyal | c551927 | 2018-05-24 12:44:26 -0700 | [diff] [blame] | 257 | |
| 258 | LOCAL_RESOURCE_DIR := \ |
| 259 | $(LOCAL_PATH)/quickstep/res \ |
Kevin | 2857871 | 2019-01-04 17:54:51 -0800 | [diff] [blame] | 260 | $(LOCAL_PATH)/quickstep/recents_ui_overrides/res \ |
Sunny Goyal | 9fc9797 | 2018-06-18 01:12:37 -0700 | [diff] [blame] | 261 | $(LOCAL_PATH)/go/res |
Sunny Goyal | c551927 | 2018-05-24 12:44:26 -0700 | [diff] [blame] | 262 | |
Rajeev Kumar | dedecd8 | 2018-08-06 14:32:26 -0700 | [diff] [blame] | 263 | LOCAL_PROGUARD_FLAG_FILES := proguard.flags |
Rajeev Kumar | 02c33da | 2018-07-31 12:44:09 -0700 | [diff] [blame] | 264 | LOCAL_PROGUARD_ENABLED := full |
Sunny Goyal | c551927 | 2018-05-24 12:44:26 -0700 | [diff] [blame] | 265 | |
Sunny Goyal | c551927 | 2018-05-24 12:44:26 -0700 | [diff] [blame] | 266 | LOCAL_PACKAGE_NAME := Launcher3QuickStepGo |
| 267 | LOCAL_PRIVILEGED_MODULE := true |
Alex Cruz | c906c1c | 2018-10-17 19:18:09 -0500 | [diff] [blame] | 268 | LOCAL_PRIVATE_PLATFORM_APIS := true |
| 269 | LOCAL_CERTIFICATE := platform |
Hyunyoung Song | 6163624 | 2019-02-01 17:43:40 -0800 | [diff] [blame] | 270 | LOCAL_PRODUCT_MODULE := true |
Rajeev Kumar | 30e5ce7 | 2019-04-23 12:08:33 -0700 | [diff] [blame] | 271 | LOCAL_OVERRIDES_PACKAGES := Home Launcher2 Launcher3 Launcher3QuickStep Launcher3GoIconRecents |
Anton Hansson | 3e75460 | 2019-02-06 10:26:17 +0000 | [diff] [blame] | 272 | LOCAL_REQUIRED_MODULES := privapp_whitelist_com.android.launcher3 |
Michael Bestas | 09e984a | 2020-05-06 21:07:17 +0300 | [diff] [blame] | 273 | LOCAL_REQUIRED_MODULES += privapp_whitelist_com.android.launcher3-ext.xml |
Sunny Goyal | c551927 | 2018-05-24 12:44:26 -0700 | [diff] [blame] | 274 | |
| 275 | LOCAL_FULL_LIBS_MANIFEST_FILES := \ |
| 276 | $(LOCAL_PATH)/go/AndroidManifest.xml \ |
| 277 | $(LOCAL_PATH)/AndroidManifest.xml \ |
| 278 | $(LOCAL_PATH)/AndroidManifest-common.xml |
| 279 | |
| 280 | LOCAL_MANIFEST_FILE := quickstep/AndroidManifest.xml |
| 281 | LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.* |
Amir Zaidi | 781616f | 2019-02-01 00:15:14 +0100 | [diff] [blame] | 282 | |
| 283 | LOCAL_AIDL_INCLUDES := src/com/google/android/libraries/launcherclient |
| 284 | |
| 285 | LOCAL_SRC_FILES += \ |
| 286 | src/com/google/android/libraries/launcherclient/ILauncherOverlayCallback.aidl \ |
| 287 | src/com/google/android/libraries/launcherclient/ILauncherOverlay.aidl |
Sunny Goyal | c551927 | 2018-05-24 12:44:26 -0700 | [diff] [blame] | 288 | include $(BUILD_PACKAGE) |
Sunny Goyal | 9d34196 | 2017-10-30 10:03:34 -0700 | [diff] [blame] | 289 | |
Kevin | 2857871 | 2019-01-04 17:54:51 -0800 | [diff] [blame] | 290 | # |
| 291 | # Build rule for Launcher3 Go app with quickstep and Go-specific |
| 292 | # version of recents for Android Go devices. |
| 293 | # |
| 294 | include $(CLEAR_VARS) |
| 295 | LOCAL_USE_AAPT2 := true |
| 296 | LOCAL_MODULE_TAGS := optional |
| 297 | |
| 298 | ifneq (,$(wildcard frameworks/base)) |
| 299 | LOCAL_STATIC_JAVA_LIBRARIES := SystemUISharedLib launcherprotosnano |
Kevin | 2857871 | 2019-01-04 17:54:51 -0800 | [diff] [blame] | 300 | else |
Amir Zaidi | 781616f | 2019-02-01 00:15:14 +0100 | [diff] [blame] | 301 | LOCAL_STATIC_JAVA_LIBRARIES := libSharedSystemUI libLauncherProtos |
Kevin | 2857871 | 2019-01-04 17:54:51 -0800 | [diff] [blame] | 302 | endif |
| 303 | LOCAL_STATIC_ANDROID_LIBRARIES := Launcher3CommonDepsLib |
| 304 | |
| 305 | LOCAL_SRC_FILES := \ |
| 306 | $(call all-java-files-under, src) \ |
| 307 | $(call all-java-files-under, quickstep/src) \ |
| 308 | $(call all-java-files-under, go/src) \ |
| 309 | $(call all-java-files-under, go/quickstep/src) |
| 310 | |
| 311 | LOCAL_RESOURCE_DIR := \ |
| 312 | $(LOCAL_PATH)/quickstep/res \ |
| 313 | $(LOCAL_PATH)/go/res \ |
| 314 | $(LOCAL_PATH)/go/quickstep/res |
| 315 | |
| 316 | LOCAL_PROGUARD_FLAG_FILES := proguard.flags |
| 317 | LOCAL_PROGUARD_ENABLED := full |
| 318 | |
Kevin | dd50f6a | 2019-02-26 17:08:49 -0800 | [diff] [blame] | 319 | LOCAL_PACKAGE_NAME := Launcher3GoIconRecents |
Kevin | 2857871 | 2019-01-04 17:54:51 -0800 | [diff] [blame] | 320 | LOCAL_PRIVILEGED_MODULE := true |
Alex Cruz | c906c1c | 2018-10-17 19:18:09 -0500 | [diff] [blame] | 321 | LOCAL_PRIVATE_PLATFORM_APIS := true |
| 322 | LOCAL_CERTIFICATE := platform |
Rajeev Kumar | 30e5ce7 | 2019-04-23 12:08:33 -0700 | [diff] [blame] | 323 | LOCAL_PRODUCT_MODULE := true |
Greg Kaiser | 6aabe67 | 2019-06-14 14:22:30 -0700 | [diff] [blame] | 324 | LOCAL_OVERRIDES_PACKAGES := Home Launcher2 Launcher3 Launcher3Go Launcher3QuickStep |
Anton Hansson | 3e75460 | 2019-02-06 10:26:17 +0000 | [diff] [blame] | 325 | LOCAL_REQUIRED_MODULES := privapp_whitelist_com.android.launcher3 |
Michael Bestas | 09e984a | 2020-05-06 21:07:17 +0300 | [diff] [blame] | 326 | LOCAL_REQUIRED_MODULES += privapp_whitelist_com.android.launcher3-ext.xml |
Kevin | 2857871 | 2019-01-04 17:54:51 -0800 | [diff] [blame] | 327 | |
| 328 | LOCAL_FULL_LIBS_MANIFEST_FILES := \ |
| 329 | $(LOCAL_PATH)/go/AndroidManifest.xml \ |
| 330 | $(LOCAL_PATH)/AndroidManifest.xml \ |
| 331 | $(LOCAL_PATH)/AndroidManifest-common.xml |
| 332 | |
| 333 | LOCAL_MANIFEST_FILE := quickstep/AndroidManifest.xml |
| 334 | LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.* |
Amir Zaidi | 781616f | 2019-02-01 00:15:14 +0100 | [diff] [blame] | 335 | |
| 336 | LOCAL_AIDL_INCLUDES := src/com/google/android/libraries/launcherclient |
| 337 | |
| 338 | LOCAL_SRC_FILES += \ |
| 339 | src/com/google/android/libraries/launcherclient/ILauncherOverlayCallback.aidl \ |
| 340 | src/com/google/android/libraries/launcherclient/ILauncherOverlay.aidl |
| 341 | |
Kevin | 2857871 | 2019-01-04 17:54:51 -0800 | [diff] [blame] | 342 | include $(BUILD_PACKAGE) |
| 343 | |
Michael Bestas | 09e984a | 2020-05-06 21:07:17 +0300 | [diff] [blame] | 344 | include $(CLEAR_VARS) |
| 345 | LOCAL_MODULE := privapp_whitelist_com.android.launcher3-ext.xml |
| 346 | LOCAL_MODULE_CLASS := ETC |
| 347 | LOCAL_MODULE_TAGS := optional |
| 348 | LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT_ETC)/permissions |
| 349 | LOCAL_PRODUCT_MODULE := true |
| 350 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 351 | include $(BUILD_PREBUILT) |
Chris Wren | ba2923a | 2013-12-10 15:48:47 -0500 | [diff] [blame] | 352 | |
Sunny Goyal | d68725c | 2015-03-13 10:26:27 -0700 | [diff] [blame] | 353 | # ================================================== |
| 354 | include $(call all-makefiles-under,$(LOCAL_PATH)) |