blob: 239eaf66348724d5b575f74c42bb374c172cb08f [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 := \
Aurimas Liutikas27fa8082018-01-05 15:59:20 -080039 android-support-annotations
40
41LOCAL_STATIC_ANDROID_LIBRARIES := \
42 android-support-compat \
43 android-support-media-compat \
44 android-support-core-utils \
45 android-support-core-ui \
46 android-support-fragment \
Tony Wickhamd9dc2e22016-04-01 16:05:15 -070047 android-support-v7-recyclerview \
Jon Miranda4e11c272017-04-20 12:07:38 -070048 android-support-dynamic-animation
Hyunyoung Songd30e8452015-07-27 18:24:45 -070049
Sunny Goyald83a67a2016-05-23 21:40:53 -070050LOCAL_SRC_FILES := \
51 $(call all-java-files-under, src) \
Sunny Goyal85525172017-11-06 13:00:42 -080052 $(call all-java-files-under, src_ui_overrides) \
Sunny Goyal3d706ad2017-03-06 16:56:39 -080053 $(call all-java-files-under, src_flags) \
Sunny Goyal2385ebe2017-07-19 01:24:07 -070054 $(call all-proto-files-under, protos) \
55 $(call all-proto-files-under, proto_overrides)
Hyunyoung Songd30e8452015-07-27 18:24:45 -070056
Aurimas Liutikas27fa8082018-01-05 15:59:20 -080057
58LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
Hyunyoung Songd30e8452015-07-27 18:24:45 -070059
Sunny Goyal4a6c2c52015-07-07 11:40:31 -070060LOCAL_PROGUARD_FLAG_FILES := proguard.flags
Chris Wren1ada10d2013-09-13 18:01:38 -040061
62LOCAL_PROTOC_OPTIMIZE_TYPE := nano
Sunny Goyal2385ebe2017-07-19 01:24:07 -070063LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)/protos/ --proto_path=$(LOCAL_PATH)/proto_overrides/
Sunny Goyal6c46a6d2016-11-23 02:24:32 +053064LOCAL_PROTO_JAVA_OUTPUT_PARAMS := enum_style=java
65
Aurimas Liutikas27fa8082018-01-05 15:59:20 -080066LOCAL_USE_AAPT2 := true
Chris Wren1ada10d2013-09-13 18:01:38 -040067
Sunny Goyal4a6c2c52015-07-07 11:40:31 -070068LOCAL_SDK_VERSION := current
Sunny Goyald297be22016-05-10 15:35:02 -070069LOCAL_MIN_SDK_VERSION := 21
Daniel Sandler325dc232013-06-05 22:57:57 -040070LOCAL_PACKAGE_NAME := Launcher3
Hyunyoung Song3fa99542016-11-14 10:44:39 -080071LOCAL_PRIVILEGED_MODULE := true
bohu86179022015-05-21 08:20:38 -070072LOCAL_OVERRIDES_PACKAGES := Home Launcher2
The Android Open Source Project31dd5032009-03-03 19:32:27 -080073
Sunny Goyald83a67a2016-05-23 21:40:53 -070074LOCAL_FULL_LIBS_MANIFEST_FILES := $(LOCAL_PATH)/AndroidManifest-common.xml
75
Shankhoneer Chakrovarty687c3452016-09-14 18:30:05 -070076LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.*
77
The Android Open Source Project31dd5032009-03-03 19:32:27 -080078include $(BUILD_PACKAGE)
Shih-wei Liao163feae2010-07-20 01:22:10 -070079
Chris Wren2b6c21d2013-10-02 14:16:04 -040080#
Sunny Goyal64a75aa2017-07-03 13:50:52 -070081# Build rule for Launcher3 Go app for Android Go devices.
82#
83include $(CLEAR_VARS)
84
85LOCAL_MODULE_TAGS := optional
86
87LOCAL_STATIC_JAVA_LIBRARIES := \
Aurimas Liutikas27fa8082018-01-05 15:59:20 -080088 android-support-annotations
89
90LOCAL_STATIC_ANDROID_LIBRARIES := \
91 android-support-compat \
92 android-support-media-compat \
93 android-support-core-utils \
94 android-support-core-ui \
95 android-support-fragment \
Sunny Goyal64a75aa2017-07-03 13:50:52 -070096 android-support-v7-recyclerview \
Sunny Goyal64a75aa2017-07-03 13:50:52 -070097 android-support-dynamic-animation
98
99LOCAL_SRC_FILES := \
100 $(call all-java-files-under, src) \
Sunny Goyal85525172017-11-06 13:00:42 -0800101 $(call all-java-files-under, src_ui_overrides) \
Sunny Goyal64a75aa2017-07-03 13:50:52 -0700102 $(call all-java-files-under, go/src_flags) \
103 $(call all-proto-files-under, protos) \
104 $(call all-proto-files-under, proto_overrides)
105
106LOCAL_RESOURCE_DIR := \
107 $(LOCAL_PATH)/go/res \
108 $(LOCAL_PATH)/res \
Sunny Goyal64a75aa2017-07-03 13:50:52 -0700109
110LOCAL_PROGUARD_FLAG_FILES := proguard.flags
111
112LOCAL_PROTOC_OPTIMIZE_TYPE := nano
113LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)/protos/ --proto_path=$(LOCAL_PATH)/proto_overrides/
114LOCAL_PROTO_JAVA_OUTPUT_PARAMS := enum_style=java
115
Aurimas Liutikas27fa8082018-01-05 15:59:20 -0800116LOCAL_USE_AAPT2 := true
Sunny Goyal64a75aa2017-07-03 13:50:52 -0700117
118LOCAL_SDK_VERSION := current
119LOCAL_MIN_SDK_VERSION := 21
120LOCAL_PACKAGE_NAME := Launcher3Go
121LOCAL_PRIVILEGED_MODULE := true
122LOCAL_OVERRIDES_PACKAGES := Home Launcher2 Launcher3
123
124LOCAL_FULL_LIBS_MANIFEST_FILES := \
125 $(LOCAL_PATH)/AndroidManifest.xml \
126 $(LOCAL_PATH)/AndroidManifest-common.xml
127
Rajeev Kumarff8699e2018-03-15 23:48:46 +0000128LOCAL_MANIFEST_FILE := go/AndroidManifest.xml
129
Sunny Goyal64a75aa2017-07-03 13:50:52 -0700130LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.*
131
132include $(BUILD_PACKAGE)
133
134#
Sunny Goyal9d341962017-10-30 10:03:34 -0700135# Build rule for Quickstep app.
Chris Wren2b6c21d2013-10-02 14:16:04 -0400136#
137include $(CLEAR_VARS)
138
Sunny Goyal9d341962017-10-30 10:03:34 -0700139LOCAL_MODULE_TAGS := optional
140
141LOCAL_STATIC_JAVA_LIBRARIES := \
Aurimas Liutikas27fa8082018-01-05 15:59:20 -0800142 android-support-annotations \
Sunny Goyal73133392017-11-02 11:04:49 -0700143 libSharedSystemUI
Sunny Goyal9d341962017-10-30 10:03:34 -0700144
Aurimas Liutikas27fa8082018-01-05 15:59:20 -0800145LOCAL_STATIC_ANDROID_LIBRARIES := \
146 android-support-compat \
147 android-support-media-compat \
148 android-support-core-utils \
149 android-support-core-ui \
150 android-support-fragment \
151 android-support-v7-recyclerview \
152 android-support-dynamic-animation
153
Sunny Goyal9d341962017-10-30 10:03:34 -0700154LOCAL_SRC_FILES := \
155 $(call all-java-files-under, src) \
Sunny Goyal9d341962017-10-30 10:03:34 -0700156 $(call all-java-files-under, quickstep/src) \
Sunny Goyala7834002017-11-07 16:30:06 -0800157 $(call all-java-files-under, src_flags) \
Sunny Goyal9d341962017-10-30 10:03:34 -0700158 $(call all-proto-files-under, protos) \
159 $(call all-proto-files-under, proto_overrides)
160
161LOCAL_RESOURCE_DIR := \
162 $(LOCAL_PATH)/quickstep/res \
163 $(LOCAL_PATH)/res \
Sunny Goyal9d341962017-10-30 10:03:34 -0700164
Sunny Goyal73133392017-11-02 11:04:49 -0700165LOCAL_PROGUARD_ENABLED := disabled
Chris Wren2b6c21d2013-10-02 14:16:04 -0400166
167LOCAL_PROTOC_OPTIMIZE_TYPE := nano
Sunny Goyal2385ebe2017-07-19 01:24:07 -0700168LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)/protos/ --proto_path=$(LOCAL_PATH)/proto_overrides/
Sunny Goyal6c46a6d2016-11-23 02:24:32 +0530169LOCAL_PROTO_JAVA_OUTPUT_PARAMS := enum_style=java
Chris Wren2b6c21d2013-10-02 14:16:04 -0400170
Aurimas Liutikas27fa8082018-01-05 15:59:20 -0800171LOCAL_USE_AAPT2 := true
Chris Wren2b6c21d2013-10-02 14:16:04 -0400172
Sunny Goyal73133392017-11-02 11:04:49 -0700173LOCAL_SDK_VERSION := system_current
174LOCAL_MIN_SDK_VERSION := 26
Sunny Goyal9d341962017-10-30 10:03:34 -0700175LOCAL_PACKAGE_NAME := Launcher3QuickStep
176LOCAL_PRIVILEGED_MODULE := true
177LOCAL_OVERRIDES_PACKAGES := Home Launcher2 Launcher3
178
179LOCAL_FULL_LIBS_MANIFEST_FILES := \
180 $(LOCAL_PATH)/AndroidManifest.xml \
181 $(LOCAL_PATH)/AndroidManifest-common.xml
182
183LOCAL_MANIFEST_FILE := quickstep/AndroidManifest.xml
Sunny Goyal9d341962017-10-30 10:03:34 -0700184LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.*
185
186include $(BUILD_PACKAGE)
187
188
189
Chris Wrenba2923a2013-12-10 15:48:47 -0500190
Sunny Goyald68725c2015-03-13 10:26:27 -0700191# ==================================================
192include $(call all-makefiles-under,$(LOCAL_PATH))