blob: 9cfcf17b9947f8aef5272a9db588ebb2b2d35616 [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 \
35 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 := \
132 SystemUISharedLib \
133 launcherprotosnano \
134 launcher_log_protos_lite
Hyunyoung Song74176d62018-08-31 10:48:46 -0700135ifneq (,$(wildcard frameworks/base))
Hyunyoung Song74176d62018-08-31 10:48:46 -0700136 LOCAL_PRIVATE_PLATFORM_APIS := true
137else
Hyunyoung Song74176d62018-08-31 10:48:46 -0700138 LOCAL_SDK_VERSION := system_current
139 LOCAL_MIN_SDK_VERSION := 26
140endif
141LOCAL_MODULE := Launcher3QuickStepLib
142LOCAL_PRIVILEGED_MODULE := true
Sunny Goyal9c2b9602020-01-07 13:07:55 -0800143LOCAL_STATIC_ANDROID_LIBRARIES := Launcher3CommonDepsLib
Sunny Goyal9fc97972018-06-18 01:12:37 -0700144
145LOCAL_SRC_FILES := \
146 $(call all-java-files-under, src) \
147 $(call all-java-files-under, quickstep/src) \
Kevin28578712019-01-04 17:54:51 -0800148 $(call all-java-files-under, quickstep/recents_ui_overrides/src) \
Rajeev Kumar51ca6032018-10-31 12:54:15 -0700149 $(call all-java-files-under, src_shortcuts_overrides)
Sunny Goyal9fc97972018-06-18 01:12:37 -0700150
Kevin28578712019-01-04 17:54:51 -0800151LOCAL_RESOURCE_DIR := \
152 $(LOCAL_PATH)/quickstep/res \
153 $(LOCAL_PATH)/quickstep/recents_ui_overrides/res
Sunny Goyal9fc97972018-06-18 01:12:37 -0700154LOCAL_PROGUARD_ENABLED := disabled
155
Sunny Goyal9fc97972018-06-18 01:12:37 -0700156
157LOCAL_MANIFEST_FILE := quickstep/AndroidManifest.xml
158include $(BUILD_STATIC_JAVA_LIBRARY)
159
160#
Sunny Goyal9d341962017-10-30 10:03:34 -0700161# Build rule for Quickstep app.
Chris Wren2b6c21d2013-10-02 14:16:04 -0400162#
163include $(CLEAR_VARS)
Sunny Goyal9fc97972018-06-18 01:12:37 -0700164LOCAL_USE_AAPT2 := true
Sunny Goyal9d341962017-10-30 10:03:34 -0700165LOCAL_MODULE_TAGS := optional
166
Sunny Goyal9fc97972018-06-18 01:12:37 -0700167LOCAL_STATIC_ANDROID_LIBRARIES := Launcher3QuickStepLib
Sunny Goyal73133392017-11-02 11:04:49 -0700168LOCAL_PROGUARD_ENABLED := disabled
Chris Wren2b6c21d2013-10-02 14:16:04 -0400169
Hyunyoung Song74176d62018-08-31 10:48:46 -0700170ifneq (,$(wildcard frameworks/base))
171 LOCAL_PRIVATE_PLATFORM_APIS := true
172else
173 LOCAL_SDK_VERSION := system_current
174 LOCAL_MIN_SDK_VERSION := 26
175endif
Sunny Goyal9d341962017-10-30 10:03:34 -0700176LOCAL_PACKAGE_NAME := Launcher3QuickStep
177LOCAL_PRIVILEGED_MODULE := true
Jeongik Cha6af66b02019-07-09 10:08:39 +0900178LOCAL_SYSTEM_EXT_MODULE := true
Sunny Goyal9d341962017-10-30 10:03:34 -0700179LOCAL_OVERRIDES_PACKAGES := Home Launcher2 Launcher3
Hyunyoung Song896a7152019-03-21 14:06:02 -0700180LOCAL_REQUIRED_MODULES := privapp_whitelist_com.android.launcher3
Sunny Goyal9d341962017-10-30 10:03:34 -0700181
Kevin28578712019-01-04 17:54:51 -0800182LOCAL_RESOURCE_DIR := \
183 $(LOCAL_PATH)/quickstep/res \
184 $(LOCAL_PATH)/quickstep/recents_ui_overrides/res
Sunny Goyal9fc97972018-06-18 01:12:37 -0700185
Sunny Goyal9d341962017-10-30 10:03:34 -0700186LOCAL_FULL_LIBS_MANIFEST_FILES := \
Sunny Goyal210e1742019-10-17 12:05:38 -0700187 $(LOCAL_PATH)/quickstep/AndroidManifest-launcher.xml \
Sunny Goyal9d341962017-10-30 10:03:34 -0700188 $(LOCAL_PATH)/AndroidManifest-common.xml
189
190LOCAL_MANIFEST_FILE := quickstep/AndroidManifest.xml
Sunny Goyal9d341962017-10-30 10:03:34 -0700191LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.*
192
193include $(BUILD_PACKAGE)
194
Sunny Goyal9fc97972018-06-18 01:12:37 -0700195
Sunny Goyalc5519272018-05-24 12:44:26 -0700196#
197# Build rule for Launcher3 Go app with quickstep for Android Go devices.
198#
199include $(CLEAR_VARS)
Sunny Goyal9fc97972018-06-18 01:12:37 -0700200LOCAL_USE_AAPT2 := true
Sunny Goyalc5519272018-05-24 12:44:26 -0700201LOCAL_MODULE_TAGS := optional
202
thiruramc1c2bfa2020-02-04 18:56:40 -0800203LOCAL_STATIC_JAVA_LIBRARIES := \
204 SystemUISharedLib \
205 launcherprotosnano \
206 launcher_log_protos_lite
Hyunyoung Song74176d62018-08-31 10:48:46 -0700207ifneq (,$(wildcard frameworks/base))
Hyunyoung Song74176d62018-08-31 10:48:46 -0700208 LOCAL_PRIVATE_PLATFORM_APIS := true
209else
Hyunyoung Song74176d62018-08-31 10:48:46 -0700210 LOCAL_SDK_VERSION := system_current
211 LOCAL_MIN_SDK_VERSION := 26
212endif
Sunny Goyal9fc97972018-06-18 01:12:37 -0700213LOCAL_STATIC_ANDROID_LIBRARIES := Launcher3CommonDepsLib
Sunny Goyalc5519272018-05-24 12:44:26 -0700214
215LOCAL_SRC_FILES := \
216 $(call all-java-files-under, src) \
217 $(call all-java-files-under, quickstep/src) \
Kevin28578712019-01-04 17:54:51 -0800218 $(call all-java-files-under, quickstep/recents_ui_overrides/src) \
Rajeev Kumarc00a2592018-10-30 17:16:25 -0700219 $(call all-java-files-under, go/src)
Sunny Goyalc5519272018-05-24 12:44:26 -0700220
221LOCAL_RESOURCE_DIR := \
222 $(LOCAL_PATH)/quickstep/res \
Kevin28578712019-01-04 17:54:51 -0800223 $(LOCAL_PATH)/quickstep/recents_ui_overrides/res \
Sunny Goyal9fc97972018-06-18 01:12:37 -0700224 $(LOCAL_PATH)/go/res
Sunny Goyalc5519272018-05-24 12:44:26 -0700225
Rajeev Kumardedecd82018-08-06 14:32:26 -0700226LOCAL_PROGUARD_FLAG_FILES := proguard.flags
Rajeev Kumar02c33da2018-07-31 12:44:09 -0700227LOCAL_PROGUARD_ENABLED := full
Sunny Goyalc5519272018-05-24 12:44:26 -0700228
Sunny Goyalc5519272018-05-24 12:44:26 -0700229LOCAL_PACKAGE_NAME := Launcher3QuickStepGo
230LOCAL_PRIVILEGED_MODULE := true
Jeongik Cha6af66b02019-07-09 10:08:39 +0900231LOCAL_SYSTEM_EXT_MODULE := true
Peter Kalauskas0842cf52019-12-11 11:06:50 -0800232LOCAL_OVERRIDES_PACKAGES := Home Launcher2 Launcher3 Launcher3QuickStep
Anton Hansson3e754602019-02-06 10:26:17 +0000233LOCAL_REQUIRED_MODULES := privapp_whitelist_com.android.launcher3
Kevin28578712019-01-04 17:54:51 -0800234
235LOCAL_FULL_LIBS_MANIFEST_FILES := \
236 $(LOCAL_PATH)/go/AndroidManifest.xml \
Sunny Goyal210e1742019-10-17 12:05:38 -0700237 $(LOCAL_PATH)/quickstep/AndroidManifest-launcher.xml \
Kevin28578712019-01-04 17:54:51 -0800238 $(LOCAL_PATH)/AndroidManifest-common.xml
239
240LOCAL_MANIFEST_FILE := quickstep/AndroidManifest.xml
241LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.*
242include $(BUILD_PACKAGE)
243
Chris Wrenba2923a2013-12-10 15:48:47 -0500244
Sunny Goyald68725c2015-03-13 10:26:27 -0700245# ==================================================
246include $(call all-makefiles-under,$(LOCAL_PATH))