blob: 6e8365fc325c3253113353fc8e212d8fdb957249 [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
Bjorn Bringert32b12d22013-06-06 13:00:41 +010026LOCAL_STATIC_JAVA_LIBRARIES := android-support-v13
Bjorn Bringert3e244cf2010-02-10 14:17:35 +000027
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
Kenny Guyc2bd8102014-06-30 12:30:31 +010039# STOPSHIP(kennyguy): change to 21 once the L SDK is baked.
40LOCAL_SDK_VERSION := current
The Android Open Source Project31dd5032009-03-03 19:32:27 -080041
Daniel Sandler325dc232013-06-05 22:57:57 -040042LOCAL_PACKAGE_NAME := Launcher3
43#LOCAL_CERTIFICATE := shared
The Android Open Source Project31dd5032009-03-03 19:32:27 -080044
Ed Heyl6811c5a2013-10-17 17:08:14 -070045LOCAL_OVERRIDES_PACKAGES := Launcher2
The Android Open Source Project31dd5032009-03-03 19:32:27 -080046
Ying Wangb159e772010-09-29 15:25:38 -070047LOCAL_PROGUARD_FLAG_FILES := proguard.flags
Ying Wang77de1172010-02-19 18:50:32 -080048
The Android Open Source Project31dd5032009-03-03 19:32:27 -080049include $(BUILD_PACKAGE)
Shih-wei Liao163feae2010-07-20 01:22:10 -070050
Tsu Chiang Chuang923aa622011-06-17 11:26:15 -070051include $(call all-makefiles-under,$(LOCAL_PATH))
Chris Wren2b6c21d2013-10-02 14:16:04 -040052
53#
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)