blob: c72c0195ef7b48e3ff40748fd3baab504cef2c1a [file] [log] [blame]
Chiao Cheng94b10b52012-08-17 16:59:12 -07001LOCAL_PATH:= $(call my-dir)
2include $(CLEAR_VARS)
3
4LOCAL_MODULE_TAGS := optional
5
Chiao Cheng9d4f3b22012-09-05 16:00:16 -07006contacts_common_dir := ../ContactsCommon
Sai Cheemalapatifd723ca2014-06-19 12:30:07 -07007phone_common_dir := ../PhoneCommon
Santos Cordonc286ae22013-09-03 15:58:07 -07008incallui_dir := ../InCallUI
Chiao Cheng94b10b52012-08-17 16:59:12 -07009
Sai Cheemalapatifd723ca2014-06-19 12:30:07 -070010src_dirs := src $(contacts_common_dir)/src $(incallui_dir)/src $(phone_common_dir)/src
11res_dirs := res $(contacts_common_dir)/res $(incallui_dir)/res $(phone_common_dir)/res
Chiao Cheng94b10b52012-08-17 16:59:12 -070012
13LOCAL_SRC_FILES := $(call all-java-files-under, $(src_dirs))
14LOCAL_RESOURCE_DIR := $(addprefix $(LOCAL_PATH)/, $(res_dirs))
15
16LOCAL_AAPT_FLAGS := \
17 --auto-add-overlay \
Santos Cordonc286ae22013-09-03 15:58:07 -070018 --extra-packages com.android.contacts.common \
Sai Cheemalapatifd723ca2014-06-19 12:30:07 -070019 --extra-packages com.android.incallui \
20 --extra-packages com.android.phone.common
Chiao Cheng94b10b52012-08-17 16:59:12 -070021
22LOCAL_JAVA_LIBRARIES := telephony-common
23LOCAL_STATIC_JAVA_LIBRARIES := \
Santos Cordonc286ae22013-09-03 15:58:07 -070024 com.android.services.telephony.common \
Chiao Cheng94b10b52012-08-17 16:59:12 -070025 com.android.vcard \
26 android-common \
27 guava \
28 android-support-v13 \
29 android-support-v4 \
30 android-ex-variablespeed \
Christine Chen641ab5a2013-10-23 17:19:42 -070031 libphonenumber \
32 libgeocoding
Chiao Cheng94b10b52012-08-17 16:59:12 -070033
34LOCAL_REQUIRED_MODULES := libvariablespeed
35
36LOCAL_PACKAGE_NAME := Dialer
37LOCAL_CERTIFICATE := shared
Christopher Tate5e9d0c42013-06-18 13:18:16 -070038LOCAL_PRIVILEGED_MODULE := true
Chiao Cheng94b10b52012-08-17 16:59:12 -070039
Santos Cordonc286ae22013-09-03 15:58:07 -070040LOCAL_PROGUARD_FLAG_FILES := proguard.flags $(incallui_dir)/proguard.flags
Chiao Cheng94b10b52012-08-17 16:59:12 -070041
Christine Chen641ab5a2013-10-23 17:19:42 -070042# Uncomment the following line to build against the current SDK
43# This is required for building an unbundled app.
44# LOCAL_SDK_VERSION := current
45
Chiao Cheng94b10b52012-08-17 16:59:12 -070046include $(BUILD_PACKAGE)
47
Santos Cordon472c2772013-03-18 17:43:21 -070048# Use the following include to make our test apk.
Chiao Cheng94b10b52012-08-17 16:59:12 -070049include $(call all-makefiles-under,$(LOCAL_PATH))