OSDN Git Service

Merge "Adding app grid layout with fastscroller." into ub-launcher3-burnaby
[android-x86/packages-apps-Launcher3.git] / Android.mk
1 #
2 # Copyright (C) 2013 The Android Open Source Project
3 #
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
17 LOCAL_PATH := $(call my-dir)
18
19 #
20 # Build app code.
21 #
22 include $(CLEAR_VARS)
23
24 LOCAL_MODULE_TAGS := optional
25
26 LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4
27
28 LOCAL_SRC_FILES := $(call all-java-files-under, src) \
29     $(call all-java-files-under, WallpaperPicker/src) \
30     $(call all-renderscript-files-under, src) \
31     $(call all-proto-files-under, protos)
32 LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/WallpaperPicker/res $(LOCAL_PATH)/res
33
34 LOCAL_AAPT_FLAGS := --auto-add-overlay
35
36 LOCAL_PROTOC_OPTIMIZE_TYPE := nano
37 LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)/protos/
38
39 LOCAL_SDK_VERSION := 21
40 LOCAL_STATIC_JAVA_LIBRARIES := \
41         android-support-v4 \
42         android-support-v7-recyclerview
43
44 LOCAL_PACKAGE_NAME := Launcher3
45 #LOCAL_CERTIFICATE := shared
46
47 LOCAL_OVERRIDES_PACKAGES := Launcher2
48
49 LOCAL_PROGUARD_FLAG_FILES := proguard.flags
50
51 include $(BUILD_PACKAGE)
52
53 include $(call all-makefiles-under,$(LOCAL_PATH))
54
55 #
56 # Protocol Buffer Debug Utility in Java
57 #
58 include $(CLEAR_VARS)
59
60 LOCAL_SRC_FILES := $(call all-java-files-under, util) \
61     $(call all-proto-files-under, protos)
62
63 LOCAL_PROTOC_OPTIMIZE_TYPE := nano
64 LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)/protos/
65
66 LOCAL_MODULE_TAGS := optional
67 LOCAL_MODULE := launcher_protoutil_lib
68 LOCAL_IS_HOST_MODULE := true
69 LOCAL_JAR_MANIFEST := util/etc/manifest.txt
70 LOCAL_STATIC_JAVA_LIBRARIES := host-libprotobuf-java-2.3.0-nano
71
72 include $(BUILD_HOST_JAVA_LIBRARY)
73
74 #
75 # Protocol Buffer Debug Utility Wrapper Script
76 #
77 include $(CLEAR_VARS)
78 LOCAL_IS_HOST_MODULE := true
79 LOCAL_MODULE_CLASS := EXECUTABLES
80 LOCAL_MODULE_TAGS := optional
81 LOCAL_MODULE := launcher_protoutil
82
83 include $(BUILD_SYSTEM)/base_rules.mk
84
85 $(LOCAL_BUILT_MODULE): launcher_protoutil_lib
86 $(LOCAL_BUILT_MODULE): $(LOCAL_PATH)/util/etc/launcher_protoutil | $(ACP)
87         @echo "Copy: $(PRIVATE_MODULE) ($@)"
88         $(copy-file-to-new-target)
89         $(hide) chmod 755 $@
90
91 INTERNAL_DALVIK_MODULES += $(LOCAL_INSTALLED_MODULE)