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
10src_dirs := src \
11    $(incallui_dir)/src \
12    $(contacts_common_dir)/src \
13    $(phone_common_dir)/src
14
15res_dirs := res \
16    $(incallui_dir)/res \
17    $(contacts_common_dir)/res \
18    $(phone_common_dir)/res
19
20LOCAL_SRC_FILES := $(call all-java-files-under, $(src_dirs))
21LOCAL_RESOURCE_DIR := $(addprefix $(LOCAL_PATH)/, $(res_dirs))
22
23LOCAL_AAPT_FLAGS := \
24    --auto-add-overlay \
25    --extra-packages com.android.incallui \
26    --extra-packages com.android.contacts.common \
27    --extra-packages com.android.phone.common
28
29LOCAL_JAVA_LIBRARIES := telephony-common
30LOCAL_STATIC_JAVA_LIBRARIES := \
31    com.android.services.telephony.common \
32    com.android.vcard \
33    android-common \
34    guava \
35    android-support-v13 \
36    android-support-v4 \
37    android-ex-variablespeed \
38    libphonenumber \
39    libgeocoding
40
41LOCAL_REQUIRED_MODULES := libvariablespeed
42
43LOCAL_PACKAGE_NAME := Dialer
44LOCAL_CERTIFICATE := shared
45LOCAL_PRIVILEGED_MODULE := true
46
47LOCAL_PROGUARD_FLAG_FILES := proguard.flags $(incallui_dir)/proguard.flags
48
49# Uncomment the following line to build against the current SDK
50# This is required for building an unbundled app.
51# LOCAL_SDK_VERSION := current
52
53include $(BUILD_PACKAGE)
54
55# Use the following include to make our test apk.
56include $(call all-makefiles-under,$(LOCAL_PATH))
57