blob: d7bfdd4640e2d75c1271a8dba6908cfcc7fe92a7 [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
Adam Cohenc9735cf2015-01-23 16:11:55 -080026LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4
27
Chris Wren2b6c21d2013-10-02 14:16:04 -040028LOCAL_SRC_FILES := $(call all-java-files-under, src) \
Michael Jurka7ad868b2013-12-12 15:04:25 +010029 $(call all-java-files-under, WallpaperPicker/src) \
Chris Wren2b6c21d2013-10-02 14:16:04 -040030 $(call all-renderscript-files-under, src) \
Chris Wren1ada10d2013-09-13 18:01:38 -040031 $(call all-proto-files-under, protos)
Michael Jurka7ad868b2013-12-12 15:04:25 +010032LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/WallpaperPicker/res $(LOCAL_PATH)/res
Michael Jurka8e88cb82013-12-10 16:59:20 +010033
34LOCAL_AAPT_FLAGS := --auto-add-overlay
Chris Wren1ada10d2013-09-13 18:01:38 -040035
36LOCAL_PROTOC_OPTIMIZE_TYPE := nano
Chris Wren2b6c21d2013-10-02 14:16:04 -040037LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)/protos/
Chris Wren1ada10d2013-09-13 18:01:38 -040038
Bjorn Bringert2ed99e82014-09-30 18:53:39 +010039LOCAL_SDK_VERSION := 21
Winson Chung93f98ea2015-03-10 16:28:47 -070040LOCAL_STATIC_JAVA_LIBRARIES := \
41 android-support-v4 \
42 android-support-v7-recyclerview
The Android Open Source Project31dd5032009-03-03 19:32:27 -080043
Daniel Sandler325dc232013-06-05 22:57:57 -040044LOCAL_PACKAGE_NAME := Launcher3
45#LOCAL_CERTIFICATE := shared
The Android Open Source Project31dd5032009-03-03 19:32:27 -080046
Ed Heyl6811c5a2013-10-17 17:08:14 -070047LOCAL_OVERRIDES_PACKAGES := Launcher2
The Android Open Source Project31dd5032009-03-03 19:32:27 -080048
Ying Wangb159e772010-09-29 15:25:38 -070049LOCAL_PROGUARD_FLAG_FILES := proguard.flags
Ying Wang77de1172010-02-19 18:50:32 -080050
The Android Open Source Project31dd5032009-03-03 19:32:27 -080051include $(BUILD_PACKAGE)
Shih-wei Liao163feae2010-07-20 01:22:10 -070052
Chris Wren2b6c21d2013-10-02 14:16:04 -040053#
54# Protocol Buffer Debug Utility in Java
55#
56include $(CLEAR_VARS)
57
58LOCAL_SRC_FILES := $(call all-java-files-under, util) \
59 $(call all-proto-files-under, protos)
60
61LOCAL_PROTOC_OPTIMIZE_TYPE := nano
62LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)/protos/
63
64LOCAL_MODULE_TAGS := optional
Chris Wrenba2923a2013-12-10 15:48:47 -050065LOCAL_MODULE := launcher_protoutil_lib
66LOCAL_IS_HOST_MODULE := true
67LOCAL_JAR_MANIFEST := util/etc/manifest.txt
68LOCAL_STATIC_JAVA_LIBRARIES := host-libprotobuf-java-2.3.0-nano
Chris Wren2b6c21d2013-10-02 14:16:04 -040069
70include $(BUILD_HOST_JAVA_LIBRARY)
Chris Wrenba2923a2013-12-10 15:48:47 -050071
72#
73# Protocol Buffer Debug Utility Wrapper Script
74#
75include $(CLEAR_VARS)
76LOCAL_IS_HOST_MODULE := true
77LOCAL_MODULE_CLASS := EXECUTABLES
78LOCAL_MODULE_TAGS := optional
79LOCAL_MODULE := launcher_protoutil
80
81include $(BUILD_SYSTEM)/base_rules.mk
82
83$(LOCAL_BUILT_MODULE): launcher_protoutil_lib
84$(LOCAL_BUILT_MODULE): $(LOCAL_PATH)/util/etc/launcher_protoutil | $(ACP)
85 @echo "Copy: $(PRIVATE_MODULE) ($@)"
86 $(copy-file-to-new-target)
87 $(hide) chmod 755 $@
88
89INTERNAL_DALVIK_MODULES += $(LOCAL_INSTALLED_MODULE)
Sunny Goyald68725c2015-03-13 10:26:27 -070090
91# ==================================================
92include $(call all-makefiles-under,$(LOCAL_PATH))