blob: b8e6c858f9c61529f06a9e69c3ac6777c43fa0a0 [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
56LOCAL_PRIVILEGED_MODULE := true
57
58include $(BUILD_STATIC_JAVA_LIBRARY)
59
Sunny Goyal73133392017-11-02 11:04:49 -070060#
Sunny Goyal9fc97972018-06-18 01:12:37 -070061# Build rule for Launcher3 dependencies lib.
Chris Wren2b6c21d2013-10-02 14:16:04 -040062#
The Android Open Source Project31dd5032009-03-03 19:32:27 -080063include $(CLEAR_VARS)
Sunny Goyal9fc97972018-06-18 01:12:37 -070064LOCAL_USE_AAPT2 := true
65LOCAL_AAPT2_ONLY := true
Jean-Baptiste Queru2583ac52010-01-05 11:09:52 -080066LOCAL_MODULE_TAGS := optional
The Android Open Source Project31dd5032009-03-03 19:32:27 -080067
Sunny Goyal9fc97972018-06-18 01:12:37 -070068LOCAL_STATIC_ANDROID_LIBRARIES := \
Sunny Goyald2303072018-08-14 15:21:45 -070069 androidx.recyclerview_recyclerview \
70 androidx.dynamicanimation_dynamicanimation
Hyunyoung Songd30e8452015-07-27 18:24:45 -070071
Tony Wickham76cce292018-10-05 15:11:21 -070072LOCAL_STATIC_JAVA_LIBRARIES := libPluginCore
73
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) \
104 $(call all-java-files-under, src_ui_overrides) \
105 $(call all-java-files-under, src_flags)
106
107LOCAL_PROGUARD_FLAG_FILES := proguard.flags
Sunny Goyal4548a7d2018-10-10 10:02:41 -0700108# Proguard is disable for testing. Derivarive prjects to keep proguard enabled
109LOCAL_PROGUARD_ENABLED := disabled
Chris Wren1ada10d2013-09-13 18:01:38 -0400110
Sunny Goyal4a6c2c52015-07-07 11:40:31 -0700111LOCAL_SDK_VERSION := current
Sunny Goyald297be22016-05-10 15:35:02 -0700112LOCAL_MIN_SDK_VERSION := 21
Daniel Sandler325dc232013-06-05 22:57:57 -0400113LOCAL_PACKAGE_NAME := Launcher3
Hyunyoung Song3fa99542016-11-14 10:44:39 -0800114LOCAL_PRIVILEGED_MODULE := true
bohu86179022015-05-21 08:20:38 -0700115LOCAL_OVERRIDES_PACKAGES := Home Launcher2
The Android Open Source Project31dd5032009-03-03 19:32:27 -0800116
Sunny Goyald83a67a2016-05-23 21:40:53 -0700117LOCAL_FULL_LIBS_MANIFEST_FILES := $(LOCAL_PATH)/AndroidManifest-common.xml
118
Shankhoneer Chakrovarty687c3452016-09-14 18:30:05 -0700119LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.*
120
The Android Open Source Project31dd5032009-03-03 19:32:27 -0800121include $(BUILD_PACKAGE)
Shih-wei Liao163feae2010-07-20 01:22:10 -0700122
Chris Wren2b6c21d2013-10-02 14:16:04 -0400123#
Sunny Goyal64a75aa2017-07-03 13:50:52 -0700124# Build rule for Launcher3 Go app for Android Go devices.
125#
126include $(CLEAR_VARS)
Sunny Goyal9fc97972018-06-18 01:12:37 -0700127LOCAL_USE_AAPT2 := true
Sunny Goyal64a75aa2017-07-03 13:50:52 -0700128LOCAL_MODULE_TAGS := optional
Sunny Goyal9fc97972018-06-18 01:12:37 -0700129LOCAL_STATIC_ANDROID_LIBRARIES := Launcher3CommonDepsLib
Sunny Goyal64a75aa2017-07-03 13:50:52 -0700130
131LOCAL_SRC_FILES := \
132 $(call all-java-files-under, src) \
Sunny Goyal85525172017-11-06 13:00:42 -0800133 $(call all-java-files-under, src_ui_overrides) \
Sunny Goyal9fc97972018-06-18 01:12:37 -0700134 $(call all-java-files-under, go/src_flags)
Sunny Goyal64a75aa2017-07-03 13:50:52 -0700135
Sunny Goyal9fc97972018-06-18 01:12:37 -0700136LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/go/res
Sunny Goyal64a75aa2017-07-03 13:50:52 -0700137
138LOCAL_PROGUARD_FLAG_FILES := proguard.flags
139
Sunny Goyal64a75aa2017-07-03 13:50:52 -0700140LOCAL_SDK_VERSION := current
141LOCAL_MIN_SDK_VERSION := 21
142LOCAL_PACKAGE_NAME := Launcher3Go
143LOCAL_PRIVILEGED_MODULE := true
Tim Joines56ded9c2018-06-19 15:02:52 -0700144LOCAL_OVERRIDES_PACKAGES := Home Launcher2 Launcher3 Launcher3QuickStep
Sunny Goyal64a75aa2017-07-03 13:50:52 -0700145
146LOCAL_FULL_LIBS_MANIFEST_FILES := \
147 $(LOCAL_PATH)/AndroidManifest.xml \
148 $(LOCAL_PATH)/AndroidManifest-common.xml
149
Rajeev Kumarff8699e2018-03-15 23:48:46 +0000150LOCAL_MANIFEST_FILE := go/AndroidManifest.xml
Sunny Goyal64a75aa2017-07-03 13:50:52 -0700151LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.*
Sunny Goyal64a75aa2017-07-03 13:50:52 -0700152include $(BUILD_PACKAGE)
153
154#
Sunny Goyal9fc97972018-06-18 01:12:37 -0700155# Build rule for Quickstep library.
156#
157include $(CLEAR_VARS)
158LOCAL_USE_AAPT2 := true
159LOCAL_AAPT2_ONLY := true
160LOCAL_MODULE_TAGS := optional
161
Hyunyoung Song74176d62018-08-31 10:48:46 -0700162ifneq (,$(wildcard frameworks/base))
Hyunyoung Songf120e0a2018-08-31 13:57:04 -0700163 LOCAL_STATIC_JAVA_LIBRARIES := SystemUISharedLib
Hyunyoung Song74176d62018-08-31 10:48:46 -0700164 LOCAL_PRIVATE_PLATFORM_APIS := true
165else
166 LOCAL_STATIC_JAVA_LIBRARIES := libSharedSystemUI
167 LOCAL_SDK_VERSION := system_current
168 LOCAL_MIN_SDK_VERSION := 26
169endif
170LOCAL_MODULE := Launcher3QuickStepLib
171LOCAL_PRIVILEGED_MODULE := true
Sunny Goyal9fc97972018-06-18 01:12:37 -0700172LOCAL_STATIC_ANDROID_LIBRARIES := Launcher3CommonDepsLib
173
174LOCAL_SRC_FILES := \
175 $(call all-java-files-under, src) \
176 $(call all-java-files-under, quickstep/src) \
177 $(call all-java-files-under, src_flags)
178
179LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/quickstep/res
180LOCAL_PROGUARD_ENABLED := disabled
181
Sunny Goyal9fc97972018-06-18 01:12:37 -0700182
183LOCAL_MANIFEST_FILE := quickstep/AndroidManifest.xml
184include $(BUILD_STATIC_JAVA_LIBRARY)
185
186#
Sunny Goyal9d341962017-10-30 10:03:34 -0700187# Build rule for Quickstep app.
Chris Wren2b6c21d2013-10-02 14:16:04 -0400188#
189include $(CLEAR_VARS)
Sunny Goyal9fc97972018-06-18 01:12:37 -0700190LOCAL_USE_AAPT2 := true
Sunny Goyal9d341962017-10-30 10:03:34 -0700191LOCAL_MODULE_TAGS := optional
192
Sunny Goyal9fc97972018-06-18 01:12:37 -0700193LOCAL_STATIC_ANDROID_LIBRARIES := Launcher3QuickStepLib
Sunny Goyal73133392017-11-02 11:04:49 -0700194LOCAL_PROGUARD_ENABLED := disabled
Chris Wren2b6c21d2013-10-02 14:16:04 -0400195
Hyunyoung Song74176d62018-08-31 10:48:46 -0700196ifneq (,$(wildcard frameworks/base))
197 LOCAL_PRIVATE_PLATFORM_APIS := true
198else
199 LOCAL_SDK_VERSION := system_current
200 LOCAL_MIN_SDK_VERSION := 26
201endif
Sunny Goyal9d341962017-10-30 10:03:34 -0700202LOCAL_PACKAGE_NAME := Launcher3QuickStep
203LOCAL_PRIVILEGED_MODULE := true
204LOCAL_OVERRIDES_PACKAGES := Home Launcher2 Launcher3
205
Sunny Goyal9fc97972018-06-18 01:12:37 -0700206LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/quickstep/res
207
Sunny Goyal9d341962017-10-30 10:03:34 -0700208LOCAL_FULL_LIBS_MANIFEST_FILES := \
209 $(LOCAL_PATH)/AndroidManifest.xml \
210 $(LOCAL_PATH)/AndroidManifest-common.xml
211
212LOCAL_MANIFEST_FILE := quickstep/AndroidManifest.xml
Sunny Goyal9d341962017-10-30 10:03:34 -0700213LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.*
214
215include $(BUILD_PACKAGE)
216
Sunny Goyal9fc97972018-06-18 01:12:37 -0700217
Sunny Goyalc5519272018-05-24 12:44:26 -0700218#
219# Build rule for Launcher3 Go app with quickstep for Android Go devices.
220#
221include $(CLEAR_VARS)
Sunny Goyal9fc97972018-06-18 01:12:37 -0700222LOCAL_USE_AAPT2 := true
Sunny Goyalc5519272018-05-24 12:44:26 -0700223LOCAL_MODULE_TAGS := optional
224
Hyunyoung Song74176d62018-08-31 10:48:46 -0700225ifneq (,$(wildcard frameworks/base))
Hyunyoung Songf120e0a2018-08-31 13:57:04 -0700226 LOCAL_STATIC_JAVA_LIBRARIES := SystemUISharedLib
Hyunyoung Song74176d62018-08-31 10:48:46 -0700227 LOCAL_PRIVATE_PLATFORM_APIS := true
228else
229 LOCAL_STATIC_JAVA_LIBRARIES := libSharedSystemUI
230 LOCAL_SDK_VERSION := system_current
231 LOCAL_MIN_SDK_VERSION := 26
232endif
Sunny Goyal9fc97972018-06-18 01:12:37 -0700233LOCAL_STATIC_ANDROID_LIBRARIES := Launcher3CommonDepsLib
Sunny Goyalc5519272018-05-24 12:44:26 -0700234
235LOCAL_SRC_FILES := \
236 $(call all-java-files-under, src) \
237 $(call all-java-files-under, quickstep/src) \
Sunny Goyal9fc97972018-06-18 01:12:37 -0700238 $(call all-java-files-under, go/src_flags)
Sunny Goyalc5519272018-05-24 12:44:26 -0700239
240LOCAL_RESOURCE_DIR := \
241 $(LOCAL_PATH)/quickstep/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
Tim Joines56ded9c2018-06-19 15:02:52 -0700249LOCAL_OVERRIDES_PACKAGES := Home Launcher2 Launcher3 Launcher3QuickStep
Sunny Goyalc5519272018-05-24 12:44:26 -0700250
251LOCAL_FULL_LIBS_MANIFEST_FILES := \
252 $(LOCAL_PATH)/go/AndroidManifest.xml \
253 $(LOCAL_PATH)/AndroidManifest.xml \
254 $(LOCAL_PATH)/AndroidManifest-common.xml
255
256LOCAL_MANIFEST_FILE := quickstep/AndroidManifest.xml
257LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.*
Sunny Goyalc5519272018-05-24 12:44:26 -0700258include $(BUILD_PACKAGE)
Sunny Goyal9d341962017-10-30 10:03:34 -0700259
Chris Wrenba2923a2013-12-10 15:48:47 -0500260
Sunny Goyald68725c2015-03-13 10:26:27 -0700261# ==================================================
262include $(call all-makefiles-under,$(LOCAL_PATH))