blob: 696caf13324241d265380e1d8595dce859c0cceb [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 \
Narayan Kamath7956f892015-01-06 10:34:07 +000038 libphonenumber
Chiao Cheng94b10b52012-08-17 16:59:12 -070039
40LOCAL_REQUIRED_MODULES := libvariablespeed
41
42LOCAL_PACKAGE_NAME := Dialer
43LOCAL_CERTIFICATE := shared
Christopher Tate5e9d0c42013-06-18 13:18:16 -070044LOCAL_PRIVILEGED_MODULE := true
Chiao Cheng94b10b52012-08-17 16:59:12 -070045
Santos Cordonc286ae22013-09-03 15:58:07 -070046LOCAL_PROGUARD_FLAG_FILES := proguard.flags $(incallui_dir)/proguard.flags
Chiao Cheng94b10b52012-08-17 16:59:12 -070047
Christine Chen641ab5a2013-10-23 17:19:42 -070048# Uncomment the following line to build against the current SDK
49# This is required for building an unbundled app.
50# LOCAL_SDK_VERSION := current
51
Chiao Cheng94b10b52012-08-17 16:59:12 -070052include $(BUILD_PACKAGE)
53
Santos Cordon472c2772013-03-18 17:43:21 -070054# Use the following include to make our test apk.
Chiao Cheng94b10b52012-08-17 16:59:12 -070055include $(call all-makefiles-under,$(LOCAL_PATH))