OSDN Git Service

am 86179020: Enable Launcher3 as default Home app
[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_SRC_FILES := $(call all-java-files-under, src) \
27     $(call all-java-files-under, WallpaperPicker/src) \
28     $(call all-proto-files-under, protos)
29 LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/WallpaperPicker/res $(LOCAL_PATH)/res
30 LOCAL_PROGUARD_FLAG_FILES := proguard.flags
31 LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4 android-support-v7-recyclerview
32
33 LOCAL_PROTOC_OPTIMIZE_TYPE := nano
34 LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)/protos/
35 LOCAL_AAPT_FLAGS := --auto-add-overlay
36
37 LOCAL_SDK_VERSION := current
38 LOCAL_PACKAGE_NAME := Launcher3
39 LOCAL_OVERRIDES_PACKAGES := Home Launcher2
40
41 include $(BUILD_PACKAGE)
42
43 #
44 # Protocol Buffer Debug Utility in Java
45 #
46 include $(CLEAR_VARS)
47
48 LOCAL_SRC_FILES := $(call all-java-files-under, util) \
49     $(call all-proto-files-under, protos)
50
51 LOCAL_PROTOC_OPTIMIZE_TYPE := nano
52 LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)/protos/
53
54 LOCAL_MODULE_TAGS := optional
55 LOCAL_MODULE := launcher_protoutil_lib
56 LOCAL_IS_HOST_MODULE := true
57 LOCAL_JAR_MANIFEST := util/etc/manifest.txt
58 LOCAL_STATIC_JAVA_LIBRARIES := host-libprotobuf-java-2.3.0-nano
59
60 include $(BUILD_HOST_JAVA_LIBRARY)
61
62 #
63 # Protocol Buffer Debug Utility Wrapper Script
64 #
65 include $(CLEAR_VARS)
66 LOCAL_IS_HOST_MODULE := true
67 LOCAL_MODULE_CLASS := EXECUTABLES
68 LOCAL_MODULE_TAGS := optional
69 LOCAL_MODULE := launcher_protoutil
70
71 include $(BUILD_SYSTEM)/base_rules.mk
72
73 $(LOCAL_BUILT_MODULE): launcher_protoutil_lib
74 $(LOCAL_BUILT_MODULE): $(LOCAL_PATH)/util/etc/launcher_protoutil | $(ACP)
75         @echo "Copy: $(PRIVATE_MODULE) ($@)"
76         $(copy-file-to-new-target)
77         $(hide) chmod 755 $@
78
79 INTERNAL_DALVIK_MODULES += $(LOCAL_INSTALLED_MODULE)
80
81 # ==================================================
82 include $(call all-makefiles-under,$(LOCAL_PATH))