1LOCAL_PATH:= $(call my-dir)
2include $(CLEAR_VARS)
3
4LOCAL_MODULE_TAGS := optional
5
6incallui_dir := InCallUI
7contacts_common_dir := ../ContactsCommon
8phone_common_dir := ../PhoneCommon
9
10ifeq ($(TARGET_BUILD_APPS),)
11support_library_root_dir := frameworks/support
12else
13support_library_root_dir := prebuilts/sdk/current/support
14endif
15
16src_dirs := src \
17    $(incallui_dir)/src \
18    $(contacts_common_dir)/src \
19    $(phone_common_dir)/src
20
21res_dirs := res \
22    $(incallui_dir)/res \
23    $(contacts_common_dir)/res \
24    $(phone_common_dir)/res
25
26src_dirs += \
27    src-N \
28    $(incallui_dir)/src-N \
29    $(contacts_common_dir)/src-N \
30    $(phone_common_dir)/src-N
31
32LOCAL_SRC_FILES := $(call all-java-files-under, $(src_dirs))
33LOCAL_RESOURCE_DIR := $(addprefix $(LOCAL_PATH)/, $(res_dirs)) \
34    $(support_library_root_dir)/v7/cardview/res \
35    $(support_library_root_dir)/v7/recyclerview/res \
36    $(support_library_root_dir)/v7/appcompat/res \
37    $(support_library_root_dir)/design/res
38
39LOCAL_AAPT_FLAGS := \
40    --auto-add-overlay \
41    --extra-packages android.support.v7.appcompat \
42    --extra-packages android.support.v7.cardview \
43    --extra-packages android.support.v7.recyclerview \
44    --extra-packages android.support.design \
45    --extra-packages com.android.incallui \
46    --extra-packages com.android.contacts.common \
47    --extra-packages com.android.phone.common
48
49LOCAL_STATIC_JAVA_LIBRARIES := \
50    android-common \
51    android-support-v13 \
52    android-support-v4 \
53    android-support-v7-appcompat \
54    android-support-v7-cardview \
55    android-support-v7-recyclerview \
56    android-support-design \
57    com.android.vcard \
58    guava \
59    libphonenumber
60
61LOCAL_PACKAGE_NAME := Dialer
62LOCAL_CERTIFICATE := shared
63LOCAL_PRIVILEGED_MODULE := true
64
65LOCAL_PROGUARD_FLAG_FILES := proguard.flags $(incallui_dir)/proguard.flags
66
67LOCAL_SDK_VERSION := current
68
69include $(BUILD_PACKAGE)
70
71# Use the following include to make our test apk.
72include $(call all-makefiles-under,$(LOCAL_PATH))
73