blob: 54a80b7454afd32d757912111f2d16745e00dde3 [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.*
Sunny Goyal64a75aa2017-07-03 13:50:52 -070050include $(BUILD_PACKAGE)
51
52#
Sunny Goyal9fc97972018-06-18 01:12:37 -070053# Build rule for Quickstep library.
54#
55include $(CLEAR_VARS)
56LOCAL_USE_AAPT2 := true
57LOCAL_AAPT2_ONLY := true
58LOCAL_MODULE_TAGS := optional
59
thiruramc1c2bfa2020-02-04 18:56:40 -080060LOCAL_STATIC_JAVA_LIBRARIES := \
Hyunyoung Song7f7894e2020-04-27 01:12:01 -070061 SystemUI-statsd \
thiruramcbeb13d2021-01-27 14:45:58 -080062 SystemUISharedLib
Hyunyoung Song74176d62018-08-31 10:48:46 -070063ifneq (,$(wildcard frameworks/base))
Hyunyoung Song74176d62018-08-31 10:48:46 -070064 LOCAL_PRIVATE_PLATFORM_APIS := true
65else
Hyunyoung Song74176d62018-08-31 10:48:46 -070066 LOCAL_SDK_VERSION := system_current
67 LOCAL_MIN_SDK_VERSION := 26
68endif
69LOCAL_MODULE := Launcher3QuickStepLib
Bob Badour4bdf3802021-02-12 17:08:17 -080070LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0
71LOCAL_LICENSE_CONDITIONS := notice
72LOCAL_NOTICE_FILE := $(LOCAL_PATH)/NOTICE
Hyunyoung Song74176d62018-08-31 10:48:46 -070073LOCAL_PRIVILEGED_MODULE := true
Sunny Goyal9c2b9602020-01-07 13:07:55 -080074LOCAL_STATIC_ANDROID_LIBRARIES := Launcher3CommonDepsLib
Sunny Goyal9fc97972018-06-18 01:12:37 -070075
76LOCAL_SRC_FILES := \
77 $(call all-java-files-under, src) \
78 $(call all-java-files-under, quickstep/src) \
Rajeev Kumar51ca6032018-10-31 12:54:15 -070079 $(call all-java-files-under, src_shortcuts_overrides)
Sunny Goyal9fc97972018-06-18 01:12:37 -070080
Sunny Goyal11d7d342021-04-02 10:58:57 -070081LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/quickstep/res
Sunny Goyal9fc97972018-06-18 01:12:37 -070082LOCAL_PROGUARD_ENABLED := disabled
83
Sunny Goyal9fc97972018-06-18 01:12:37 -070084
85LOCAL_MANIFEST_FILE := quickstep/AndroidManifest.xml
86include $(BUILD_STATIC_JAVA_LIBRARY)
87
88#
Sunny Goyal9d341962017-10-30 10:03:34 -070089# Build rule for Quickstep app.
Chris Wren2b6c21d2013-10-02 14:16:04 -040090#
91include $(CLEAR_VARS)
Sunny Goyal9fc97972018-06-18 01:12:37 -070092LOCAL_USE_AAPT2 := true
Sunny Goyal9d341962017-10-30 10:03:34 -070093LOCAL_MODULE_TAGS := optional
94
Sunny Goyal9fc97972018-06-18 01:12:37 -070095LOCAL_STATIC_ANDROID_LIBRARIES := Launcher3QuickStepLib
Sunny Goyal73133392017-11-02 11:04:49 -070096LOCAL_PROGUARD_ENABLED := disabled
Chris Wren2b6c21d2013-10-02 14:16:04 -040097
Hyunyoung Song74176d62018-08-31 10:48:46 -070098ifneq (,$(wildcard frameworks/base))
99 LOCAL_PRIVATE_PLATFORM_APIS := true
100else
101 LOCAL_SDK_VERSION := system_current
102 LOCAL_MIN_SDK_VERSION := 26
103endif
Sunny Goyal9d341962017-10-30 10:03:34 -0700104LOCAL_PACKAGE_NAME := Launcher3QuickStep
105LOCAL_PRIVILEGED_MODULE := true
Jeongik Cha6af66b02019-07-09 10:08:39 +0900106LOCAL_SYSTEM_EXT_MODULE := true
Sunny Goyal9d341962017-10-30 10:03:34 -0700107LOCAL_OVERRIDES_PACKAGES := Home Launcher2 Launcher3
Hyunyoung Song896a7152019-03-21 14:06:02 -0700108LOCAL_REQUIRED_MODULES := privapp_whitelist_com.android.launcher3
Sunny Goyal9d341962017-10-30 10:03:34 -0700109
Sunny Goyal11d7d342021-04-02 10:58:57 -0700110LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/quickstep/res
Sunny Goyal9fc97972018-06-18 01:12:37 -0700111
Sunny Goyal9d341962017-10-30 10:03:34 -0700112LOCAL_FULL_LIBS_MANIFEST_FILES := \
Sunny Goyal210e1742019-10-17 12:05:38 -0700113 $(LOCAL_PATH)/quickstep/AndroidManifest-launcher.xml \
Sunny Goyal9d341962017-10-30 10:03:34 -0700114 $(LOCAL_PATH)/AndroidManifest-common.xml
115
116LOCAL_MANIFEST_FILE := quickstep/AndroidManifest.xml
Sunny Goyal9d341962017-10-30 10:03:34 -0700117LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.*
118
119include $(BUILD_PACKAGE)
120
Sunny Goyal9fc97972018-06-18 01:12:37 -0700121
Sunny Goyalc5519272018-05-24 12:44:26 -0700122#
123# Build rule for Launcher3 Go app with quickstep for Android Go devices.
124#
125include $(CLEAR_VARS)
Sunny Goyal9fc97972018-06-18 01:12:37 -0700126LOCAL_USE_AAPT2 := true
Sunny Goyalc5519272018-05-24 12:44:26 -0700127LOCAL_MODULE_TAGS := optional
128
thiruramc1c2bfa2020-02-04 18:56:40 -0800129LOCAL_STATIC_JAVA_LIBRARIES := \
Hyunyoung Song7f7894e2020-04-27 01:12:01 -0700130 SystemUI-statsd \
thiruramcbeb13d2021-01-27 14:45:58 -0800131 SystemUISharedLib
Hyunyoung Song74176d62018-08-31 10:48:46 -0700132ifneq (,$(wildcard frameworks/base))
Hyunyoung Song74176d62018-08-31 10:48:46 -0700133 LOCAL_PRIVATE_PLATFORM_APIS := true
134else
Hyunyoung Song74176d62018-08-31 10:48:46 -0700135 LOCAL_SDK_VERSION := system_current
136 LOCAL_MIN_SDK_VERSION := 26
137endif
Sunny Goyal9fc97972018-06-18 01:12:37 -0700138LOCAL_STATIC_ANDROID_LIBRARIES := Launcher3CommonDepsLib
Sunny Goyalc5519272018-05-24 12:44:26 -0700139
140LOCAL_SRC_FILES := \
141 $(call all-java-files-under, src) \
142 $(call all-java-files-under, quickstep/src) \
Jon Spivacka89a5082020-11-24 20:24:47 -0800143 $(call all-java-files-under, go/src) \
144 $(call all-java-files-under, go/quickstep/src)
Sunny Goyalc5519272018-05-24 12:44:26 -0700145
146LOCAL_RESOURCE_DIR := \
Jon Spivack3a1cfc92021-01-11 17:20:00 -0800147 $(LOCAL_PATH)/go/quickstep/res \
Sunny Goyal11d7d342021-04-02 10:58:57 -0700148 $(LOCAL_PATH)/go/res \
149 $(LOCAL_PATH)/quickstep/res
Sunny Goyalc5519272018-05-24 12:44:26 -0700150
Rajeev Kumardedecd82018-08-06 14:32:26 -0700151LOCAL_PROGUARD_FLAG_FILES := proguard.flags
Rajeev Kumar02c33da2018-07-31 12:44:09 -0700152LOCAL_PROGUARD_ENABLED := full
Sunny Goyalc5519272018-05-24 12:44:26 -0700153
Sunny Goyalc5519272018-05-24 12:44:26 -0700154LOCAL_PACKAGE_NAME := Launcher3QuickStepGo
155LOCAL_PRIVILEGED_MODULE := true
Jeongik Cha6af66b02019-07-09 10:08:39 +0900156LOCAL_SYSTEM_EXT_MODULE := true
Peter Kalauskas0842cf52019-12-11 11:06:50 -0800157LOCAL_OVERRIDES_PACKAGES := Home Launcher2 Launcher3 Launcher3QuickStep
Anton Hansson3e754602019-02-06 10:26:17 +0000158LOCAL_REQUIRED_MODULES := privapp_whitelist_com.android.launcher3
Kevin28578712019-01-04 17:54:51 -0800159
160LOCAL_FULL_LIBS_MANIFEST_FILES := \
161 $(LOCAL_PATH)/go/AndroidManifest.xml \
Jon Spivacka89a5082020-11-24 20:24:47 -0800162 $(LOCAL_PATH)/go/AndroidManifest-launcher.xml \
Kevin28578712019-01-04 17:54:51 -0800163 $(LOCAL_PATH)/AndroidManifest-common.xml
164
165LOCAL_MANIFEST_FILE := quickstep/AndroidManifest.xml
166LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.*
167include $(BUILD_PACKAGE)
168
Chris Wrenba2923a2013-12-10 15:48:47 -0500169
Sunny Goyald68725c2015-03-13 10:26:27 -0700170# ==================================================
171include $(call all-makefiles-under,$(LOCAL_PATH))