blob: 1bc8b283c743f914da8d5ed80b9320318c029b2e [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
Bob Badoura7548b52022-01-27 22:04:48 -080052LOCAL_LICENSE_PACKAGE_NAME := Android Launcher3
53LOCAL_NOTICE_FILE := build/soong/licenses/LICENSE
Sunny Goyal64a75aa2017-07-03 13:50:52 -070054include $(BUILD_PACKAGE)
55
56#
Sunny Goyal9d341962017-10-30 10:03:34 -070057# Build rule for Quickstep app.
Chris Wren2b6c21d2013-10-02 14:16:04 -040058#
59include $(CLEAR_VARS)
Sunny Goyal9fc97972018-06-18 01:12:37 -070060LOCAL_USE_AAPT2 := true
Sunny Goyal9d341962017-10-30 10:03:34 -070061LOCAL_MODULE_TAGS := optional
62
Sunny Goyal9fc97972018-06-18 01:12:37 -070063LOCAL_STATIC_ANDROID_LIBRARIES := Launcher3QuickStepLib
Sunny Goyal73133392017-11-02 11:04:49 -070064LOCAL_PROGUARD_ENABLED := disabled
Chris Wren2b6c21d2013-10-02 14:16:04 -040065
Hyunyoung Song74176d62018-08-31 10:48:46 -070066ifneq (,$(wildcard frameworks/base))
67 LOCAL_PRIVATE_PLATFORM_APIS := true
68else
69 LOCAL_SDK_VERSION := system_current
70 LOCAL_MIN_SDK_VERSION := 26
71endif
Sunny Goyal9d341962017-10-30 10:03:34 -070072LOCAL_PACKAGE_NAME := Launcher3QuickStep
73LOCAL_PRIVILEGED_MODULE := true
Jeongik Cha6af66b02019-07-09 10:08:39 +090074LOCAL_SYSTEM_EXT_MODULE := true
Sunny Goyal9d341962017-10-30 10:03:34 -070075LOCAL_OVERRIDES_PACKAGES := Home Launcher2 Launcher3
Hyunyoung Song896a7152019-03-21 14:06:02 -070076LOCAL_REQUIRED_MODULES := privapp_whitelist_com.android.launcher3
Sunny Goyal9d341962017-10-30 10:03:34 -070077
Sunny Goyal11d7d342021-04-02 10:58:57 -070078LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/quickstep/res
Sunny Goyal9fc97972018-06-18 01:12:37 -070079
Sunny Goyal9d341962017-10-30 10:03:34 -070080LOCAL_FULL_LIBS_MANIFEST_FILES := \
Sunny Goyal210e1742019-10-17 12:05:38 -070081 $(LOCAL_PATH)/quickstep/AndroidManifest-launcher.xml \
Sunny Goyal9d341962017-10-30 10:03:34 -070082 $(LOCAL_PATH)/AndroidManifest-common.xml
83
84LOCAL_MANIFEST_FILE := quickstep/AndroidManifest.xml
Sunny Goyal9d341962017-10-30 10:03:34 -070085LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.*
86
Bob Badourfc906882021-04-27 11:29:17 -070087LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0
88LOCAL_LICENSE_CONDITIONS := notice
Bob Badoura7548b52022-01-27 22:04:48 -080089LOCAL_LICENSE_PACKAGE_NAME := Android Launcher3
90LOCAL_NOTICE_FILE := build/soong/licenses/LICENSE
Sunny Goyal9d341962017-10-30 10:03:34 -070091include $(BUILD_PACKAGE)
92
Sunny Goyal9fc97972018-06-18 01:12:37 -070093
Sunny Goyalc5519272018-05-24 12:44:26 -070094#
95# Build rule for Launcher3 Go app with quickstep for Android Go devices.
96#
97include $(CLEAR_VARS)
Sunny Goyal9fc97972018-06-18 01:12:37 -070098LOCAL_USE_AAPT2 := true
Sunny Goyalc5519272018-05-24 12:44:26 -070099LOCAL_MODULE_TAGS := optional
100
thiruramc1c2bfa2020-02-04 18:56:40 -0800101LOCAL_STATIC_JAVA_LIBRARIES := \
Hyunyoung Song7f7894e2020-04-27 01:12:01 -0700102 SystemUI-statsd \
thiruramcbeb13d2021-01-27 14:45:58 -0800103 SystemUISharedLib
Hyunyoung Song74176d62018-08-31 10:48:46 -0700104ifneq (,$(wildcard frameworks/base))
Hyunyoung Song74176d62018-08-31 10:48:46 -0700105 LOCAL_PRIVATE_PLATFORM_APIS := true
106else
Hyunyoung Song74176d62018-08-31 10:48:46 -0700107 LOCAL_SDK_VERSION := system_current
108 LOCAL_MIN_SDK_VERSION := 26
109endif
Jon Spivack89c21c72021-08-13 13:18:24 -0700110LOCAL_STATIC_ANDROID_LIBRARIES := LauncherGoResLib
Sunny Goyalc5519272018-05-24 12:44:26 -0700111
112LOCAL_SRC_FILES := \
113 $(call all-java-files-under, src) \
114 $(call all-java-files-under, quickstep/src) \
Jon Spivacka89a5082020-11-24 20:24:47 -0800115 $(call all-java-files-under, go/src) \
116 $(call all-java-files-under, go/quickstep/src)
Sunny Goyalc5519272018-05-24 12:44:26 -0700117
118LOCAL_RESOURCE_DIR := \
Jon Spivack3a1cfc92021-01-11 17:20:00 -0800119 $(LOCAL_PATH)/go/quickstep/res \
Sunny Goyal11d7d342021-04-02 10:58:57 -0700120 $(LOCAL_PATH)/go/res \
121 $(LOCAL_PATH)/quickstep/res
Sunny Goyalc5519272018-05-24 12:44:26 -0700122
Rajeev Kumardedecd82018-08-06 14:32:26 -0700123LOCAL_PROGUARD_FLAG_FILES := proguard.flags
Rajeev Kumar02c33da2018-07-31 12:44:09 -0700124LOCAL_PROGUARD_ENABLED := full
Sunny Goyalc5519272018-05-24 12:44:26 -0700125
Sunny Goyalc5519272018-05-24 12:44:26 -0700126LOCAL_PACKAGE_NAME := Launcher3QuickStepGo
127LOCAL_PRIVILEGED_MODULE := true
Jeongik Cha6af66b02019-07-09 10:08:39 +0900128LOCAL_SYSTEM_EXT_MODULE := true
Peter Kalauskas0842cf52019-12-11 11:06:50 -0800129LOCAL_OVERRIDES_PACKAGES := Home Launcher2 Launcher3 Launcher3QuickStep
Anton Hansson3e754602019-02-06 10:26:17 +0000130LOCAL_REQUIRED_MODULES := privapp_whitelist_com.android.launcher3
Kevin28578712019-01-04 17:54:51 -0800131
132LOCAL_FULL_LIBS_MANIFEST_FILES := \
133 $(LOCAL_PATH)/go/AndroidManifest.xml \
Jon Spivacka89a5082020-11-24 20:24:47 -0800134 $(LOCAL_PATH)/go/AndroidManifest-launcher.xml \
Kevin28578712019-01-04 17:54:51 -0800135 $(LOCAL_PATH)/AndroidManifest-common.xml
136
137LOCAL_MANIFEST_FILE := quickstep/AndroidManifest.xml
138LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.*
Bob Badourfc906882021-04-27 11:29:17 -0700139LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0
140LOCAL_LICENSE_CONDITIONS := notice
Bob Badoura7548b52022-01-27 22:04:48 -0800141LOCAL_LICENSE_PACKAGE_NAME := Android Launcher3
142LOCAL_NOTICE_FILE := build/soong/licenses/LICENSE
Kevin28578712019-01-04 17:54:51 -0800143include $(BUILD_PACKAGE)
144
Chris Wrenba2923a2013-12-10 15:48:47 -0500145
Sunny Goyald68725c2015-03-13 10:26:27 -0700146# ==================================================
147include $(call all-makefiles-under,$(LOCAL_PATH))