blob: c222f24afa0226559d7c5f81c14a3083ded347ad [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 Goyal64a75aa2017-07-03 13:50:52 -070020# Build rule for Launcher3 Go app for Android Go devices.
21#
22include $(CLEAR_VARS)
Sunny Goyal9fc97972018-06-18 01:12:37 -070023LOCAL_USE_AAPT2 := true
Sunny Goyal64a75aa2017-07-03 13:50:52 -070024LOCAL_MODULE_TAGS := optional
Sunny Goyal9fc97972018-06-18 01:12:37 -070025LOCAL_STATIC_ANDROID_LIBRARIES := Launcher3CommonDepsLib
Sunny Goyal64a75aa2017-07-03 13:50:52 -070026
27LOCAL_SRC_FILES := \
28 $(call all-java-files-under, src) \
Sunny Goyal85525172017-11-06 13:00:42 -080029 $(call all-java-files-under, src_ui_overrides) \
Rajeev Kumarc00a2592018-10-30 17:16:25 -070030 $(call all-java-files-under, go/src)
Sunny Goyal64a75aa2017-07-03 13:50:52 -070031
Sunny Goyal9fc97972018-06-18 01:12:37 -070032LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/go/res
Sunny Goyal64a75aa2017-07-03 13:50:52 -070033
34LOCAL_PROGUARD_FLAG_FILES := proguard.flags
35
Sunny Goyal64a75aa2017-07-03 13:50:52 -070036LOCAL_SDK_VERSION := current
Sunny Goyaleaf7a952020-07-29 16:54:20 -070037LOCAL_MIN_SDK_VERSION := 26
Sunny Goyal64a75aa2017-07-03 13:50:52 -070038LOCAL_PACKAGE_NAME := Launcher3Go
39LOCAL_PRIVILEGED_MODULE := true
Jeongik Cha6af66b02019-07-09 10:08:39 +090040LOCAL_SYSTEM_EXT_MODULE := true
Tim Joines56ded9c2018-06-19 15:02:52 -070041LOCAL_OVERRIDES_PACKAGES := Home Launcher2 Launcher3 Launcher3QuickStep
Anton Hansson3e754602019-02-06 10:26:17 +000042LOCAL_REQUIRED_MODULES := privapp_whitelist_com.android.launcher3
Sunny Goyal64a75aa2017-07-03 13:50:52 -070043
44LOCAL_FULL_LIBS_MANIFEST_FILES := \
45 $(LOCAL_PATH)/AndroidManifest.xml \
46 $(LOCAL_PATH)/AndroidManifest-common.xml
47
Rajeev Kumarff8699e2018-03-15 23:48:46 +000048LOCAL_MANIFEST_FILE := go/AndroidManifest.xml
Sunny Goyal64a75aa2017-07-03 13:50:52 -070049LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.*
Bob Badourfc906882021-04-27 11:29:17 -070050LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0
51LOCAL_LICENSE_CONDITIONS := notice
52LOCAL_NOTICE_FILE := $(LOCAL_PATH)/NOTICE
Sunny Goyal64a75aa2017-07-03 13:50:52 -070053include $(BUILD_PACKAGE)
54
55#
Sunny Goyal9fc97972018-06-18 01:12:37 -070056# Build rule for Quickstep library.
57#
58include $(CLEAR_VARS)
59LOCAL_USE_AAPT2 := true
60LOCAL_AAPT2_ONLY := true
61LOCAL_MODULE_TAGS := optional
62
thiruramc1c2bfa2020-02-04 18:56:40 -080063LOCAL_STATIC_JAVA_LIBRARIES := \
Hyunyoung Song7f7894e2020-04-27 01:12:01 -070064 SystemUI-statsd \
thiruramcbeb13d2021-01-27 14:45:58 -080065 SystemUISharedLib
Hyunyoung Song74176d62018-08-31 10:48:46 -070066ifneq (,$(wildcard frameworks/base))
Hyunyoung Song74176d62018-08-31 10:48:46 -070067 LOCAL_PRIVATE_PLATFORM_APIS := true
68else
Hyunyoung Song74176d62018-08-31 10:48:46 -070069 LOCAL_SDK_VERSION := system_current
70 LOCAL_MIN_SDK_VERSION := 26
71endif
72LOCAL_MODULE := Launcher3QuickStepLib
Bob Badour4bdf3802021-02-12 17:08:17 -080073LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0
74LOCAL_LICENSE_CONDITIONS := notice
75LOCAL_NOTICE_FILE := $(LOCAL_PATH)/NOTICE
Hyunyoung Song74176d62018-08-31 10:48:46 -070076LOCAL_PRIVILEGED_MODULE := true
Sunny Goyal9c2b9602020-01-07 13:07:55 -080077LOCAL_STATIC_ANDROID_LIBRARIES := Launcher3CommonDepsLib
Sunny Goyal9fc97972018-06-18 01:12:37 -070078
79LOCAL_SRC_FILES := \
80 $(call all-java-files-under, src) \
81 $(call all-java-files-under, quickstep/src) \
Rajeev Kumar51ca6032018-10-31 12:54:15 -070082 $(call all-java-files-under, src_shortcuts_overrides)
Sunny Goyal9fc97972018-06-18 01:12:37 -070083
Sunny Goyal11d7d342021-04-02 10:58:57 -070084LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/quickstep/res
Sunny Goyal9fc97972018-06-18 01:12:37 -070085LOCAL_PROGUARD_ENABLED := disabled
86
Sunny Goyal9fc97972018-06-18 01:12:37 -070087
88LOCAL_MANIFEST_FILE := quickstep/AndroidManifest.xml
89include $(BUILD_STATIC_JAVA_LIBRARY)
90
91#
Sunny Goyal9d341962017-10-30 10:03:34 -070092# Build rule for Quickstep app.
Chris Wren2b6c21d2013-10-02 14:16:04 -040093#
94include $(CLEAR_VARS)
Sunny Goyal9fc97972018-06-18 01:12:37 -070095LOCAL_USE_AAPT2 := true
Sunny Goyal9d341962017-10-30 10:03:34 -070096LOCAL_MODULE_TAGS := optional
97
Sunny Goyal9fc97972018-06-18 01:12:37 -070098LOCAL_STATIC_ANDROID_LIBRARIES := Launcher3QuickStepLib
Sunny Goyal73133392017-11-02 11:04:49 -070099LOCAL_PROGUARD_ENABLED := disabled
Chris Wren2b6c21d2013-10-02 14:16:04 -0400100
Hyunyoung Song74176d62018-08-31 10:48:46 -0700101ifneq (,$(wildcard frameworks/base))
102 LOCAL_PRIVATE_PLATFORM_APIS := true
103else
104 LOCAL_SDK_VERSION := system_current
105 LOCAL_MIN_SDK_VERSION := 26
106endif
Sunny Goyal9d341962017-10-30 10:03:34 -0700107LOCAL_PACKAGE_NAME := Launcher3QuickStep
108LOCAL_PRIVILEGED_MODULE := true
Jeongik Cha6af66b02019-07-09 10:08:39 +0900109LOCAL_SYSTEM_EXT_MODULE := true
Sunny Goyal9d341962017-10-30 10:03:34 -0700110LOCAL_OVERRIDES_PACKAGES := Home Launcher2 Launcher3
Hyunyoung Song896a7152019-03-21 14:06:02 -0700111LOCAL_REQUIRED_MODULES := privapp_whitelist_com.android.launcher3
Sunny Goyal9d341962017-10-30 10:03:34 -0700112
Sunny Goyal11d7d342021-04-02 10:58:57 -0700113LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/quickstep/res
Sunny Goyal9fc97972018-06-18 01:12:37 -0700114
Sunny Goyal9d341962017-10-30 10:03:34 -0700115LOCAL_FULL_LIBS_MANIFEST_FILES := \
Sunny Goyal210e1742019-10-17 12:05:38 -0700116 $(LOCAL_PATH)/quickstep/AndroidManifest-launcher.xml \
Sunny Goyal9d341962017-10-30 10:03:34 -0700117 $(LOCAL_PATH)/AndroidManifest-common.xml
118
119LOCAL_MANIFEST_FILE := quickstep/AndroidManifest.xml
Sunny Goyal9d341962017-10-30 10:03:34 -0700120LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.*
121
Bob Badourfc906882021-04-27 11:29:17 -0700122LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0
123LOCAL_LICENSE_CONDITIONS := notice
124LOCAL_NOTICE_FILE := $(LOCAL_PATH)/NOTICE
Sunny Goyal9d341962017-10-30 10:03:34 -0700125include $(BUILD_PACKAGE)
126
Sunny Goyal9fc97972018-06-18 01:12:37 -0700127
Sunny Goyalc5519272018-05-24 12:44:26 -0700128#
129# Build rule for Launcher3 Go app with quickstep for Android Go devices.
130#
131include $(CLEAR_VARS)
Sunny Goyal9fc97972018-06-18 01:12:37 -0700132LOCAL_USE_AAPT2 := true
Sunny Goyalc5519272018-05-24 12:44:26 -0700133LOCAL_MODULE_TAGS := optional
134
thiruramc1c2bfa2020-02-04 18:56:40 -0800135LOCAL_STATIC_JAVA_LIBRARIES := \
Hyunyoung Song7f7894e2020-04-27 01:12:01 -0700136 SystemUI-statsd \
thiruramcbeb13d2021-01-27 14:45:58 -0800137 SystemUISharedLib
Hyunyoung Song74176d62018-08-31 10:48:46 -0700138ifneq (,$(wildcard frameworks/base))
Hyunyoung Song74176d62018-08-31 10:48:46 -0700139 LOCAL_PRIVATE_PLATFORM_APIS := true
140else
Hyunyoung Song74176d62018-08-31 10:48:46 -0700141 LOCAL_SDK_VERSION := system_current
142 LOCAL_MIN_SDK_VERSION := 26
143endif
Sunny Goyal9fc97972018-06-18 01:12:37 -0700144LOCAL_STATIC_ANDROID_LIBRARIES := Launcher3CommonDepsLib
Sunny Goyalc5519272018-05-24 12:44:26 -0700145
146LOCAL_SRC_FILES := \
147 $(call all-java-files-under, src) \
148 $(call all-java-files-under, quickstep/src) \
Jon Spivacka89a5082020-11-24 20:24:47 -0800149 $(call all-java-files-under, go/src) \
150 $(call all-java-files-under, go/quickstep/src)
Sunny Goyalc5519272018-05-24 12:44:26 -0700151
152LOCAL_RESOURCE_DIR := \
Jon Spivack3a1cfc92021-01-11 17:20:00 -0800153 $(LOCAL_PATH)/go/quickstep/res \
Sunny Goyal11d7d342021-04-02 10:58:57 -0700154 $(LOCAL_PATH)/go/res \
155 $(LOCAL_PATH)/quickstep/res
Sunny Goyalc5519272018-05-24 12:44:26 -0700156
Rajeev Kumardedecd82018-08-06 14:32:26 -0700157LOCAL_PROGUARD_FLAG_FILES := proguard.flags
Rajeev Kumar02c33da2018-07-31 12:44:09 -0700158LOCAL_PROGUARD_ENABLED := full
Sunny Goyalc5519272018-05-24 12:44:26 -0700159
Sunny Goyalc5519272018-05-24 12:44:26 -0700160LOCAL_PACKAGE_NAME := Launcher3QuickStepGo
161LOCAL_PRIVILEGED_MODULE := true
Jeongik Cha6af66b02019-07-09 10:08:39 +0900162LOCAL_SYSTEM_EXT_MODULE := true
Peter Kalauskas0842cf52019-12-11 11:06:50 -0800163LOCAL_OVERRIDES_PACKAGES := Home Launcher2 Launcher3 Launcher3QuickStep
Anton Hansson3e754602019-02-06 10:26:17 +0000164LOCAL_REQUIRED_MODULES := privapp_whitelist_com.android.launcher3
Kevin28578712019-01-04 17:54:51 -0800165
166LOCAL_FULL_LIBS_MANIFEST_FILES := \
167 $(LOCAL_PATH)/go/AndroidManifest.xml \
Jon Spivacka89a5082020-11-24 20:24:47 -0800168 $(LOCAL_PATH)/go/AndroidManifest-launcher.xml \
Kevin28578712019-01-04 17:54:51 -0800169 $(LOCAL_PATH)/AndroidManifest-common.xml
170
171LOCAL_MANIFEST_FILE := quickstep/AndroidManifest.xml
172LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.*
Bob Badourfc906882021-04-27 11:29:17 -0700173LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0
174LOCAL_LICENSE_CONDITIONS := notice
175LOCAL_NOTICE_FILE := $(LOCAL_PATH)/NOTICE
Kevin28578712019-01-04 17:54:51 -0800176include $(BUILD_PACKAGE)
177
Chris Wrenba2923a2013-12-10 15:48:47 -0500178
Sunny Goyald68725c2015-03-13 10:26:27 -0700179# ==================================================
180include $(call all-makefiles-under,$(LOCAL_PATH))