blob: c066a12aeb3d20b876605a1ebadc913238483733 [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#
Tony Wickham76cce292018-10-05 15:11:21 -070020# Build rule for plugin lib (needed to write a plugin).
21#
22include $(CLEAR_VARS)
23LOCAL_USE_AAPT2 := true
24LOCAL_AAPT2_ONLY := true
25LOCAL_MODULE_TAGS := optional
Hyunyoung Songa68fba32019-08-08 00:58:05 -070026LOCAL_STATIC_JAVA_LIBRARIES:= PluginCoreLib
Tony Wickham76cce292018-10-05 15:11:21 -070027
28LOCAL_SRC_FILES := \
29 $(call all-java-files-under, src_plugins)
30
31LOCAL_SDK_VERSION := current
32LOCAL_MIN_SDK_VERSION := 28
33LOCAL_MODULE := LauncherPluginLib
Tony Wickham76cce292018-10-05 15:11:21 -070034
35include $(BUILD_STATIC_JAVA_LIBRARY)
36
Sunny Goyal73133392017-11-02 11:04:49 -070037#
Sunny Goyal9fc97972018-06-18 01:12:37 -070038# Build rule for Launcher3 dependencies lib.
Chris Wren2b6c21d2013-10-02 14:16:04 -040039#
The Android Open Source Project31dd5032009-03-03 19:32:27 -080040include $(CLEAR_VARS)
Sunny Goyal9fc97972018-06-18 01:12:37 -070041LOCAL_USE_AAPT2 := true
42LOCAL_AAPT2_ONLY := true
Jean-Baptiste Queru2583ac52010-01-05 11:09:52 -080043LOCAL_MODULE_TAGS := optional
The Android Open Source Project31dd5032009-03-03 19:32:27 -080044
Sunny Goyal9fc97972018-06-18 01:12:37 -070045LOCAL_STATIC_ANDROID_LIBRARIES := \
Sunny Goyald2303072018-08-14 15:21:45 -070046 androidx.recyclerview_recyclerview \
Sunny Goyalb2498b22018-10-16 16:36:02 -070047 androidx.dynamicanimation_dynamicanimation \
Hyunyoung Song719eee22018-11-01 23:12:54 -070048 androidx.preference_preference \
Sunny Goyal202fabf2018-11-09 11:13:10 -080049 iconloader_base
Hyunyoung Songd30e8452015-07-27 18:24:45 -070050
thiruramc1c2bfa2020-02-04 18:56:40 -080051LOCAL_STATIC_JAVA_LIBRARIES := \
52 LauncherPluginLib \
53 launcher_log_protos_lite
Tony Wickham76cce292018-10-05 15:11:21 -070054
Sunny Goyald83a67a2016-05-23 21:40:53 -070055LOCAL_SRC_FILES := \
Sunny Goyal2385ebe2017-07-19 01:24:07 -070056 $(call all-proto-files-under, protos) \
Sunny Goyal4276e7b2018-11-26 23:44:41 -080057 $(call all-proto-files-under, proto_overrides) \
58 $(call all-java-files-under, src_build_config) \
Hyunyoung Songd30e8452015-07-27 18:24:45 -070059
Sunny Goyal9fc97972018-06-18 01:12:37 -070060LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
Hyunyoung Songd30e8452015-07-27 18:24:45 -070061
Sunny Goyal9fc97972018-06-18 01:12:37 -070062LOCAL_PROGUARD_ENABLED := disabled
Chris Wren1ada10d2013-09-13 18:01:38 -040063
64LOCAL_PROTOC_OPTIMIZE_TYPE := nano
Sunny Goyal2385ebe2017-07-19 01:24:07 -070065LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)/protos/ --proto_path=$(LOCAL_PATH)/proto_overrides/
Sunny Goyal6c46a6d2016-11-23 02:24:32 +053066LOCAL_PROTO_JAVA_OUTPUT_PARAMS := enum_style=java
67
Sunny Goyal9fc97972018-06-18 01:12:37 -070068LOCAL_SDK_VERSION := current
69LOCAL_MIN_SDK_VERSION := 21
70LOCAL_MODULE := Launcher3CommonDepsLib
71LOCAL_PRIVILEGED_MODULE := true
72LOCAL_MANIFEST_FILE := AndroidManifest-common.xml
73
74include $(BUILD_STATIC_JAVA_LIBRARY)
75
76#
77# Build rule for Launcher3 app.
78#
79include $(CLEAR_VARS)
80LOCAL_USE_AAPT2 := true
81LOCAL_MODULE_TAGS := optional
82
Sunny Goyal9c2b9602020-01-07 13:07:55 -080083LOCAL_STATIC_ANDROID_LIBRARIES := Launcher3CommonDepsLib
84
Sunny Goyal9fc97972018-06-18 01:12:37 -070085LOCAL_SRC_FILES := \
86 $(call all-java-files-under, src) \
Rajeev Kumar51ca6032018-10-31 12:54:15 -070087 $(call all-java-files-under, src_shortcuts_overrides) \
Sunny Goyal3e3d7592019-09-11 16:51:50 -070088 $(call all-java-files-under, src_ui_overrides)
Sunny Goyal9fc97972018-06-18 01:12:37 -070089
90LOCAL_PROGUARD_FLAG_FILES := proguard.flags
Sunny Goyal4548a7d2018-10-10 10:02:41 -070091# Proguard is disable for testing. Derivarive prjects to keep proguard enabled
92LOCAL_PROGUARD_ENABLED := disabled
Chris Wren1ada10d2013-09-13 18:01:38 -040093
Sunny Goyal4a6c2c52015-07-07 11:40:31 -070094LOCAL_SDK_VERSION := current
Sunny Goyald297be22016-05-10 15:35:02 -070095LOCAL_MIN_SDK_VERSION := 21
Daniel Sandler325dc232013-06-05 22:57:57 -040096LOCAL_PACKAGE_NAME := Launcher3
Hyunyoung Song3fa99542016-11-14 10:44:39 -080097LOCAL_PRIVILEGED_MODULE := true
Jeongik Cha6af66b02019-07-09 10:08:39 +090098LOCAL_SYSTEM_EXT_MODULE := true
bohu86179022015-05-21 08:20:38 -070099LOCAL_OVERRIDES_PACKAGES := Home Launcher2
Anton Hansson3e754602019-02-06 10:26:17 +0000100LOCAL_REQUIRED_MODULES := privapp_whitelist_com.android.launcher3
The Android Open Source Project31dd5032009-03-03 19:32:27 -0800101
Sunny Goyald83a67a2016-05-23 21:40:53 -0700102LOCAL_FULL_LIBS_MANIFEST_FILES := $(LOCAL_PATH)/AndroidManifest-common.xml
103
Shankhoneer Chakrovarty687c3452016-09-14 18:30:05 -0700104LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.*
105
The Android Open Source Project31dd5032009-03-03 19:32:27 -0800106include $(BUILD_PACKAGE)
Shih-wei Liao163feae2010-07-20 01:22:10 -0700107
Chris Wren2b6c21d2013-10-02 14:16:04 -0400108#
Sunny Goyal64a75aa2017-07-03 13:50:52 -0700109# Build rule for Launcher3 Go app for Android Go devices.
110#
111include $(CLEAR_VARS)
Sunny Goyal9fc97972018-06-18 01:12:37 -0700112LOCAL_USE_AAPT2 := true
Sunny Goyal64a75aa2017-07-03 13:50:52 -0700113LOCAL_MODULE_TAGS := optional
Sunny Goyal9fc97972018-06-18 01:12:37 -0700114LOCAL_STATIC_ANDROID_LIBRARIES := Launcher3CommonDepsLib
Sunny Goyal64a75aa2017-07-03 13:50:52 -0700115
116LOCAL_SRC_FILES := \
117 $(call all-java-files-under, src) \
Sunny Goyal85525172017-11-06 13:00:42 -0800118 $(call all-java-files-under, src_ui_overrides) \
Rajeev Kumarc00a2592018-10-30 17:16:25 -0700119 $(call all-java-files-under, go/src)
Sunny Goyal64a75aa2017-07-03 13:50:52 -0700120
Sunny Goyal9fc97972018-06-18 01:12:37 -0700121LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/go/res
Sunny Goyal64a75aa2017-07-03 13:50:52 -0700122
123LOCAL_PROGUARD_FLAG_FILES := proguard.flags
124
Sunny Goyal64a75aa2017-07-03 13:50:52 -0700125LOCAL_SDK_VERSION := current
126LOCAL_MIN_SDK_VERSION := 21
127LOCAL_PACKAGE_NAME := Launcher3Go
128LOCAL_PRIVILEGED_MODULE := true
Jeongik Cha6af66b02019-07-09 10:08:39 +0900129LOCAL_SYSTEM_EXT_MODULE := true
Tim Joines56ded9c2018-06-19 15:02:52 -0700130LOCAL_OVERRIDES_PACKAGES := Home Launcher2 Launcher3 Launcher3QuickStep
Anton Hansson3e754602019-02-06 10:26:17 +0000131LOCAL_REQUIRED_MODULES := privapp_whitelist_com.android.launcher3
Sunny Goyal64a75aa2017-07-03 13:50:52 -0700132
133LOCAL_FULL_LIBS_MANIFEST_FILES := \
134 $(LOCAL_PATH)/AndroidManifest.xml \
135 $(LOCAL_PATH)/AndroidManifest-common.xml
136
Rajeev Kumarff8699e2018-03-15 23:48:46 +0000137LOCAL_MANIFEST_FILE := go/AndroidManifest.xml
Sunny Goyal64a75aa2017-07-03 13:50:52 -0700138LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.*
Sunny Goyal64a75aa2017-07-03 13:50:52 -0700139include $(BUILD_PACKAGE)
140
141#
Sunny Goyal9fc97972018-06-18 01:12:37 -0700142# Build rule for Quickstep library.
143#
144include $(CLEAR_VARS)
145LOCAL_USE_AAPT2 := true
146LOCAL_AAPT2_ONLY := true
147LOCAL_MODULE_TAGS := optional
148
thiruramc1c2bfa2020-02-04 18:56:40 -0800149LOCAL_STATIC_JAVA_LIBRARIES := \
150 SystemUISharedLib \
151 launcherprotosnano \
152 launcher_log_protos_lite
Hyunyoung Song74176d62018-08-31 10:48:46 -0700153ifneq (,$(wildcard frameworks/base))
Hyunyoung Song74176d62018-08-31 10:48:46 -0700154 LOCAL_PRIVATE_PLATFORM_APIS := true
155else
Hyunyoung Song74176d62018-08-31 10:48:46 -0700156 LOCAL_SDK_VERSION := system_current
157 LOCAL_MIN_SDK_VERSION := 26
158endif
159LOCAL_MODULE := Launcher3QuickStepLib
160LOCAL_PRIVILEGED_MODULE := true
Sunny Goyal9c2b9602020-01-07 13:07:55 -0800161LOCAL_STATIC_ANDROID_LIBRARIES := Launcher3CommonDepsLib
Sunny Goyal9fc97972018-06-18 01:12:37 -0700162
163LOCAL_SRC_FILES := \
164 $(call all-java-files-under, src) \
165 $(call all-java-files-under, quickstep/src) \
Kevin28578712019-01-04 17:54:51 -0800166 $(call all-java-files-under, quickstep/recents_ui_overrides/src) \
Rajeev Kumar51ca6032018-10-31 12:54:15 -0700167 $(call all-java-files-under, src_shortcuts_overrides)
Sunny Goyal9fc97972018-06-18 01:12:37 -0700168
Kevin28578712019-01-04 17:54:51 -0800169LOCAL_RESOURCE_DIR := \
170 $(LOCAL_PATH)/quickstep/res \
171 $(LOCAL_PATH)/quickstep/recents_ui_overrides/res
Sunny Goyal9fc97972018-06-18 01:12:37 -0700172LOCAL_PROGUARD_ENABLED := disabled
173
Sunny Goyal9fc97972018-06-18 01:12:37 -0700174
175LOCAL_MANIFEST_FILE := quickstep/AndroidManifest.xml
176include $(BUILD_STATIC_JAVA_LIBRARY)
177
178#
Sunny Goyal9d341962017-10-30 10:03:34 -0700179# Build rule for Quickstep app.
Chris Wren2b6c21d2013-10-02 14:16:04 -0400180#
181include $(CLEAR_VARS)
Sunny Goyal9fc97972018-06-18 01:12:37 -0700182LOCAL_USE_AAPT2 := true
Sunny Goyal9d341962017-10-30 10:03:34 -0700183LOCAL_MODULE_TAGS := optional
184
Sunny Goyal9fc97972018-06-18 01:12:37 -0700185LOCAL_STATIC_ANDROID_LIBRARIES := Launcher3QuickStepLib
Sunny Goyal73133392017-11-02 11:04:49 -0700186LOCAL_PROGUARD_ENABLED := disabled
Chris Wren2b6c21d2013-10-02 14:16:04 -0400187
Hyunyoung Song74176d62018-08-31 10:48:46 -0700188ifneq (,$(wildcard frameworks/base))
189 LOCAL_PRIVATE_PLATFORM_APIS := true
190else
191 LOCAL_SDK_VERSION := system_current
192 LOCAL_MIN_SDK_VERSION := 26
193endif
Sunny Goyal9d341962017-10-30 10:03:34 -0700194LOCAL_PACKAGE_NAME := Launcher3QuickStep
195LOCAL_PRIVILEGED_MODULE := true
Jeongik Cha6af66b02019-07-09 10:08:39 +0900196LOCAL_SYSTEM_EXT_MODULE := true
Sunny Goyal9d341962017-10-30 10:03:34 -0700197LOCAL_OVERRIDES_PACKAGES := Home Launcher2 Launcher3
Hyunyoung Song896a7152019-03-21 14:06:02 -0700198LOCAL_REQUIRED_MODULES := privapp_whitelist_com.android.launcher3
Sunny Goyal9d341962017-10-30 10:03:34 -0700199
Kevin28578712019-01-04 17:54:51 -0800200LOCAL_RESOURCE_DIR := \
201 $(LOCAL_PATH)/quickstep/res \
202 $(LOCAL_PATH)/quickstep/recents_ui_overrides/res
Sunny Goyal9fc97972018-06-18 01:12:37 -0700203
Sunny Goyal9d341962017-10-30 10:03:34 -0700204LOCAL_FULL_LIBS_MANIFEST_FILES := \
Sunny Goyal210e1742019-10-17 12:05:38 -0700205 $(LOCAL_PATH)/quickstep/AndroidManifest-launcher.xml \
Sunny Goyal9d341962017-10-30 10:03:34 -0700206 $(LOCAL_PATH)/AndroidManifest-common.xml
207
208LOCAL_MANIFEST_FILE := quickstep/AndroidManifest.xml
Sunny Goyal9d341962017-10-30 10:03:34 -0700209LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.*
210
211include $(BUILD_PACKAGE)
212
Sunny Goyal9fc97972018-06-18 01:12:37 -0700213
Sunny Goyalc5519272018-05-24 12:44:26 -0700214#
215# Build rule for Launcher3 Go app with quickstep for Android Go devices.
216#
217include $(CLEAR_VARS)
Sunny Goyal9fc97972018-06-18 01:12:37 -0700218LOCAL_USE_AAPT2 := true
Sunny Goyalc5519272018-05-24 12:44:26 -0700219LOCAL_MODULE_TAGS := optional
220
thiruramc1c2bfa2020-02-04 18:56:40 -0800221LOCAL_STATIC_JAVA_LIBRARIES := \
222 SystemUISharedLib \
223 launcherprotosnano \
224 launcher_log_protos_lite
Hyunyoung Song74176d62018-08-31 10:48:46 -0700225ifneq (,$(wildcard frameworks/base))
Hyunyoung Song74176d62018-08-31 10:48:46 -0700226 LOCAL_PRIVATE_PLATFORM_APIS := true
227else
Hyunyoung Song74176d62018-08-31 10:48:46 -0700228 LOCAL_SDK_VERSION := system_current
229 LOCAL_MIN_SDK_VERSION := 26
230endif
Sunny Goyal9fc97972018-06-18 01:12:37 -0700231LOCAL_STATIC_ANDROID_LIBRARIES := Launcher3CommonDepsLib
Sunny Goyalc5519272018-05-24 12:44:26 -0700232
233LOCAL_SRC_FILES := \
234 $(call all-java-files-under, src) \
235 $(call all-java-files-under, quickstep/src) \
Kevin28578712019-01-04 17:54:51 -0800236 $(call all-java-files-under, quickstep/recents_ui_overrides/src) \
Rajeev Kumarc00a2592018-10-30 17:16:25 -0700237 $(call all-java-files-under, go/src)
Sunny Goyalc5519272018-05-24 12:44:26 -0700238
239LOCAL_RESOURCE_DIR := \
240 $(LOCAL_PATH)/quickstep/res \
Kevin28578712019-01-04 17:54:51 -0800241 $(LOCAL_PATH)/quickstep/recents_ui_overrides/res \
Sunny Goyal9fc97972018-06-18 01:12:37 -0700242 $(LOCAL_PATH)/go/res
Sunny Goyalc5519272018-05-24 12:44:26 -0700243
Rajeev Kumardedecd82018-08-06 14:32:26 -0700244LOCAL_PROGUARD_FLAG_FILES := proguard.flags
Rajeev Kumar02c33da2018-07-31 12:44:09 -0700245LOCAL_PROGUARD_ENABLED := full
Sunny Goyalc5519272018-05-24 12:44:26 -0700246
Sunny Goyalc5519272018-05-24 12:44:26 -0700247LOCAL_PACKAGE_NAME := Launcher3QuickStepGo
248LOCAL_PRIVILEGED_MODULE := true
Jeongik Cha6af66b02019-07-09 10:08:39 +0900249LOCAL_SYSTEM_EXT_MODULE := true
Peter Kalauskas0842cf52019-12-11 11:06:50 -0800250LOCAL_OVERRIDES_PACKAGES := Home Launcher2 Launcher3 Launcher3QuickStep
Anton Hansson3e754602019-02-06 10:26:17 +0000251LOCAL_REQUIRED_MODULES := privapp_whitelist_com.android.launcher3
Kevin28578712019-01-04 17:54:51 -0800252
253LOCAL_FULL_LIBS_MANIFEST_FILES := \
254 $(LOCAL_PATH)/go/AndroidManifest.xml \
Sunny Goyal210e1742019-10-17 12:05:38 -0700255 $(LOCAL_PATH)/quickstep/AndroidManifest-launcher.xml \
Kevin28578712019-01-04 17:54:51 -0800256 $(LOCAL_PATH)/AndroidManifest-common.xml
257
258LOCAL_MANIFEST_FILE := quickstep/AndroidManifest.xml
259LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.*
260include $(BUILD_PACKAGE)
261
Chris Wrenba2923a2013-12-10 15:48:47 -0500262
Sunny Goyald68725c2015-03-13 10:26:27 -0700263# ==================================================
264include $(call all-makefiles-under,$(LOCAL_PATH))