blob: ab445acafb11ea815c05d124a65a3a6a0674c34b [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
31#
Sunny Goyal64a75aa2017-07-03 13:50:52 -070032# Build rule for Launcher3 app.
Chris Wren2b6c21d2013-10-02 14:16:04 -040033#
The Android Open Source Project31dd5032009-03-03 19:32:27 -080034include $(CLEAR_VARS)
35
Jean-Baptiste Queru2583ac52010-01-05 11:09:52 -080036LOCAL_MODULE_TAGS := optional
The Android Open Source Project31dd5032009-03-03 19:32:27 -080037
Hyunyoung Songd30e8452015-07-27 18:24:45 -070038LOCAL_STATIC_JAVA_LIBRARIES := \
39 android-support-v4 \
Tony Wickhamd9dc2e22016-04-01 16:05:15 -070040 android-support-v7-recyclerview \
Jon Miranda4e11c272017-04-20 12:07:38 -070041 android-support-dynamic-animation
Hyunyoung Songd30e8452015-07-27 18:24:45 -070042
Sunny Goyald83a67a2016-05-23 21:40:53 -070043LOCAL_SRC_FILES := \
44 $(call all-java-files-under, src) \
Sunny Goyal85525172017-11-06 13:00:42 -080045 $(call all-java-files-under, src_ui_overrides) \
Sunny Goyal3d706ad2017-03-06 16:56:39 -080046 $(call all-java-files-under, src_flags) \
Sunny Goyal2385ebe2017-07-19 01:24:07 -070047 $(call all-proto-files-under, protos) \
48 $(call all-proto-files-under, proto_overrides)
Hyunyoung Songd30e8452015-07-27 18:24:45 -070049
Sunny Goyal30a71612016-04-12 17:57:41 -070050LOCAL_RESOURCE_DIR := \
Hyunyoung Songd30e8452015-07-27 18:24:45 -070051 $(LOCAL_PATH)/res \
Hyunyoung Song426d0892016-11-14 10:46:08 -080052 prebuilts/sdk/current/support/v7/recyclerview/res \
Hyunyoung Songd30e8452015-07-27 18:24:45 -070053
Sunny Goyal4a6c2c52015-07-07 11:40:31 -070054LOCAL_PROGUARD_FLAG_FILES := proguard.flags
Chris Wren1ada10d2013-09-13 18:01:38 -040055
56LOCAL_PROTOC_OPTIMIZE_TYPE := nano
Sunny Goyal2385ebe2017-07-19 01:24:07 -070057LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)/protos/ --proto_path=$(LOCAL_PATH)/proto_overrides/
Sunny Goyal6c46a6d2016-11-23 02:24:32 +053058LOCAL_PROTO_JAVA_OUTPUT_PARAMS := enum_style=java
59
Hyunyoung Songd30e8452015-07-27 18:24:45 -070060LOCAL_AAPT_FLAGS := \
61 --auto-add-overlay \
Sunny Goyalbd822502016-02-18 15:09:21 -080062 --extra-packages android.support.v7.recyclerview \
Chris Wren1ada10d2013-09-13 18:01:38 -040063
Sunny Goyal4a6c2c52015-07-07 11:40:31 -070064LOCAL_SDK_VERSION := current
Sunny Goyald297be22016-05-10 15:35:02 -070065LOCAL_MIN_SDK_VERSION := 21
Daniel Sandler325dc232013-06-05 22:57:57 -040066LOCAL_PACKAGE_NAME := Launcher3
Hyunyoung Song3fa99542016-11-14 10:44:39 -080067LOCAL_PRIVILEGED_MODULE := true
bohu86179022015-05-21 08:20:38 -070068LOCAL_OVERRIDES_PACKAGES := Home Launcher2
The Android Open Source Project31dd5032009-03-03 19:32:27 -080069
Sunny Goyald83a67a2016-05-23 21:40:53 -070070LOCAL_FULL_LIBS_MANIFEST_FILES := $(LOCAL_PATH)/AndroidManifest-common.xml
71
Shankhoneer Chakrovarty687c3452016-09-14 18:30:05 -070072LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.*
73
The Android Open Source Project31dd5032009-03-03 19:32:27 -080074include $(BUILD_PACKAGE)
Shih-wei Liao163feae2010-07-20 01:22:10 -070075
Chris Wren2b6c21d2013-10-02 14:16:04 -040076#
Sunny Goyal64a75aa2017-07-03 13:50:52 -070077# Build rule for Launcher3 Go app for Android Go devices.
78#
79include $(CLEAR_VARS)
80
81LOCAL_MODULE_TAGS := optional
82
83LOCAL_STATIC_JAVA_LIBRARIES := \
84 android-support-v4 \
85 android-support-v7-recyclerview \
Sunny Goyal64a75aa2017-07-03 13:50:52 -070086 android-support-dynamic-animation
87
88LOCAL_SRC_FILES := \
89 $(call all-java-files-under, src) \
Sunny Goyal85525172017-11-06 13:00:42 -080090 $(call all-java-files-under, src_ui_overrides) \
Sunny Goyal64a75aa2017-07-03 13:50:52 -070091 $(call all-java-files-under, go/src_flags) \
92 $(call all-proto-files-under, protos) \
93 $(call all-proto-files-under, proto_overrides)
94
95LOCAL_RESOURCE_DIR := \
96 $(LOCAL_PATH)/go/res \
97 $(LOCAL_PATH)/res \
98 prebuilts/sdk/current/support/v7/recyclerview/res \
99
100LOCAL_PROGUARD_FLAG_FILES := proguard.flags
101
102LOCAL_PROTOC_OPTIMIZE_TYPE := nano
103LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)/protos/ --proto_path=$(LOCAL_PATH)/proto_overrides/
104LOCAL_PROTO_JAVA_OUTPUT_PARAMS := enum_style=java
105
106LOCAL_AAPT_FLAGS := \
107 --auto-add-overlay \
108 --extra-packages android.support.v7.recyclerview \
109
110LOCAL_SDK_VERSION := current
111LOCAL_MIN_SDK_VERSION := 21
112LOCAL_PACKAGE_NAME := Launcher3Go
113LOCAL_PRIVILEGED_MODULE := true
114LOCAL_OVERRIDES_PACKAGES := Home Launcher2 Launcher3
115
116LOCAL_FULL_LIBS_MANIFEST_FILES := \
117 $(LOCAL_PATH)/AndroidManifest.xml \
118 $(LOCAL_PATH)/AndroidManifest-common.xml
119
Rajeev Kumarff8699e2018-03-15 23:48:46 +0000120LOCAL_MANIFEST_FILE := go/AndroidManifest.xml
121
Sunny Goyal64a75aa2017-07-03 13:50:52 -0700122LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.*
123
124include $(BUILD_PACKAGE)
125
126#
Sunny Goyal9d341962017-10-30 10:03:34 -0700127# Build rule for Quickstep app.
Chris Wren2b6c21d2013-10-02 14:16:04 -0400128#
129include $(CLEAR_VARS)
130
Sunny Goyal9d341962017-10-30 10:03:34 -0700131LOCAL_MODULE_TAGS := optional
132
133LOCAL_STATIC_JAVA_LIBRARIES := \
134 android-support-v4 \
135 android-support-v7-recyclerview \
Sunny Goyal73133392017-11-02 11:04:49 -0700136 android-support-dynamic-animation \
137 libSharedSystemUI
Sunny Goyal9d341962017-10-30 10:03:34 -0700138
139LOCAL_SRC_FILES := \
140 $(call all-java-files-under, src) \
Sunny Goyal9d341962017-10-30 10:03:34 -0700141 $(call all-java-files-under, quickstep/src) \
Sunny Goyala7834002017-11-07 16:30:06 -0800142 $(call all-java-files-under, src_flags) \
Sunny Goyal9d341962017-10-30 10:03:34 -0700143 $(call all-proto-files-under, protos) \
144 $(call all-proto-files-under, proto_overrides)
145
146LOCAL_RESOURCE_DIR := \
147 $(LOCAL_PATH)/quickstep/res \
148 $(LOCAL_PATH)/res \
149 prebuilts/sdk/current/support/v7/recyclerview/res \
150
Sunny Goyal73133392017-11-02 11:04:49 -0700151LOCAL_PROGUARD_ENABLED := disabled
Chris Wren2b6c21d2013-10-02 14:16:04 -0400152
153LOCAL_PROTOC_OPTIMIZE_TYPE := nano
Sunny Goyal2385ebe2017-07-19 01:24:07 -0700154LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)/protos/ --proto_path=$(LOCAL_PATH)/proto_overrides/
Sunny Goyal6c46a6d2016-11-23 02:24:32 +0530155LOCAL_PROTO_JAVA_OUTPUT_PARAMS := enum_style=java
Chris Wren2b6c21d2013-10-02 14:16:04 -0400156
Sunny Goyal9d341962017-10-30 10:03:34 -0700157LOCAL_AAPT_FLAGS := \
158 --auto-add-overlay \
159 --extra-packages android.support.v7.recyclerview \
Chris Wren2b6c21d2013-10-02 14:16:04 -0400160
Sunny Goyal73133392017-11-02 11:04:49 -0700161LOCAL_SDK_VERSION := system_current
162LOCAL_MIN_SDK_VERSION := 26
Sunny Goyal9d341962017-10-30 10:03:34 -0700163LOCAL_PACKAGE_NAME := Launcher3QuickStep
164LOCAL_PRIVILEGED_MODULE := true
165LOCAL_OVERRIDES_PACKAGES := Home Launcher2 Launcher3
166
167LOCAL_FULL_LIBS_MANIFEST_FILES := \
168 $(LOCAL_PATH)/AndroidManifest.xml \
169 $(LOCAL_PATH)/AndroidManifest-common.xml
170
171LOCAL_MANIFEST_FILE := quickstep/AndroidManifest.xml
Sunny Goyal9d341962017-10-30 10:03:34 -0700172LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.*
173
174include $(BUILD_PACKAGE)
175
Sunny Goyalc5519272018-05-24 12:44:26 -0700176#
177# Build rule for Launcher3 Go app with quickstep for Android Go devices.
178#
179include $(CLEAR_VARS)
Sunny Goyal9d341962017-10-30 10:03:34 -0700180
Sunny Goyalc5519272018-05-24 12:44:26 -0700181LOCAL_MODULE_TAGS := optional
182
183LOCAL_STATIC_JAVA_LIBRARIES := \
184 android-support-v4 \
185 android-support-v7-recyclerview \
186 android-support-dynamic-animation \
187 libSharedSystemUI
188
189LOCAL_SRC_FILES := \
190 $(call all-java-files-under, src) \
191 $(call all-java-files-under, quickstep/src) \
192 $(call all-java-files-under, go/src_flags) \
193 $(call all-proto-files-under, protos) \
194 $(call all-proto-files-under, proto_overrides)
195
196LOCAL_RESOURCE_DIR := \
197 $(LOCAL_PATH)/quickstep/res \
198 $(LOCAL_PATH)/go/res \
199 $(LOCAL_PATH)/res \
200 prebuilts/sdk/current/support/v7/recyclerview/res \
201
202LOCAL_PROGUARD_ENABLED := disabled
203
204LOCAL_PROTOC_OPTIMIZE_TYPE := nano
205LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)/protos/ --proto_path=$(LOCAL_PATH)/proto_overrides/
206LOCAL_PROTO_JAVA_OUTPUT_PARAMS := enum_style=java
207
208LOCAL_AAPT_FLAGS := \
209 --auto-add-overlay \
210 --extra-packages android.support.v7.recyclerview \
211
212LOCAL_SDK_VERSION := system_current
213LOCAL_MIN_SDK_VERSION := 26
214LOCAL_PACKAGE_NAME := Launcher3QuickStepGo
215LOCAL_PRIVILEGED_MODULE := true
216LOCAL_OVERRIDES_PACKAGES := Home Launcher2 Launcher3
217
218LOCAL_FULL_LIBS_MANIFEST_FILES := \
219 $(LOCAL_PATH)/go/AndroidManifest.xml \
220 $(LOCAL_PATH)/AndroidManifest.xml \
221 $(LOCAL_PATH)/AndroidManifest-common.xml
222
223LOCAL_MANIFEST_FILE := quickstep/AndroidManifest.xml
224LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.*
225
226include $(BUILD_PACKAGE)
Sunny Goyal9d341962017-10-30 10:03:34 -0700227
Chris Wrenba2923a2013-12-10 15:48:47 -0500228
Sunny Goyald68725c2015-03-13 10:26:27 -0700229# ==================================================
230include $(call all-makefiles-under,$(LOCAL_PATH))