blob: 628b632cc6080ad9109d106960d3912d41548d52 [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 Goyal73133392017-11-02 11:04:49 -070020# Prebuilt Java Libraries
21#
22include $(CLEAR_VARS)
Jiyong Park1bb730c2018-02-23 18:02:11 +090023LOCAL_MODULE := libSharedSystemUI
24LOCAL_MODULE_TAGS := optional
25LOCAL_MODULE_CLASS := JAVA_LIBRARIES
26LOCAL_SRC_FILES := quickstep/libs/sysui_shared.jar
27LOCAL_UNINSTALLABLE_MODULE := true
28LOCAL_SDK_VERSION := current
29include $(BUILD_PREBUILT)
Sunny Goyal73133392017-11-02 11:04:49 -070030
Tony Wickham76cce292018-10-05 15:11:21 -070031include $(CLEAR_VARS)
32LOCAL_MODULE := libPluginCore
33LOCAL_MODULE_TAGS := optional
34LOCAL_MODULE_CLASS := JAVA_LIBRARIES
35LOCAL_SRC_FILES := libs/plugin_core.jar
36LOCAL_UNINSTALLABLE_MODULE := true
37LOCAL_SDK_VERSION := current
38include $(BUILD_PREBUILT)
39
Hyunyoung Song0ae38882018-11-05 14:45:19 -080040include $(CLEAR_VARS)
41LOCAL_MODULE := libLauncherProtos
42LOCAL_MODULE_TAGS := optional
43LOCAL_MODULE_CLASS := JAVA_LIBRARIES
44LOCAL_SRC_FILES := libs/launcher_protos.jar
45LOCAL_UNINSTALLABLE_MODULE := true
46LOCAL_SDK_VERSION := current
47include $(BUILD_PREBUILT)
Tony Wickham76cce292018-10-05 15:11:21 -070048#
49# Build rule for plugin lib (needed to write a plugin).
50#
51include $(CLEAR_VARS)
52LOCAL_USE_AAPT2 := true
53LOCAL_AAPT2_ONLY := true
54LOCAL_MODULE_TAGS := optional
55
56LOCAL_STATIC_JAVA_LIBRARIES := libPluginCore
57
58LOCAL_SRC_FILES := \
59 $(call all-java-files-under, src_plugins)
60
61LOCAL_SDK_VERSION := current
62LOCAL_MIN_SDK_VERSION := 28
63LOCAL_MODULE := LauncherPluginLib
Tony Wickham76cce292018-10-05 15:11:21 -070064
65include $(BUILD_STATIC_JAVA_LIBRARY)
66
Sunny Goyal73133392017-11-02 11:04:49 -070067#
Sunny Goyal9fc97972018-06-18 01:12:37 -070068# Build rule for Launcher3 dependencies lib.
Chris Wren2b6c21d2013-10-02 14:16:04 -040069#
The Android Open Source Project31dd5032009-03-03 19:32:27 -080070include $(CLEAR_VARS)
Sunny Goyal9fc97972018-06-18 01:12:37 -070071LOCAL_USE_AAPT2 := true
72LOCAL_AAPT2_ONLY := true
Jean-Baptiste Queru2583ac52010-01-05 11:09:52 -080073LOCAL_MODULE_TAGS := optional
The Android Open Source Project31dd5032009-03-03 19:32:27 -080074
Sunny Goyal9fc97972018-06-18 01:12:37 -070075LOCAL_STATIC_ANDROID_LIBRARIES := \
Sunny Goyald2303072018-08-14 15:21:45 -070076 androidx.recyclerview_recyclerview \
Sunny Goyalb2498b22018-10-16 16:36:02 -070077 androidx.dynamicanimation_dynamicanimation \
Hyunyoung Song719eee22018-11-01 23:12:54 -070078 androidx.preference_preference \
Sunny Goyal202fabf2018-11-09 11:13:10 -080079 iconloader_base
Hyunyoung Songd30e8452015-07-27 18:24:45 -070080
Tony Wickham5c5c1182018-10-12 17:42:51 -070081LOCAL_STATIC_JAVA_LIBRARIES := LauncherPluginLib
Tony Wickham76cce292018-10-05 15:11:21 -070082
Sunny Goyald83a67a2016-05-23 21:40:53 -070083LOCAL_SRC_FILES := \
Sunny Goyal2385ebe2017-07-19 01:24:07 -070084 $(call all-proto-files-under, protos) \
Sunny Goyal4276e7b2018-11-26 23:44:41 -080085 $(call all-proto-files-under, proto_overrides) \
86 $(call all-java-files-under, src_build_config) \
Hyunyoung Songd30e8452015-07-27 18:24:45 -070087
Sunny Goyal9fc97972018-06-18 01:12:37 -070088LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
Hyunyoung Songd30e8452015-07-27 18:24:45 -070089
Sunny Goyal9fc97972018-06-18 01:12:37 -070090LOCAL_PROGUARD_ENABLED := disabled
Chris Wren1ada10d2013-09-13 18:01:38 -040091
92LOCAL_PROTOC_OPTIMIZE_TYPE := nano
Sunny Goyal2385ebe2017-07-19 01:24:07 -070093LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)/protos/ --proto_path=$(LOCAL_PATH)/proto_overrides/
Sunny Goyal6c46a6d2016-11-23 02:24:32 +053094LOCAL_PROTO_JAVA_OUTPUT_PARAMS := enum_style=java
95
Sunny Goyal9fc97972018-06-18 01:12:37 -070096LOCAL_SDK_VERSION := current
97LOCAL_MIN_SDK_VERSION := 21
98LOCAL_MODULE := Launcher3CommonDepsLib
99LOCAL_PRIVILEGED_MODULE := true
100LOCAL_MANIFEST_FILE := AndroidManifest-common.xml
101
102include $(BUILD_STATIC_JAVA_LIBRARY)
103
104#
105# Build rule for Launcher3 app.
106#
107include $(CLEAR_VARS)
108LOCAL_USE_AAPT2 := true
109LOCAL_MODULE_TAGS := optional
110
Chilun3516bd82018-11-29 20:38:22 +0800111LOCAL_STATIC_ANDROID_LIBRARIES := \
112 Launcher3CommonDepsLib \
113 SecondaryDisplayLauncherLib
Sunny Goyal9fc97972018-06-18 01:12:37 -0700114LOCAL_SRC_FILES := \
115 $(call all-java-files-under, src) \
Rajeev Kumar51ca6032018-10-31 12:54:15 -0700116 $(call all-java-files-under, src_shortcuts_overrides) \
Sunny Goyal9fc97972018-06-18 01:12:37 -0700117 $(call all-java-files-under, src_ui_overrides) \
118 $(call all-java-files-under, src_flags)
119
120LOCAL_PROGUARD_FLAG_FILES := proguard.flags
Sunny Goyal4548a7d2018-10-10 10:02:41 -0700121# Proguard is disable for testing. Derivarive prjects to keep proguard enabled
122LOCAL_PROGUARD_ENABLED := disabled
Chris Wren1ada10d2013-09-13 18:01:38 -0400123
Sunny Goyal4a6c2c52015-07-07 11:40:31 -0700124LOCAL_SDK_VERSION := current
Sunny Goyald297be22016-05-10 15:35:02 -0700125LOCAL_MIN_SDK_VERSION := 21
Daniel Sandler325dc232013-06-05 22:57:57 -0400126LOCAL_PACKAGE_NAME := Launcher3
Hyunyoung Song3fa99542016-11-14 10:44:39 -0800127LOCAL_PRIVILEGED_MODULE := true
Hyunyoung Song61636242019-02-01 17:43:40 -0800128LOCAL_PRODUCT_MODULE := true
bohu86179022015-05-21 08:20:38 -0700129LOCAL_OVERRIDES_PACKAGES := Home Launcher2
Anton Hansson3e754602019-02-06 10:26:17 +0000130LOCAL_REQUIRED_MODULES := privapp_whitelist_com.android.launcher3
The Android Open Source Project31dd5032009-03-03 19:32:27 -0800131
Sunny Goyald83a67a2016-05-23 21:40:53 -0700132LOCAL_FULL_LIBS_MANIFEST_FILES := $(LOCAL_PATH)/AndroidManifest-common.xml
133
Shankhoneer Chakrovarty687c3452016-09-14 18:30:05 -0700134LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.*
135
The Android Open Source Project31dd5032009-03-03 19:32:27 -0800136include $(BUILD_PACKAGE)
Shih-wei Liao163feae2010-07-20 01:22:10 -0700137
Chris Wren2b6c21d2013-10-02 14:16:04 -0400138#
Sunny Goyal64a75aa2017-07-03 13:50:52 -0700139# Build rule for Launcher3 Go app for Android Go devices.
140#
141include $(CLEAR_VARS)
Sunny Goyal9fc97972018-06-18 01:12:37 -0700142LOCAL_USE_AAPT2 := true
Sunny Goyal64a75aa2017-07-03 13:50:52 -0700143LOCAL_MODULE_TAGS := optional
Sunny Goyal9fc97972018-06-18 01:12:37 -0700144LOCAL_STATIC_ANDROID_LIBRARIES := Launcher3CommonDepsLib
Sunny Goyal64a75aa2017-07-03 13:50:52 -0700145
146LOCAL_SRC_FILES := \
147 $(call all-java-files-under, src) \
Sunny Goyal85525172017-11-06 13:00:42 -0800148 $(call all-java-files-under, src_ui_overrides) \
Rajeev Kumarc00a2592018-10-30 17:16:25 -0700149 $(call all-java-files-under, go/src)
Sunny Goyal64a75aa2017-07-03 13:50:52 -0700150
Sunny Goyal9fc97972018-06-18 01:12:37 -0700151LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/go/res
Sunny Goyal64a75aa2017-07-03 13:50:52 -0700152
153LOCAL_PROGUARD_FLAG_FILES := proguard.flags
154
Sunny Goyal64a75aa2017-07-03 13:50:52 -0700155LOCAL_SDK_VERSION := current
156LOCAL_MIN_SDK_VERSION := 21
157LOCAL_PACKAGE_NAME := Launcher3Go
158LOCAL_PRIVILEGED_MODULE := true
Hyunyoung Song61636242019-02-01 17:43:40 -0800159LOCAL_PRODUCT_MODULE := true
Tim Joines56ded9c2018-06-19 15:02:52 -0700160LOCAL_OVERRIDES_PACKAGES := Home Launcher2 Launcher3 Launcher3QuickStep
Anton Hansson3e754602019-02-06 10:26:17 +0000161LOCAL_REQUIRED_MODULES := privapp_whitelist_com.android.launcher3
Sunny Goyal64a75aa2017-07-03 13:50:52 -0700162
163LOCAL_FULL_LIBS_MANIFEST_FILES := \
164 $(LOCAL_PATH)/AndroidManifest.xml \
165 $(LOCAL_PATH)/AndroidManifest-common.xml
166
Rajeev Kumarff8699e2018-03-15 23:48:46 +0000167LOCAL_MANIFEST_FILE := go/AndroidManifest.xml
Sunny Goyal64a75aa2017-07-03 13:50:52 -0700168LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.*
Sunny Goyal64a75aa2017-07-03 13:50:52 -0700169include $(BUILD_PACKAGE)
170
171#
Sunny Goyal9fc97972018-06-18 01:12:37 -0700172# Build rule for Quickstep library.
173#
174include $(CLEAR_VARS)
175LOCAL_USE_AAPT2 := true
176LOCAL_AAPT2_ONLY := true
177LOCAL_MODULE_TAGS := optional
178
Hyunyoung Song74176d62018-08-31 10:48:46 -0700179ifneq (,$(wildcard frameworks/base))
Hyunyoung Song0ae38882018-11-05 14:45:19 -0800180 LOCAL_STATIC_JAVA_LIBRARIES := SystemUISharedLib launcherprotosnano
Hyunyoung Song74176d62018-08-31 10:48:46 -0700181 LOCAL_PRIVATE_PLATFORM_APIS := true
182else
Hyunyoung Song0ae38882018-11-05 14:45:19 -0800183 LOCAL_STATIC_JAVA_LIBRARIES := libSharedSystemUI libLauncherProtos
Hyunyoung Song74176d62018-08-31 10:48:46 -0700184 LOCAL_SDK_VERSION := system_current
185 LOCAL_MIN_SDK_VERSION := 26
186endif
187LOCAL_MODULE := Launcher3QuickStepLib
188LOCAL_PRIVILEGED_MODULE := true
Chiluned0a1122019-01-08 14:31:56 +0800189LOCAL_STATIC_ANDROID_LIBRARIES := \
190 Launcher3CommonDepsLib \
191 SecondaryDisplayLauncherLib
Sunny Goyal9fc97972018-06-18 01:12:37 -0700192
193LOCAL_SRC_FILES := \
194 $(call all-java-files-under, src) \
195 $(call all-java-files-under, quickstep/src) \
Kevin28578712019-01-04 17:54:51 -0800196 $(call all-java-files-under, quickstep/recents_ui_overrides/src) \
Rajeev Kumar51ca6032018-10-31 12:54:15 -0700197 $(call all-java-files-under, src_flags) \
198 $(call all-java-files-under, src_shortcuts_overrides)
Sunny Goyal9fc97972018-06-18 01:12:37 -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 -0700203LOCAL_PROGUARD_ENABLED := disabled
204
Sunny Goyal9fc97972018-06-18 01:12:37 -0700205
206LOCAL_MANIFEST_FILE := quickstep/AndroidManifest.xml
207include $(BUILD_STATIC_JAVA_LIBRARY)
208
209#
Sunny Goyal9d341962017-10-30 10:03:34 -0700210# Build rule for Quickstep app.
Chris Wren2b6c21d2013-10-02 14:16:04 -0400211#
212include $(CLEAR_VARS)
Sunny Goyal9fc97972018-06-18 01:12:37 -0700213LOCAL_USE_AAPT2 := true
Sunny Goyal9d341962017-10-30 10:03:34 -0700214LOCAL_MODULE_TAGS := optional
215
Sunny Goyal9fc97972018-06-18 01:12:37 -0700216LOCAL_STATIC_ANDROID_LIBRARIES := Launcher3QuickStepLib
Sunny Goyal73133392017-11-02 11:04:49 -0700217LOCAL_PROGUARD_ENABLED := disabled
Chris Wren2b6c21d2013-10-02 14:16:04 -0400218
Hyunyoung Song74176d62018-08-31 10:48:46 -0700219ifneq (,$(wildcard frameworks/base))
220 LOCAL_PRIVATE_PLATFORM_APIS := true
221else
222 LOCAL_SDK_VERSION := system_current
223 LOCAL_MIN_SDK_VERSION := 26
224endif
Sunny Goyal9d341962017-10-30 10:03:34 -0700225LOCAL_PACKAGE_NAME := Launcher3QuickStep
226LOCAL_PRIVILEGED_MODULE := true
Hyunyoung Song61636242019-02-01 17:43:40 -0800227LOCAL_PRODUCT_MODULE := true
Sunny Goyal9d341962017-10-30 10:03:34 -0700228LOCAL_OVERRIDES_PACKAGES := Home Launcher2 Launcher3
229
Kevin28578712019-01-04 17:54:51 -0800230LOCAL_RESOURCE_DIR := \
231 $(LOCAL_PATH)/quickstep/res \
232 $(LOCAL_PATH)/quickstep/recents_ui_overrides/res
Sunny Goyal9fc97972018-06-18 01:12:37 -0700233
Sunny Goyal9d341962017-10-30 10:03:34 -0700234LOCAL_FULL_LIBS_MANIFEST_FILES := \
235 $(LOCAL_PATH)/AndroidManifest.xml \
236 $(LOCAL_PATH)/AndroidManifest-common.xml
237
238LOCAL_MANIFEST_FILE := quickstep/AndroidManifest.xml
Sunny Goyal9d341962017-10-30 10:03:34 -0700239LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.*
240
241include $(BUILD_PACKAGE)
242
Sunny Goyal9fc97972018-06-18 01:12:37 -0700243
Sunny Goyalc5519272018-05-24 12:44:26 -0700244#
245# Build rule for Launcher3 Go app with quickstep for Android Go devices.
246#
247include $(CLEAR_VARS)
Sunny Goyal9fc97972018-06-18 01:12:37 -0700248LOCAL_USE_AAPT2 := true
Sunny Goyalc5519272018-05-24 12:44:26 -0700249LOCAL_MODULE_TAGS := optional
250
Hyunyoung Song74176d62018-08-31 10:48:46 -0700251ifneq (,$(wildcard frameworks/base))
Hyunyoung Song0ae38882018-11-05 14:45:19 -0800252 LOCAL_STATIC_JAVA_LIBRARIES := SystemUISharedLib launcherprotosnano
Hyunyoung Song74176d62018-08-31 10:48:46 -0700253 LOCAL_PRIVATE_PLATFORM_APIS := true
254else
Hyunyoung Song0ae38882018-11-05 14:45:19 -0800255 LOCAL_STATIC_JAVA_LIBRARIES := libSharedSystemUI libLauncherProtos
Hyunyoung Song74176d62018-08-31 10:48:46 -0700256 LOCAL_SDK_VERSION := system_current
257 LOCAL_MIN_SDK_VERSION := 26
258endif
Sunny Goyal9fc97972018-06-18 01:12:37 -0700259LOCAL_STATIC_ANDROID_LIBRARIES := Launcher3CommonDepsLib
Sunny Goyalc5519272018-05-24 12:44:26 -0700260
261LOCAL_SRC_FILES := \
262 $(call all-java-files-under, src) \
263 $(call all-java-files-under, quickstep/src) \
Kevin28578712019-01-04 17:54:51 -0800264 $(call all-java-files-under, quickstep/recents_ui_overrides/src) \
Rajeev Kumarc00a2592018-10-30 17:16:25 -0700265 $(call all-java-files-under, go/src)
Sunny Goyalc5519272018-05-24 12:44:26 -0700266
267LOCAL_RESOURCE_DIR := \
268 $(LOCAL_PATH)/quickstep/res \
Kevin28578712019-01-04 17:54:51 -0800269 $(LOCAL_PATH)/quickstep/recents_ui_overrides/res \
Sunny Goyal9fc97972018-06-18 01:12:37 -0700270 $(LOCAL_PATH)/go/res
Sunny Goyalc5519272018-05-24 12:44:26 -0700271
Rajeev Kumardedecd82018-08-06 14:32:26 -0700272LOCAL_PROGUARD_FLAG_FILES := proguard.flags
Rajeev Kumar02c33da2018-07-31 12:44:09 -0700273LOCAL_PROGUARD_ENABLED := full
Sunny Goyalc5519272018-05-24 12:44:26 -0700274
Sunny Goyalc5519272018-05-24 12:44:26 -0700275LOCAL_PACKAGE_NAME := Launcher3QuickStepGo
276LOCAL_PRIVILEGED_MODULE := true
Hyunyoung Song61636242019-02-01 17:43:40 -0800277LOCAL_PRODUCT_MODULE := true
Tim Joines56ded9c2018-06-19 15:02:52 -0700278LOCAL_OVERRIDES_PACKAGES := Home Launcher2 Launcher3 Launcher3QuickStep
Anton Hansson3e754602019-02-06 10:26:17 +0000279LOCAL_REQUIRED_MODULES := privapp_whitelist_com.android.launcher3
Sunny Goyalc5519272018-05-24 12:44:26 -0700280
281LOCAL_FULL_LIBS_MANIFEST_FILES := \
282 $(LOCAL_PATH)/go/AndroidManifest.xml \
283 $(LOCAL_PATH)/AndroidManifest.xml \
284 $(LOCAL_PATH)/AndroidManifest-common.xml
285
286LOCAL_MANIFEST_FILE := quickstep/AndroidManifest.xml
287LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.*
Sunny Goyalc5519272018-05-24 12:44:26 -0700288include $(BUILD_PACKAGE)
Sunny Goyal9d341962017-10-30 10:03:34 -0700289
Kevin28578712019-01-04 17:54:51 -0800290#
291# Build rule for Launcher3 Go app with quickstep and Go-specific
292# version of recents for Android Go devices.
293#
294include $(CLEAR_VARS)
295LOCAL_USE_AAPT2 := true
296LOCAL_MODULE_TAGS := optional
297
298ifneq (,$(wildcard frameworks/base))
299 LOCAL_STATIC_JAVA_LIBRARIES := SystemUISharedLib launcherprotosnano
300 LOCAL_PRIVATE_PLATFORM_APIS := true
301else
302 LOCAL_STATIC_JAVA_LIBRARIES := libSharedSystemUI libLauncherProtos
303 LOCAL_SDK_VERSION := system_current
304 LOCAL_MIN_SDK_VERSION := 26
305endif
306LOCAL_STATIC_ANDROID_LIBRARIES := Launcher3CommonDepsLib
307
308LOCAL_SRC_FILES := \
309 $(call all-java-files-under, src) \
310 $(call all-java-files-under, quickstep/src) \
311 $(call all-java-files-under, go/src) \
312 $(call all-java-files-under, go/quickstep/src)
313
314LOCAL_RESOURCE_DIR := \
315 $(LOCAL_PATH)/quickstep/res \
316 $(LOCAL_PATH)/go/res \
317 $(LOCAL_PATH)/go/quickstep/res
318
319LOCAL_PROGUARD_FLAG_FILES := proguard.flags
320LOCAL_PROGUARD_ENABLED := full
321
322LOCAL_PACKAGE_NAME := Launcher3QuickStepGoIconRecents
323LOCAL_PRIVILEGED_MODULE := true
324LOCAL_OVERRIDES_PACKAGES := Home Launcher2 Launcher3 Launcher3QuickStep
Anton Hansson3e754602019-02-06 10:26:17 +0000325LOCAL_REQUIRED_MODULES := privapp_whitelist_com.android.launcher3
Kevin28578712019-01-04 17:54:51 -0800326
327LOCAL_FULL_LIBS_MANIFEST_FILES := \
328 $(LOCAL_PATH)/go/AndroidManifest.xml \
329 $(LOCAL_PATH)/AndroidManifest.xml \
330 $(LOCAL_PATH)/AndroidManifest-common.xml
331
332LOCAL_MANIFEST_FILE := quickstep/AndroidManifest.xml
333LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.*
334include $(BUILD_PACKAGE)
335
Chris Wrenba2923a2013-12-10 15:48:47 -0500336
Sunny Goyald68725c2015-03-13 10:26:27 -0700337# ==================================================
338include $(call all-makefiles-under,$(LOCAL_PATH))