OSDN Git Service

release-request-276f9f52-87fd-4915-bd79-9a2f0ee77433-for-git_oc-release-4090213 snap...
[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 := \
27     android-support-v4 \
28     android-support-v7-recyclerview \
29     android-support-v7-palette
30
31 LOCAL_SRC_FILES := \
32     $(call all-java-files-under, src) \
33     $(call all-java-files-under, src_config) \
34     $(call all-proto-files-under, protos)
35
36 LOCAL_RESOURCE_DIR := \
37     $(LOCAL_PATH)/res \
38     prebuilts/sdk/current/support/v7/recyclerview/res \
39
40 LOCAL_PROGUARD_FLAG_FILES := proguard.flags
41
42 LOCAL_PROTOC_OPTIMIZE_TYPE := nano
43 LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)/protos/
44 LOCAL_PROTO_JAVA_OUTPUT_PARAMS := enum_style=java
45
46 LOCAL_AAPT_FLAGS := \
47     --auto-add-overlay \
48     --extra-packages android.support.v7.recyclerview \
49
50 LOCAL_SDK_VERSION := current
51 LOCAL_MIN_SDK_VERSION := 21
52 LOCAL_PACKAGE_NAME := Launcher3
53 LOCAL_PRIVILEGED_MODULE := true
54 LOCAL_OVERRIDES_PACKAGES := Home Launcher2
55
56 LOCAL_FULL_LIBS_MANIFEST_FILES := $(LOCAL_PATH)/AndroidManifest-common.xml
57
58 LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.*
59
60 include $(BUILD_PACKAGE)
61
62 #
63 # Launcher proto buffer jar used for development
64 #
65 include $(CLEAR_VARS)
66
67 LOCAL_SRC_FILES := $(call all-proto-files-under, protos)
68
69 LOCAL_PROTOC_OPTIMIZE_TYPE := nano
70 LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)/protos/
71 LOCAL_PROTO_JAVA_OUTPUT_PARAMS := enum_style=java
72
73 LOCAL_MODULE_TAGS := optional
74 LOCAL_MODULE := launcher_proto_lib
75 LOCAL_IS_HOST_MODULE := true
76 LOCAL_STATIC_JAVA_LIBRARIES := host-libprotobuf-java-nano
77
78 include $(BUILD_HOST_JAVA_LIBRARY)
79
80 # ==================================================
81 include $(call all-makefiles-under,$(LOCAL_PATH))