blob: 414ea2fcd2f2dc2840b1810c5b12adb5371e2195 [file] [log] [blame]
Chiao Cheng94b10b52012-08-17 16:59:12 -07001LOCAL_PATH:= $(call my-dir)
2include $(CLEAR_VARS)
3
4LOCAL_MODULE_TAGS := optional
5
Jay Shrauner0f68a712014-07-16 16:13:57 -07006incallui_dir := ../InCallUI
Chiao Cheng9d4f3b22012-09-05 16:00:16 -07007contacts_common_dir := ../ContactsCommon
Sai Cheemalapatifd723ca2014-06-19 12:30:07 -07008phone_common_dir := ../PhoneCommon
Chiao Cheng94b10b52012-08-17 16:59:12 -07009
Jay Shrauner0f68a712014-07-16 16:13:57 -070010src_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
Chiao Cheng94b10b52012-08-17 16:59:12 -070019
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 \
Sai Cheemalapatifd723ca2014-06-19 12:30:07 -070025 --extra-packages com.android.incallui \
Jay Shrauner0f68a712014-07-16 16:13:57 -070026 --extra-packages com.android.contacts.common \
Sai Cheemalapatifd723ca2014-06-19 12:30:07 -070027 --extra-packages com.android.phone.common
Chiao Cheng94b10b52012-08-17 16:59:12 -070028
29LOCAL_JAVA_LIBRARIES := telephony-common
30LOCAL_STATIC_JAVA_LIBRARIES := \
Santos Cordonc286ae22013-09-03 15:58:07 -070031 com.android.services.telephony.common \
Chiao Cheng94b10b52012-08-17 16:59:12 -070032 com.android.vcard \
33 android-common \
34 guava \
35 android-support-v13 \
36 android-support-v4 \
37 android-ex-variablespeed \
Christine Chen641ab5a2013-10-23 17:19:42 -070038 libphonenumber \
39 libgeocoding
Chiao Cheng94b10b52012-08-17 16:59:12 -070040
41LOCAL_REQUIRED_MODULES := libvariablespeed
42
43LOCAL_PACKAGE_NAME := Dialer
44LOCAL_CERTIFICATE := shared
Christopher Tate5e9d0c42013-06-18 13:18:16 -070045LOCAL_PRIVILEGED_MODULE := true
Chiao Cheng94b10b52012-08-17 16:59:12 -070046
Santos Cordonc286ae22013-09-03 15:58:07 -070047LOCAL_PROGUARD_FLAG_FILES := proguard.flags $(incallui_dir)/proguard.flags
Chiao Cheng94b10b52012-08-17 16:59:12 -070048
Christine Chen641ab5a2013-10-23 17:19:42 -070049# 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
Chiao Cheng94b10b52012-08-17 16:59:12 -070053include $(BUILD_PACKAGE)
54
Santos Cordon472c2772013-03-18 17:43:21 -070055# Use the following include to make our test apk.
Chiao Cheng94b10b52012-08-17 16:59:12 -070056include $(call all-makefiles-under,$(LOCAL_PATH))