blob: fcd4a94efcbd2955d02c63669b88bde9d9176f75 [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 \
Sunny Goyal202fabf2018-11-09 11:13:10 -080031 iconloader_base
Hyunyoung Songd30e8452015-07-27 18:24:45 -070032
thiruramc1c2bfa2020-02-04 18:56:40 -080033LOCAL_STATIC_JAVA_LIBRARIES := \
34 LauncherPluginLib \
Hyunyoung Song1505d2f2020-04-15 16:52:19 +000035 launcher_log_protos_lite
Tony Wickham76cce292018-10-05 15:11:21 -070036
Sunny Goyald83a67a2016-05-23 21:40:53 -070037LOCAL_SRC_FILES := \
Sunny Goyal2385ebe2017-07-19 01:24:07 -070038 $(call all-proto-files-under, protos) \
Sunny Goyal4276e7b2018-11-26 23:44:41 -080039 $(call all-proto-files-under, proto_overrides) \
40 $(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
46LOCAL_PROTOC_OPTIMIZE_TYPE := nano
Sunny Goyal2385ebe2017-07-19 01:24:07 -070047LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)/protos/ --proto_path=$(LOCAL_PATH)/proto_overrides/
Sunny Goyal6c46a6d2016-11-23 02:24:32 +053048LOCAL_PROTO_JAVA_OUTPUT_PARAMS := enum_style=java
49
Sunny Goyal9fc97972018-06-18 01:12:37 -070050LOCAL_SDK_VERSION := current
51LOCAL_MIN_SDK_VERSION := 21
52LOCAL_MODULE := Launcher3CommonDepsLib
53LOCAL_PRIVILEGED_MODULE := true
54LOCAL_MANIFEST_FILE := AndroidManifest-common.xml
55
56include $(BUILD_STATIC_JAVA_LIBRARY)
57
58#
59# Build rule for Launcher3 app.
60#
61include $(CLEAR_VARS)
62LOCAL_USE_AAPT2 := true
63LOCAL_MODULE_TAGS := optional
64
Sunny Goyal9c2b9602020-01-07 13:07:55 -080065LOCAL_STATIC_ANDROID_LIBRARIES := Launcher3CommonDepsLib
66
Sunny Goyal9fc97972018-06-18 01:12:37 -070067LOCAL_SRC_FILES := \
68 $(call all-java-files-under, src) \
Rajeev Kumar51ca6032018-10-31 12:54:15 -070069 $(call all-java-files-under, src_shortcuts_overrides) \
Sunny Goyal3e3d7592019-09-11 16:51:50 -070070 $(call all-java-files-under, src_ui_overrides)
Sunny Goyal9fc97972018-06-18 01:12:37 -070071
72LOCAL_PROGUARD_FLAG_FILES := proguard.flags
Sunny Goyal4548a7d2018-10-10 10:02:41 -070073# Proguard is disable for testing. Derivarive prjects to keep proguard enabled
74LOCAL_PROGUARD_ENABLED := disabled
Chris Wren1ada10d2013-09-13 18:01:38 -040075
Sunny Goyal4a6c2c52015-07-07 11:40:31 -070076LOCAL_SDK_VERSION := current
Sunny Goyald297be22016-05-10 15:35:02 -070077LOCAL_MIN_SDK_VERSION := 21
Daniel Sandler325dc232013-06-05 22:57:57 -040078LOCAL_PACKAGE_NAME := Launcher3
Hyunyoung Song3fa99542016-11-14 10:44:39 -080079LOCAL_PRIVILEGED_MODULE := true
Jeongik Cha6af66b02019-07-09 10:08:39 +090080LOCAL_SYSTEM_EXT_MODULE := true
bohu86179022015-05-21 08:20:38 -070081LOCAL_OVERRIDES_PACKAGES := Home Launcher2
Anton Hansson3e754602019-02-06 10:26:17 +000082LOCAL_REQUIRED_MODULES := privapp_whitelist_com.android.launcher3
The Android Open Source Project31dd5032009-03-03 19:32:27 -080083
Sunny Goyald83a67a2016-05-23 21:40:53 -070084LOCAL_FULL_LIBS_MANIFEST_FILES := $(LOCAL_PATH)/AndroidManifest-common.xml
85
Shankhoneer Chakrovarty687c3452016-09-14 18:30:05 -070086LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.*
87
The Android Open Source Project31dd5032009-03-03 19:32:27 -080088include $(BUILD_PACKAGE)
Shih-wei Liao163feae2010-07-20 01:22:10 -070089
Chris Wren2b6c21d2013-10-02 14:16:04 -040090#
Sunny Goyal64a75aa2017-07-03 13:50:52 -070091# Build rule for Launcher3 Go app for Android Go devices.
92#
93include $(CLEAR_VARS)
Sunny Goyal9fc97972018-06-18 01:12:37 -070094LOCAL_USE_AAPT2 := true
Sunny Goyal64a75aa2017-07-03 13:50:52 -070095LOCAL_MODULE_TAGS := optional
Sunny Goyal9fc97972018-06-18 01:12:37 -070096LOCAL_STATIC_ANDROID_LIBRARIES := Launcher3CommonDepsLib
Sunny Goyal64a75aa2017-07-03 13:50:52 -070097
98LOCAL_SRC_FILES := \
99 $(call all-java-files-under, src) \
Sunny Goyal85525172017-11-06 13:00:42 -0800100 $(call all-java-files-under, src_ui_overrides) \
Rajeev Kumarc00a2592018-10-30 17:16:25 -0700101 $(call all-java-files-under, go/src)
Sunny Goyal64a75aa2017-07-03 13:50:52 -0700102
Sunny Goyal9fc97972018-06-18 01:12:37 -0700103LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/go/res
Sunny Goyal64a75aa2017-07-03 13:50:52 -0700104
105LOCAL_PROGUARD_FLAG_FILES := proguard.flags
106
Sunny Goyal64a75aa2017-07-03 13:50:52 -0700107LOCAL_SDK_VERSION := current
108LOCAL_MIN_SDK_VERSION := 21
109LOCAL_PACKAGE_NAME := Launcher3Go
110LOCAL_PRIVILEGED_MODULE := true
Jeongik Cha6af66b02019-07-09 10:08:39 +0900111LOCAL_SYSTEM_EXT_MODULE := true
Tim Joines56ded9c2018-06-19 15:02:52 -0700112LOCAL_OVERRIDES_PACKAGES := Home Launcher2 Launcher3 Launcher3QuickStep
Anton Hansson3e754602019-02-06 10:26:17 +0000113LOCAL_REQUIRED_MODULES := privapp_whitelist_com.android.launcher3
Sunny Goyal64a75aa2017-07-03 13:50:52 -0700114
115LOCAL_FULL_LIBS_MANIFEST_FILES := \
116 $(LOCAL_PATH)/AndroidManifest.xml \
117 $(LOCAL_PATH)/AndroidManifest-common.xml
118
Rajeev Kumarff8699e2018-03-15 23:48:46 +0000119LOCAL_MANIFEST_FILE := go/AndroidManifest.xml
Sunny Goyal64a75aa2017-07-03 13:50:52 -0700120LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.*
Sunny Goyal64a75aa2017-07-03 13:50:52 -0700121include $(BUILD_PACKAGE)
122
123#
Sunny Goyal9fc97972018-06-18 01:12:37 -0700124# Build rule for Quickstep library.
125#
126include $(CLEAR_VARS)
127LOCAL_USE_AAPT2 := true
128LOCAL_AAPT2_ONLY := true
129LOCAL_MODULE_TAGS := optional
130
thiruramc1c2bfa2020-02-04 18:56:40 -0800131LOCAL_STATIC_JAVA_LIBRARIES := \
Hyunyoung Song7f7894e2020-04-27 01:12:01 -0700132 SystemUI-statsd \
thiruramc1c2bfa2020-02-04 18:56:40 -0800133 SystemUISharedLib \
134 launcherprotosnano \
135 launcher_log_protos_lite
Hyunyoung Song74176d62018-08-31 10:48:46 -0700136ifneq (,$(wildcard frameworks/base))
Hyunyoung Song74176d62018-08-31 10:48:46 -0700137 LOCAL_PRIVATE_PLATFORM_APIS := true
138else
Hyunyoung Song74176d62018-08-31 10:48:46 -0700139 LOCAL_SDK_VERSION := system_current
140 LOCAL_MIN_SDK_VERSION := 26
141endif
142LOCAL_MODULE := Launcher3QuickStepLib
143LOCAL_PRIVILEGED_MODULE := true
Sunny Goyal9c2b9602020-01-07 13:07:55 -0800144LOCAL_STATIC_ANDROID_LIBRARIES := Launcher3CommonDepsLib
Sunny Goyal9fc97972018-06-18 01:12:37 -0700145
146LOCAL_SRC_FILES := \
147 $(call all-java-files-under, src) \
148 $(call all-java-files-under, quickstep/src) \
Kevin28578712019-01-04 17:54:51 -0800149 $(call all-java-files-under, quickstep/recents_ui_overrides/src) \
Rajeev Kumar51ca6032018-10-31 12:54:15 -0700150 $(call all-java-files-under, src_shortcuts_overrides)
Sunny Goyal9fc97972018-06-18 01:12:37 -0700151
Kevin28578712019-01-04 17:54:51 -0800152LOCAL_RESOURCE_DIR := \
153 $(LOCAL_PATH)/quickstep/res \
154 $(LOCAL_PATH)/quickstep/recents_ui_overrides/res
Sunny Goyal9fc97972018-06-18 01:12:37 -0700155LOCAL_PROGUARD_ENABLED := disabled
156
Sunny Goyal9fc97972018-06-18 01:12:37 -0700157
158LOCAL_MANIFEST_FILE := quickstep/AndroidManifest.xml
159include $(BUILD_STATIC_JAVA_LIBRARY)
160
161#
Sunny Goyal9d341962017-10-30 10:03:34 -0700162# Build rule for Quickstep app.
Chris Wren2b6c21d2013-10-02 14:16:04 -0400163#
164include $(CLEAR_VARS)
Sunny Goyal9fc97972018-06-18 01:12:37 -0700165LOCAL_USE_AAPT2 := true
Sunny Goyal9d341962017-10-30 10:03:34 -0700166LOCAL_MODULE_TAGS := optional
167
Sunny Goyal9fc97972018-06-18 01:12:37 -0700168LOCAL_STATIC_ANDROID_LIBRARIES := Launcher3QuickStepLib
Sunny Goyal73133392017-11-02 11:04:49 -0700169LOCAL_PROGUARD_ENABLED := disabled
Chris Wren2b6c21d2013-10-02 14:16:04 -0400170
Hyunyoung Song74176d62018-08-31 10:48:46 -0700171ifneq (,$(wildcard frameworks/base))
172 LOCAL_PRIVATE_PLATFORM_APIS := true
173else
174 LOCAL_SDK_VERSION := system_current
175 LOCAL_MIN_SDK_VERSION := 26
176endif
Sunny Goyal9d341962017-10-30 10:03:34 -0700177LOCAL_PACKAGE_NAME := Launcher3QuickStep
178LOCAL_PRIVILEGED_MODULE := true
Jeongik Cha6af66b02019-07-09 10:08:39 +0900179LOCAL_SYSTEM_EXT_MODULE := true
Sunny Goyal9d341962017-10-30 10:03:34 -0700180LOCAL_OVERRIDES_PACKAGES := Home Launcher2 Launcher3
Hyunyoung Song896a7152019-03-21 14:06:02 -0700181LOCAL_REQUIRED_MODULES := privapp_whitelist_com.android.launcher3
Sunny Goyal9d341962017-10-30 10:03:34 -0700182
Kevin28578712019-01-04 17:54:51 -0800183LOCAL_RESOURCE_DIR := \
184 $(LOCAL_PATH)/quickstep/res \
185 $(LOCAL_PATH)/quickstep/recents_ui_overrides/res
Sunny Goyal9fc97972018-06-18 01:12:37 -0700186
Sunny Goyal9d341962017-10-30 10:03:34 -0700187LOCAL_FULL_LIBS_MANIFEST_FILES := \
Sunny Goyal210e1742019-10-17 12:05:38 -0700188 $(LOCAL_PATH)/quickstep/AndroidManifest-launcher.xml \
Sunny Goyal9d341962017-10-30 10:03:34 -0700189 $(LOCAL_PATH)/AndroidManifest-common.xml
190
191LOCAL_MANIFEST_FILE := quickstep/AndroidManifest.xml
Sunny Goyal9d341962017-10-30 10:03:34 -0700192LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.*
193
194include $(BUILD_PACKAGE)
195
Sunny Goyal9fc97972018-06-18 01:12:37 -0700196
Sunny Goyalc5519272018-05-24 12:44:26 -0700197#
198# Build rule for Launcher3 Go app with quickstep for Android Go devices.
199#
200include $(CLEAR_VARS)
Sunny Goyal9fc97972018-06-18 01:12:37 -0700201LOCAL_USE_AAPT2 := true
Sunny Goyalc5519272018-05-24 12:44:26 -0700202LOCAL_MODULE_TAGS := optional
203
thiruramc1c2bfa2020-02-04 18:56:40 -0800204LOCAL_STATIC_JAVA_LIBRARIES := \
Hyunyoung Song7f7894e2020-04-27 01:12:01 -0700205 SystemUI-statsd \
thiruramc1c2bfa2020-02-04 18:56:40 -0800206 SystemUISharedLib \
207 launcherprotosnano \
208 launcher_log_protos_lite
Hyunyoung Song74176d62018-08-31 10:48:46 -0700209ifneq (,$(wildcard frameworks/base))
Hyunyoung Song74176d62018-08-31 10:48:46 -0700210 LOCAL_PRIVATE_PLATFORM_APIS := true
211else
Hyunyoung Song74176d62018-08-31 10:48:46 -0700212 LOCAL_SDK_VERSION := system_current
213 LOCAL_MIN_SDK_VERSION := 26
214endif
Sunny Goyal9fc97972018-06-18 01:12:37 -0700215LOCAL_STATIC_ANDROID_LIBRARIES := Launcher3CommonDepsLib
Sunny Goyalc5519272018-05-24 12:44:26 -0700216
217LOCAL_SRC_FILES := \
218 $(call all-java-files-under, src) \
219 $(call all-java-files-under, quickstep/src) \
Kevin28578712019-01-04 17:54:51 -0800220 $(call all-java-files-under, quickstep/recents_ui_overrides/src) \
Rajeev Kumarc00a2592018-10-30 17:16:25 -0700221 $(call all-java-files-under, go/src)
Sunny Goyalc5519272018-05-24 12:44:26 -0700222
223LOCAL_RESOURCE_DIR := \
224 $(LOCAL_PATH)/quickstep/res \
Kevin28578712019-01-04 17:54:51 -0800225 $(LOCAL_PATH)/quickstep/recents_ui_overrides/res \
Sunny Goyal9fc97972018-06-18 01:12:37 -0700226 $(LOCAL_PATH)/go/res
Sunny Goyalc5519272018-05-24 12:44:26 -0700227
Rajeev Kumardedecd82018-08-06 14:32:26 -0700228LOCAL_PROGUARD_FLAG_FILES := proguard.flags
Rajeev Kumar02c33da2018-07-31 12:44:09 -0700229LOCAL_PROGUARD_ENABLED := full
Sunny Goyalc5519272018-05-24 12:44:26 -0700230
Sunny Goyalc5519272018-05-24 12:44:26 -0700231LOCAL_PACKAGE_NAME := Launcher3QuickStepGo
232LOCAL_PRIVILEGED_MODULE := true
Jeongik Cha6af66b02019-07-09 10:08:39 +0900233LOCAL_SYSTEM_EXT_MODULE := true
Peter Kalauskas0842cf52019-12-11 11:06:50 -0800234LOCAL_OVERRIDES_PACKAGES := Home Launcher2 Launcher3 Launcher3QuickStep
Anton Hansson3e754602019-02-06 10:26:17 +0000235LOCAL_REQUIRED_MODULES := privapp_whitelist_com.android.launcher3
Kevin28578712019-01-04 17:54:51 -0800236
237LOCAL_FULL_LIBS_MANIFEST_FILES := \
238 $(LOCAL_PATH)/go/AndroidManifest.xml \
Sunny Goyal210e1742019-10-17 12:05:38 -0700239 $(LOCAL_PATH)/quickstep/AndroidManifest-launcher.xml \
Kevin28578712019-01-04 17:54:51 -0800240 $(LOCAL_PATH)/AndroidManifest-common.xml
241
242LOCAL_MANIFEST_FILE := quickstep/AndroidManifest.xml
243LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.*
244include $(BUILD_PACKAGE)
245
Chris Wrenba2923a2013-12-10 15:48:47 -0500246
Sunny Goyald68725c2015-03-13 10:26:27 -0700247# ==================================================
248include $(call all-makefiles-under,$(LOCAL_PATH))