blob: 19ad3281875f2a20299f1a1198e6e60b48f68a6e [file] [log] [blame]
The Android Open Source Project31dd5032009-03-03 19:32:27 -08001#
Daniel Sandler325dc232013-06-05 22:57:57 -04002# Copyright (C) 2013 The Android Open Source Project
The Android Open Source Project31dd5032009-03-03 19:32:27 -08003#
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
17LOCAL_PATH := $(call my-dir)
Chris Wren2b6c21d2013-10-02 14:16:04 -040018
19#
Sunny Goyal9fc97972018-06-18 01:12:37 -070020# Build rule for Launcher3 dependencies lib.
Chris Wren2b6c21d2013-10-02 14:16:04 -040021#
The Android Open Source Project31dd5032009-03-03 19:32:27 -080022include $(CLEAR_VARS)
Sunny Goyal9fc97972018-06-18 01:12:37 -070023LOCAL_USE_AAPT2 := true
24LOCAL_AAPT2_ONLY := true
Jean-Baptiste Queru2583ac52010-01-05 11:09:52 -080025LOCAL_MODULE_TAGS := optional
The Android Open Source Project31dd5032009-03-03 19:32:27 -080026
Sunny Goyal9fc97972018-06-18 01:12:37 -070027LOCAL_STATIC_ANDROID_LIBRARIES := \
Sunny Goyald2303072018-08-14 15:21:45 -070028 androidx.recyclerview_recyclerview \
Sunny Goyalb2498b22018-10-16 16:36:02 -070029 androidx.dynamicanimation_dynamicanimation \
Hyunyoung Song719eee22018-11-01 23:12:54 -070030 androidx.preference_preference \
Samuel Fufaa2d6a912020-08-23 15:58:39 -070031 androidx.slice_slice-view \
Sunny Goyal202fabf2018-11-09 11:13:10 -080032 iconloader_base
Hyunyoung Songd30e8452015-07-27 18:24:45 -070033
thiruramc1c2bfa2020-02-04 18:56:40 -080034LOCAL_STATIC_JAVA_LIBRARIES := \
35 LauncherPluginLib \
thiruramcbeb13d2021-01-27 14:45:58 -080036 launcher_quickstep_log_protos_lite \
Hyunyoung Song42203be2021-01-13 15:48:25 -080037 search_ui
Tony Wickham76cce292018-10-05 15:11:21 -070038
Sunny Goyald83a67a2016-05-23 21:40:53 -070039LOCAL_SRC_FILES := \
Sunny Goyal4276e7b2018-11-26 23:44:41 -080040 $(call all-java-files-under, src_build_config) \
Hyunyoung Songd30e8452015-07-27 18:24:45 -070041
Sunny Goyal9fc97972018-06-18 01:12:37 -070042LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
Hyunyoung Songd30e8452015-07-27 18:24:45 -070043
Sunny Goyal9fc97972018-06-18 01:12:37 -070044LOCAL_PROGUARD_ENABLED := disabled
Chris Wren1ada10d2013-09-13 18:01:38 -040045
Sunny Goyal9fc97972018-06-18 01:12:37 -070046LOCAL_SDK_VERSION := current
Sunny Goyaleaf7a952020-07-29 16:54:20 -070047LOCAL_MIN_SDK_VERSION := 26
Sunny Goyal9fc97972018-06-18 01:12:37 -070048LOCAL_MODULE := Launcher3CommonDepsLib
49LOCAL_PRIVILEGED_MODULE := true
50LOCAL_MANIFEST_FILE := AndroidManifest-common.xml
51
52include $(BUILD_STATIC_JAVA_LIBRARY)
53
54#
55# Build rule for Launcher3 app.
56#
57include $(CLEAR_VARS)
58LOCAL_USE_AAPT2 := true
59LOCAL_MODULE_TAGS := optional
60
Sunny Goyal9c2b9602020-01-07 13:07:55 -080061LOCAL_STATIC_ANDROID_LIBRARIES := Launcher3CommonDepsLib
62
Sunny Goyal9fc97972018-06-18 01:12:37 -070063LOCAL_SRC_FILES := \
64 $(call all-java-files-under, src) \
Rajeev Kumar51ca6032018-10-31 12:54:15 -070065 $(call all-java-files-under, src_shortcuts_overrides) \
vadimt45564c82020-06-10 18:40:58 -070066 $(call all-java-files-under, src_ui_overrides) \
67 $(call all-java-files-under, ext_tests/src)
thiruramcbeb13d2021-01-27 14:45:58 -080068
vadimt45564c82020-06-10 18:40:58 -070069LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/ext_tests/res
Sunny Goyal9fc97972018-06-18 01:12:37 -070070
71LOCAL_PROGUARD_FLAG_FILES := proguard.flags
Sunny Goyal4548a7d2018-10-10 10:02:41 -070072# Proguard is disable for testing. Derivarive prjects to keep proguard enabled
73LOCAL_PROGUARD_ENABLED := disabled
Chris Wren1ada10d2013-09-13 18:01:38 -040074
Sunny Goyal4a6c2c52015-07-07 11:40:31 -070075LOCAL_SDK_VERSION := current
Sunny Goyaleaf7a952020-07-29 16:54:20 -070076LOCAL_MIN_SDK_VERSION := 26
Daniel Sandler325dc232013-06-05 22:57:57 -040077LOCAL_PACKAGE_NAME := Launcher3
Hyunyoung Song3fa99542016-11-14 10:44:39 -080078LOCAL_PRIVILEGED_MODULE := true
Jeongik Cha6af66b02019-07-09 10:08:39 +090079LOCAL_SYSTEM_EXT_MODULE := true
bohu86179022015-05-21 08:20:38 -070080LOCAL_OVERRIDES_PACKAGES := Home Launcher2
Anton Hansson3e754602019-02-06 10:26:17 +000081LOCAL_REQUIRED_MODULES := privapp_whitelist_com.android.launcher3
The Android Open Source Project31dd5032009-03-03 19:32:27 -080082
Sunny Goyald83a67a2016-05-23 21:40:53 -070083LOCAL_FULL_LIBS_MANIFEST_FILES := $(LOCAL_PATH)/AndroidManifest-common.xml
84
Shankhoneer Chakrovarty687c3452016-09-14 18:30:05 -070085LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.*
86
The Android Open Source Project31dd5032009-03-03 19:32:27 -080087include $(BUILD_PACKAGE)
Shih-wei Liao163feae2010-07-20 01:22:10 -070088
Chris Wren2b6c21d2013-10-02 14:16:04 -040089#
Sunny Goyal64a75aa2017-07-03 13:50:52 -070090# Build rule for Launcher3 Go app for Android Go devices.
91#
92include $(CLEAR_VARS)
Sunny Goyal9fc97972018-06-18 01:12:37 -070093LOCAL_USE_AAPT2 := true
Sunny Goyal64a75aa2017-07-03 13:50:52 -070094LOCAL_MODULE_TAGS := optional
Sunny Goyal9fc97972018-06-18 01:12:37 -070095LOCAL_STATIC_ANDROID_LIBRARIES := Launcher3CommonDepsLib
Sunny Goyal64a75aa2017-07-03 13:50:52 -070096
97LOCAL_SRC_FILES := \
98 $(call all-java-files-under, src) \
Sunny Goyal85525172017-11-06 13:00:42 -080099 $(call all-java-files-under, src_ui_overrides) \
Rajeev Kumarc00a2592018-10-30 17:16:25 -0700100 $(call all-java-files-under, go/src)
Sunny Goyal64a75aa2017-07-03 13:50:52 -0700101
Sunny Goyal9fc97972018-06-18 01:12:37 -0700102LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/go/res
Sunny Goyal64a75aa2017-07-03 13:50:52 -0700103
104LOCAL_PROGUARD_FLAG_FILES := proguard.flags
105
Sunny Goyal64a75aa2017-07-03 13:50:52 -0700106LOCAL_SDK_VERSION := current
Sunny Goyaleaf7a952020-07-29 16:54:20 -0700107LOCAL_MIN_SDK_VERSION := 26
Sunny Goyal64a75aa2017-07-03 13:50:52 -0700108LOCAL_PACKAGE_NAME := Launcher3Go
109LOCAL_PRIVILEGED_MODULE := true
Jeongik Cha6af66b02019-07-09 10:08:39 +0900110LOCAL_SYSTEM_EXT_MODULE := true
Tim Joines56ded9c2018-06-19 15:02:52 -0700111LOCAL_OVERRIDES_PACKAGES := Home Launcher2 Launcher3 Launcher3QuickStep
Anton Hansson3e754602019-02-06 10:26:17 +0000112LOCAL_REQUIRED_MODULES := privapp_whitelist_com.android.launcher3
Sunny Goyal64a75aa2017-07-03 13:50:52 -0700113
114LOCAL_FULL_LIBS_MANIFEST_FILES := \
115 $(LOCAL_PATH)/AndroidManifest.xml \
116 $(LOCAL_PATH)/AndroidManifest-common.xml
117
Rajeev Kumarff8699e2018-03-15 23:48:46 +0000118LOCAL_MANIFEST_FILE := go/AndroidManifest.xml
Sunny Goyal64a75aa2017-07-03 13:50:52 -0700119LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.*
Sunny Goyal64a75aa2017-07-03 13:50:52 -0700120include $(BUILD_PACKAGE)
121
122#
Sunny Goyal9fc97972018-06-18 01:12:37 -0700123# Build rule for Quickstep library.
124#
125include $(CLEAR_VARS)
126LOCAL_USE_AAPT2 := true
127LOCAL_AAPT2_ONLY := true
128LOCAL_MODULE_TAGS := optional
129
thiruramc1c2bfa2020-02-04 18:56:40 -0800130LOCAL_STATIC_JAVA_LIBRARIES := \
Hyunyoung Song7f7894e2020-04-27 01:12:01 -0700131 SystemUI-statsd \
thiruramcbeb13d2021-01-27 14:45:58 -0800132 SystemUISharedLib
Hyunyoung Song74176d62018-08-31 10:48:46 -0700133ifneq (,$(wildcard frameworks/base))
Hyunyoung Song74176d62018-08-31 10:48:46 -0700134 LOCAL_PRIVATE_PLATFORM_APIS := true
135else
Hyunyoung Song74176d62018-08-31 10:48:46 -0700136 LOCAL_SDK_VERSION := system_current
137 LOCAL_MIN_SDK_VERSION := 26
138endif
139LOCAL_MODULE := Launcher3QuickStepLib
140LOCAL_PRIVILEGED_MODULE := true
Sunny Goyal9c2b9602020-01-07 13:07:55 -0800141LOCAL_STATIC_ANDROID_LIBRARIES := Launcher3CommonDepsLib
Sunny Goyal9fc97972018-06-18 01:12:37 -0700142
143LOCAL_SRC_FILES := \
144 $(call all-java-files-under, src) \
145 $(call all-java-files-under, quickstep/src) \
Rajeev Kumar51ca6032018-10-31 12:54:15 -0700146 $(call all-java-files-under, src_shortcuts_overrides)
Sunny Goyal9fc97972018-06-18 01:12:37 -0700147
Sunny Goyal5fb83a42020-08-10 10:50:36 -0700148LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/quickstep/res
Sunny Goyal9fc97972018-06-18 01:12:37 -0700149LOCAL_PROGUARD_ENABLED := disabled
150
Sunny Goyal9fc97972018-06-18 01:12:37 -0700151
152LOCAL_MANIFEST_FILE := quickstep/AndroidManifest.xml
153include $(BUILD_STATIC_JAVA_LIBRARY)
154
155#
Sunny Goyal9d341962017-10-30 10:03:34 -0700156# Build rule for Quickstep app.
Chris Wren2b6c21d2013-10-02 14:16:04 -0400157#
158include $(CLEAR_VARS)
Sunny Goyal9fc97972018-06-18 01:12:37 -0700159LOCAL_USE_AAPT2 := true
Sunny Goyal9d341962017-10-30 10:03:34 -0700160LOCAL_MODULE_TAGS := optional
161
Sunny Goyal9fc97972018-06-18 01:12:37 -0700162LOCAL_STATIC_ANDROID_LIBRARIES := Launcher3QuickStepLib
Sunny Goyal73133392017-11-02 11:04:49 -0700163LOCAL_PROGUARD_ENABLED := disabled
Chris Wren2b6c21d2013-10-02 14:16:04 -0400164
Hyunyoung Song74176d62018-08-31 10:48:46 -0700165ifneq (,$(wildcard frameworks/base))
166 LOCAL_PRIVATE_PLATFORM_APIS := true
167else
168 LOCAL_SDK_VERSION := system_current
169 LOCAL_MIN_SDK_VERSION := 26
170endif
Sunny Goyal9d341962017-10-30 10:03:34 -0700171LOCAL_PACKAGE_NAME := Launcher3QuickStep
172LOCAL_PRIVILEGED_MODULE := true
Jeongik Cha6af66b02019-07-09 10:08:39 +0900173LOCAL_SYSTEM_EXT_MODULE := true
Sunny Goyal9d341962017-10-30 10:03:34 -0700174LOCAL_OVERRIDES_PACKAGES := Home Launcher2 Launcher3
Hyunyoung Song896a7152019-03-21 14:06:02 -0700175LOCAL_REQUIRED_MODULES := privapp_whitelist_com.android.launcher3
Sunny Goyal9d341962017-10-30 10:03:34 -0700176
Sunny Goyal5fb83a42020-08-10 10:50:36 -0700177LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/quickstep/res
Sunny Goyal9fc97972018-06-18 01:12:37 -0700178
Sunny Goyal9d341962017-10-30 10:03:34 -0700179LOCAL_FULL_LIBS_MANIFEST_FILES := \
Sunny Goyal210e1742019-10-17 12:05:38 -0700180 $(LOCAL_PATH)/quickstep/AndroidManifest-launcher.xml \
Sunny Goyal9d341962017-10-30 10:03:34 -0700181 $(LOCAL_PATH)/AndroidManifest-common.xml
182
183LOCAL_MANIFEST_FILE := quickstep/AndroidManifest.xml
Sunny Goyal9d341962017-10-30 10:03:34 -0700184LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.*
185
186include $(BUILD_PACKAGE)
187
Sunny Goyal9fc97972018-06-18 01:12:37 -0700188
Sunny Goyalc5519272018-05-24 12:44:26 -0700189#
190# Build rule for Launcher3 Go app with quickstep for Android Go devices.
191#
192include $(CLEAR_VARS)
Sunny Goyal9fc97972018-06-18 01:12:37 -0700193LOCAL_USE_AAPT2 := true
Sunny Goyalc5519272018-05-24 12:44:26 -0700194LOCAL_MODULE_TAGS := optional
195
thiruramc1c2bfa2020-02-04 18:56:40 -0800196LOCAL_STATIC_JAVA_LIBRARIES := \
Hyunyoung Song7f7894e2020-04-27 01:12:01 -0700197 SystemUI-statsd \
thiruramcbeb13d2021-01-27 14:45:58 -0800198 SystemUISharedLib
Hyunyoung Song74176d62018-08-31 10:48:46 -0700199ifneq (,$(wildcard frameworks/base))
Hyunyoung Song74176d62018-08-31 10:48:46 -0700200 LOCAL_PRIVATE_PLATFORM_APIS := true
201else
Hyunyoung Song74176d62018-08-31 10:48:46 -0700202 LOCAL_SDK_VERSION := system_current
203 LOCAL_MIN_SDK_VERSION := 26
204endif
Sunny Goyal9fc97972018-06-18 01:12:37 -0700205LOCAL_STATIC_ANDROID_LIBRARIES := Launcher3CommonDepsLib
Sunny Goyalc5519272018-05-24 12:44:26 -0700206
207LOCAL_SRC_FILES := \
208 $(call all-java-files-under, src) \
209 $(call all-java-files-under, quickstep/src) \
Jon Spivacka89a5082020-11-24 20:24:47 -0800210 $(call all-java-files-under, go/src) \
211 $(call all-java-files-under, go/quickstep/src)
Sunny Goyalc5519272018-05-24 12:44:26 -0700212
213LOCAL_RESOURCE_DIR := \
214 $(LOCAL_PATH)/quickstep/res \
Jon Spivacka89a5082020-11-24 20:24:47 -0800215 $(LOCAL_PATH)/go/res \
216 $(LOCAL_PATH)/go/quickstep/res
Sunny Goyalc5519272018-05-24 12:44:26 -0700217
Rajeev Kumardedecd82018-08-06 14:32:26 -0700218LOCAL_PROGUARD_FLAG_FILES := proguard.flags
Rajeev Kumar02c33da2018-07-31 12:44:09 -0700219LOCAL_PROGUARD_ENABLED := full
Sunny Goyalc5519272018-05-24 12:44:26 -0700220
Sunny Goyalc5519272018-05-24 12:44:26 -0700221LOCAL_PACKAGE_NAME := Launcher3QuickStepGo
222LOCAL_PRIVILEGED_MODULE := true
Jeongik Cha6af66b02019-07-09 10:08:39 +0900223LOCAL_SYSTEM_EXT_MODULE := true
Peter Kalauskas0842cf52019-12-11 11:06:50 -0800224LOCAL_OVERRIDES_PACKAGES := Home Launcher2 Launcher3 Launcher3QuickStep
Anton Hansson3e754602019-02-06 10:26:17 +0000225LOCAL_REQUIRED_MODULES := privapp_whitelist_com.android.launcher3
Kevin28578712019-01-04 17:54:51 -0800226
227LOCAL_FULL_LIBS_MANIFEST_FILES := \
228 $(LOCAL_PATH)/go/AndroidManifest.xml \
Jon Spivacka89a5082020-11-24 20:24:47 -0800229 $(LOCAL_PATH)/go/AndroidManifest-launcher.xml \
Kevin28578712019-01-04 17:54:51 -0800230 $(LOCAL_PATH)/AndroidManifest-common.xml
231
232LOCAL_MANIFEST_FILE := quickstep/AndroidManifest.xml
233LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.*
234include $(BUILD_PACKAGE)
235
Chris Wrenba2923a2013-12-10 15:48:47 -0500236
Sunny Goyald68725c2015-03-13 10:26:27 -0700237# ==================================================
238include $(call all-makefiles-under,$(LOCAL_PATH))