blob: 5614e25cacda7e56c8cda83e75dcab2ff3e0efd8 [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
40#
41# Build rule for plugin lib (needed to write a plugin).
42#
43include $(CLEAR_VARS)
44LOCAL_USE_AAPT2 := true
45LOCAL_AAPT2_ONLY := true
46LOCAL_MODULE_TAGS := optional
47
48LOCAL_STATIC_JAVA_LIBRARIES := libPluginCore
49
50LOCAL_SRC_FILES := \
51 $(call all-java-files-under, src_plugins)
52
53LOCAL_SDK_VERSION := current
54LOCAL_MIN_SDK_VERSION := 28
55LOCAL_MODULE := LauncherPluginLib
Tony Wickham76cce292018-10-05 15:11:21 -070056
57include $(BUILD_STATIC_JAVA_LIBRARY)
58
Sunny Goyal73133392017-11-02 11:04:49 -070059#
Sunny Goyal9fc97972018-06-18 01:12:37 -070060# Build rule for Launcher3 dependencies lib.
Chris Wren2b6c21d2013-10-02 14:16:04 -040061#
The Android Open Source Project31dd5032009-03-03 19:32:27 -080062include $(CLEAR_VARS)
Sunny Goyal9fc97972018-06-18 01:12:37 -070063LOCAL_USE_AAPT2 := true
64LOCAL_AAPT2_ONLY := true
Jean-Baptiste Queru2583ac52010-01-05 11:09:52 -080065LOCAL_MODULE_TAGS := optional
The Android Open Source Project31dd5032009-03-03 19:32:27 -080066
Sunny Goyal9fc97972018-06-18 01:12:37 -070067LOCAL_STATIC_ANDROID_LIBRARIES := \
Sunny Goyald2303072018-08-14 15:21:45 -070068 androidx.recyclerview_recyclerview \
Sunny Goyalb2498b22018-10-16 16:36:02 -070069 androidx.dynamicanimation_dynamicanimation \
70 androidx.preference_preference
Hyunyoung Songd30e8452015-07-27 18:24:45 -070071
Tony Wickham5c5c1182018-10-12 17:42:51 -070072LOCAL_STATIC_JAVA_LIBRARIES := LauncherPluginLib
Tony Wickham76cce292018-10-05 15:11:21 -070073
Sunny Goyald83a67a2016-05-23 21:40:53 -070074LOCAL_SRC_FILES := \
Sunny Goyal2385ebe2017-07-19 01:24:07 -070075 $(call all-proto-files-under, protos) \
76 $(call all-proto-files-under, proto_overrides)
Hyunyoung Songd30e8452015-07-27 18:24:45 -070077
Sunny Goyal9fc97972018-06-18 01:12:37 -070078LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
Hyunyoung Songd30e8452015-07-27 18:24:45 -070079
Sunny Goyal9fc97972018-06-18 01:12:37 -070080LOCAL_PROGUARD_ENABLED := disabled
Chris Wren1ada10d2013-09-13 18:01:38 -040081
82LOCAL_PROTOC_OPTIMIZE_TYPE := nano
Sunny Goyal2385ebe2017-07-19 01:24:07 -070083LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)/protos/ --proto_path=$(LOCAL_PATH)/proto_overrides/
Sunny Goyal6c46a6d2016-11-23 02:24:32 +053084LOCAL_PROTO_JAVA_OUTPUT_PARAMS := enum_style=java
85
Sunny Goyal9fc97972018-06-18 01:12:37 -070086LOCAL_SDK_VERSION := current
87LOCAL_MIN_SDK_VERSION := 21
88LOCAL_MODULE := Launcher3CommonDepsLib
89LOCAL_PRIVILEGED_MODULE := true
90LOCAL_MANIFEST_FILE := AndroidManifest-common.xml
91
92include $(BUILD_STATIC_JAVA_LIBRARY)
93
94#
95# Build rule for Launcher3 app.
96#
97include $(CLEAR_VARS)
98LOCAL_USE_AAPT2 := true
99LOCAL_MODULE_TAGS := optional
100
101LOCAL_STATIC_ANDROID_LIBRARIES := Launcher3CommonDepsLib
102LOCAL_SRC_FILES := \
103 $(call all-java-files-under, src) \
Rajeev Kumar51ca6032018-10-31 12:54:15 -0700104 $(call all-java-files-under, src_shortcuts_overrides) \
Sunny Goyal9fc97972018-06-18 01:12:37 -0700105 $(call all-java-files-under, src_ui_overrides) \
106 $(call all-java-files-under, src_flags)
107
108LOCAL_PROGUARD_FLAG_FILES := proguard.flags
Sunny Goyal4548a7d2018-10-10 10:02:41 -0700109# Proguard is disable for testing. Derivarive prjects to keep proguard enabled
110LOCAL_PROGUARD_ENABLED := disabled
Chris Wren1ada10d2013-09-13 18:01:38 -0400111
Sunny Goyal4a6c2c52015-07-07 11:40:31 -0700112LOCAL_SDK_VERSION := current
Sunny Goyald297be22016-05-10 15:35:02 -0700113LOCAL_MIN_SDK_VERSION := 21
Daniel Sandler325dc232013-06-05 22:57:57 -0400114LOCAL_PACKAGE_NAME := Launcher3
Hyunyoung Song3fa99542016-11-14 10:44:39 -0800115LOCAL_PRIVILEGED_MODULE := true
bohu86179022015-05-21 08:20:38 -0700116LOCAL_OVERRIDES_PACKAGES := Home Launcher2
The Android Open Source Project31dd5032009-03-03 19:32:27 -0800117
Sunny Goyald83a67a2016-05-23 21:40:53 -0700118LOCAL_FULL_LIBS_MANIFEST_FILES := $(LOCAL_PATH)/AndroidManifest-common.xml
119
Shankhoneer Chakrovarty687c3452016-09-14 18:30:05 -0700120LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.*
121
The Android Open Source Project31dd5032009-03-03 19:32:27 -0800122include $(BUILD_PACKAGE)
Shih-wei Liao163feae2010-07-20 01:22:10 -0700123
Chris Wren2b6c21d2013-10-02 14:16:04 -0400124#
Sunny Goyal64a75aa2017-07-03 13:50:52 -0700125# Build rule for Launcher3 Go app for Android Go devices.
126#
127include $(CLEAR_VARS)
Sunny Goyal9fc97972018-06-18 01:12:37 -0700128LOCAL_USE_AAPT2 := true
Sunny Goyal64a75aa2017-07-03 13:50:52 -0700129LOCAL_MODULE_TAGS := optional
Sunny Goyal9fc97972018-06-18 01:12:37 -0700130LOCAL_STATIC_ANDROID_LIBRARIES := Launcher3CommonDepsLib
Sunny Goyal64a75aa2017-07-03 13:50:52 -0700131
132LOCAL_SRC_FILES := \
133 $(call all-java-files-under, src) \
Sunny Goyal85525172017-11-06 13:00:42 -0800134 $(call all-java-files-under, src_ui_overrides) \
Rajeev Kumarc00a2592018-10-30 17:16:25 -0700135 $(call all-java-files-under, go/src)
Sunny Goyal64a75aa2017-07-03 13:50:52 -0700136
Sunny Goyal9fc97972018-06-18 01:12:37 -0700137LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/go/res
Sunny Goyal64a75aa2017-07-03 13:50:52 -0700138
139LOCAL_PROGUARD_FLAG_FILES := proguard.flags
140
Sunny Goyal64a75aa2017-07-03 13:50:52 -0700141LOCAL_SDK_VERSION := current
142LOCAL_MIN_SDK_VERSION := 21
143LOCAL_PACKAGE_NAME := Launcher3Go
144LOCAL_PRIVILEGED_MODULE := true
Tim Joines56ded9c2018-06-19 15:02:52 -0700145LOCAL_OVERRIDES_PACKAGES := Home Launcher2 Launcher3 Launcher3QuickStep
Sunny Goyal64a75aa2017-07-03 13:50:52 -0700146
147LOCAL_FULL_LIBS_MANIFEST_FILES := \
148 $(LOCAL_PATH)/AndroidManifest.xml \
149 $(LOCAL_PATH)/AndroidManifest-common.xml
150
Rajeev Kumarff8699e2018-03-15 23:48:46 +0000151LOCAL_MANIFEST_FILE := go/AndroidManifest.xml
Sunny Goyal64a75aa2017-07-03 13:50:52 -0700152LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.*
Sunny Goyal64a75aa2017-07-03 13:50:52 -0700153include $(BUILD_PACKAGE)
154
155#
Sunny Goyal9fc97972018-06-18 01:12:37 -0700156# Build rule for Quickstep library.
157#
158include $(CLEAR_VARS)
159LOCAL_USE_AAPT2 := true
160LOCAL_AAPT2_ONLY := true
161LOCAL_MODULE_TAGS := optional
162
Hyunyoung Song74176d62018-08-31 10:48:46 -0700163ifneq (,$(wildcard frameworks/base))
Hyunyoung Songf120e0a2018-08-31 13:57:04 -0700164 LOCAL_STATIC_JAVA_LIBRARIES := SystemUISharedLib
Hyunyoung Song74176d62018-08-31 10:48:46 -0700165 LOCAL_PRIVATE_PLATFORM_APIS := true
166else
167 LOCAL_STATIC_JAVA_LIBRARIES := libSharedSystemUI
168 LOCAL_SDK_VERSION := system_current
169 LOCAL_MIN_SDK_VERSION := 26
170endif
171LOCAL_MODULE := Launcher3QuickStepLib
172LOCAL_PRIVILEGED_MODULE := true
Sunny Goyal9fc97972018-06-18 01:12:37 -0700173LOCAL_STATIC_ANDROID_LIBRARIES := Launcher3CommonDepsLib
174
175LOCAL_SRC_FILES := \
176 $(call all-java-files-under, src) \
177 $(call all-java-files-under, quickstep/src) \
Rajeev Kumar51ca6032018-10-31 12:54:15 -0700178 $(call all-java-files-under, src_flags) \
179 $(call all-java-files-under, src_shortcuts_overrides)
Sunny Goyal9fc97972018-06-18 01:12:37 -0700180
181LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/quickstep/res
182LOCAL_PROGUARD_ENABLED := disabled
183
Sunny Goyal9fc97972018-06-18 01:12:37 -0700184
185LOCAL_MANIFEST_FILE := quickstep/AndroidManifest.xml
186include $(BUILD_STATIC_JAVA_LIBRARY)
187
188#
Sunny Goyal9d341962017-10-30 10:03:34 -0700189# Build rule for Quickstep app.
Chris Wren2b6c21d2013-10-02 14:16:04 -0400190#
191include $(CLEAR_VARS)
Sunny Goyal9fc97972018-06-18 01:12:37 -0700192LOCAL_USE_AAPT2 := true
Sunny Goyal9d341962017-10-30 10:03:34 -0700193LOCAL_MODULE_TAGS := optional
194
Sunny Goyal9fc97972018-06-18 01:12:37 -0700195LOCAL_STATIC_ANDROID_LIBRARIES := Launcher3QuickStepLib
Sunny Goyal73133392017-11-02 11:04:49 -0700196LOCAL_PROGUARD_ENABLED := disabled
Chris Wren2b6c21d2013-10-02 14:16:04 -0400197
Hyunyoung Song74176d62018-08-31 10:48:46 -0700198ifneq (,$(wildcard frameworks/base))
199 LOCAL_PRIVATE_PLATFORM_APIS := true
200else
201 LOCAL_SDK_VERSION := system_current
202 LOCAL_MIN_SDK_VERSION := 26
203endif
Sunny Goyal9d341962017-10-30 10:03:34 -0700204LOCAL_PACKAGE_NAME := Launcher3QuickStep
205LOCAL_PRIVILEGED_MODULE := true
206LOCAL_OVERRIDES_PACKAGES := Home Launcher2 Launcher3
207
Sunny Goyal9fc97972018-06-18 01:12:37 -0700208LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/quickstep/res
209
Sunny Goyal9d341962017-10-30 10:03:34 -0700210LOCAL_FULL_LIBS_MANIFEST_FILES := \
211 $(LOCAL_PATH)/AndroidManifest.xml \
212 $(LOCAL_PATH)/AndroidManifest-common.xml
213
214LOCAL_MANIFEST_FILE := quickstep/AndroidManifest.xml
Sunny Goyal9d341962017-10-30 10:03:34 -0700215LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.*
216
217include $(BUILD_PACKAGE)
218
Sunny Goyal9fc97972018-06-18 01:12:37 -0700219
Sunny Goyalc5519272018-05-24 12:44:26 -0700220#
221# Build rule for Launcher3 Go app with quickstep for Android Go devices.
222#
223include $(CLEAR_VARS)
Sunny Goyal9fc97972018-06-18 01:12:37 -0700224LOCAL_USE_AAPT2 := true
Sunny Goyalc5519272018-05-24 12:44:26 -0700225LOCAL_MODULE_TAGS := optional
226
Hyunyoung Song74176d62018-08-31 10:48:46 -0700227ifneq (,$(wildcard frameworks/base))
Hyunyoung Songf120e0a2018-08-31 13:57:04 -0700228 LOCAL_STATIC_JAVA_LIBRARIES := SystemUISharedLib
Hyunyoung Song74176d62018-08-31 10:48:46 -0700229 LOCAL_PRIVATE_PLATFORM_APIS := true
230else
231 LOCAL_STATIC_JAVA_LIBRARIES := libSharedSystemUI
232 LOCAL_SDK_VERSION := system_current
233 LOCAL_MIN_SDK_VERSION := 26
234endif
Sunny Goyal9fc97972018-06-18 01:12:37 -0700235LOCAL_STATIC_ANDROID_LIBRARIES := Launcher3CommonDepsLib
Sunny Goyalc5519272018-05-24 12:44:26 -0700236
237LOCAL_SRC_FILES := \
238 $(call all-java-files-under, src) \
239 $(call all-java-files-under, quickstep/src) \
Rajeev Kumarc00a2592018-10-30 17:16:25 -0700240 $(call all-java-files-under, go/src)
Sunny Goyalc5519272018-05-24 12:44:26 -0700241
242LOCAL_RESOURCE_DIR := \
243 $(LOCAL_PATH)/quickstep/res \
Sunny Goyal9fc97972018-06-18 01:12:37 -0700244 $(LOCAL_PATH)/go/res
Sunny Goyalc5519272018-05-24 12:44:26 -0700245
Rajeev Kumardedecd82018-08-06 14:32:26 -0700246LOCAL_PROGUARD_FLAG_FILES := proguard.flags
Rajeev Kumar02c33da2018-07-31 12:44:09 -0700247LOCAL_PROGUARD_ENABLED := full
Sunny Goyalc5519272018-05-24 12:44:26 -0700248
Sunny Goyalc5519272018-05-24 12:44:26 -0700249LOCAL_PACKAGE_NAME := Launcher3QuickStepGo
250LOCAL_PRIVILEGED_MODULE := true
Tim Joines56ded9c2018-06-19 15:02:52 -0700251LOCAL_OVERRIDES_PACKAGES := Home Launcher2 Launcher3 Launcher3QuickStep
Sunny Goyalc5519272018-05-24 12:44:26 -0700252
253LOCAL_FULL_LIBS_MANIFEST_FILES := \
254 $(LOCAL_PATH)/go/AndroidManifest.xml \
255 $(LOCAL_PATH)/AndroidManifest.xml \
256 $(LOCAL_PATH)/AndroidManifest-common.xml
257
258LOCAL_MANIFEST_FILE := quickstep/AndroidManifest.xml
259LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.*
Sunny Goyalc5519272018-05-24 12:44:26 -0700260include $(BUILD_PACKAGE)
Sunny Goyal9d341962017-10-30 10:03:34 -0700261
Chris Wrenba2923a2013-12-10 15:48:47 -0500262
Sunny Goyald68725c2015-03-13 10:26:27 -0700263# ==================================================
264include $(call all-makefiles-under,$(LOCAL_PATH))