blob: 1dde46beff2cb05e70b3f5517e48dd692974937e [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#
20# Build app code.
21#
The Android Open Source Project31dd5032009-03-03 19:32:27 -080022include $(CLEAR_VARS)
23
Jean-Baptiste Queru2583ac52010-01-05 11:09:52 -080024LOCAL_MODULE_TAGS := optional
The Android Open Source Project31dd5032009-03-03 19:32:27 -080025
Hyunyoung Songd30e8452015-07-27 18:24:45 -070026LOCAL_STATIC_JAVA_LIBRARIES := \
27 android-support-v4 \
28 android-support-v7-recyclerview
29
Chris Wren2b6c21d2013-10-02 14:16:04 -040030LOCAL_SRC_FILES := $(call all-java-files-under, src) \
Michael Jurka7ad868b2013-12-12 15:04:25 +010031 $(call all-java-files-under, WallpaperPicker/src) \
Chris Wren1ada10d2013-09-13 18:01:38 -040032 $(call all-proto-files-under, protos)
Hyunyoung Songd30e8452015-07-27 18:24:45 -070033
34LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/WallpaperPicker/res \
35 $(LOCAL_PATH)/res \
Ying Wangbaa55892016-01-04 12:19:01 -080036 prebuilts/sdk/current/support/v7/recyclerview/res
Hyunyoung Songd30e8452015-07-27 18:24:45 -070037
Sunny Goyal4a6c2c52015-07-07 11:40:31 -070038LOCAL_PROGUARD_FLAG_FILES := proguard.flags
Chris Wren1ada10d2013-09-13 18:01:38 -040039
40LOCAL_PROTOC_OPTIMIZE_TYPE := nano
Chris Wren2b6c21d2013-10-02 14:16:04 -040041LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)/protos/
Hyunyoung Songd30e8452015-07-27 18:24:45 -070042LOCAL_AAPT_FLAGS := \
43 --auto-add-overlay \
44 --extra-packages android.support.v7.recyclerview
Chris Wren1ada10d2013-09-13 18:01:38 -040045
Sunny Goyal4a6c2c52015-07-07 11:40:31 -070046LOCAL_SDK_VERSION := current
Daniel Sandler325dc232013-06-05 22:57:57 -040047LOCAL_PACKAGE_NAME := Launcher3
bohu86179022015-05-21 08:20:38 -070048LOCAL_OVERRIDES_PACKAGES := Home Launcher2
The Android Open Source Project31dd5032009-03-03 19:32:27 -080049
The Android Open Source Project31dd5032009-03-03 19:32:27 -080050include $(BUILD_PACKAGE)
Shih-wei Liao163feae2010-07-20 01:22:10 -070051
Chris Wren2b6c21d2013-10-02 14:16:04 -040052#
Sunny Goyal5e9ef132016-01-06 15:30:53 -080053# Launcher proto buffer jar used for development
Chris Wren2b6c21d2013-10-02 14:16:04 -040054#
55include $(CLEAR_VARS)
56
Sunny Goyal5e9ef132016-01-06 15:30:53 -080057LOCAL_SRC_FILES := $(call all-proto-files-under, protos)
Chris Wren2b6c21d2013-10-02 14:16:04 -040058
59LOCAL_PROTOC_OPTIMIZE_TYPE := nano
60LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)/protos/
61
62LOCAL_MODULE_TAGS := optional
Sunny Goyal5e9ef132016-01-06 15:30:53 -080063LOCAL_MODULE := launcher_proto_lib
Chris Wrenba2923a2013-12-10 15:48:47 -050064LOCAL_IS_HOST_MODULE := true
Hyunyoung Song4ae00b12016-01-06 13:12:45 -080065LOCAL_STATIC_JAVA_LIBRARIES := host-libprotobuf-java-nano
Chris Wren2b6c21d2013-10-02 14:16:04 -040066
67include $(BUILD_HOST_JAVA_LIBRARY)
Chris Wrenba2923a2013-12-10 15:48:47 -050068
Sunny Goyald68725c2015-03-13 10:26:27 -070069# ==================================================
70include $(call all-makefiles-under,$(LOCAL_PATH))