blob: 561174d1cf8551d838a5198713d9915dca25fdea [file] [log] [blame]
Chiao Cheng94b10b52012-08-17 16:59:12 -07001LOCAL_PATH:= $(call my-dir)
2include $(CLEAR_VARS)
3
4LOCAL_MODULE_TAGS := optional
5
Sailesh Nepal93970f62016-02-10 16:15:22 -08006incallui_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
Yorke Leea20df312015-10-30 12:22:20 -070010ifeq ($(TARGET_BUILD_APPS),)
11support_library_root_dir := frameworks/support
12else
13support_library_root_dir := prebuilts/sdk/current/support
14endif
15
Jay Shrauner0f68a712014-07-16 16:13:57 -070016src_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 \
Walter Jang84ea91d2016-07-13 11:51:26 -070024 $(contacts_common_dir)/icons/res \
Jay Shrauner0f68a712014-07-16 16:13:57 -070025 $(phone_common_dir)/res
Chiao Cheng94b10b52012-08-17 16:59:12 -070026
Ta-wei Yen90a13e92016-01-11 13:00:53 -080027src_dirs += \
28 src-N \
29 $(incallui_dir)/src-N \
30 $(contacts_common_dir)/src-N \
31 $(phone_common_dir)/src-N
32
Chiao Cheng94b10b52012-08-17 16:59:12 -070033LOCAL_SRC_FILES := $(call all-java-files-under, $(src_dirs))
Zhu Youhua8cb34a62016-07-12 13:29:31 +080034LOCAL_SRC_FILES += src/org/codeaurora/presenceserv/IPresenceService.aidl \
35 src/org/codeaurora/presenceserv/IPresenceServiceCB.aidl
Andrew Leef3170882015-04-10 17:28:26 -070036LOCAL_RESOURCE_DIR := $(addprefix $(LOCAL_PATH)/, $(res_dirs)) \
Yorke Leea20df312015-10-30 12:22:20 -070037 $(support_library_root_dir)/v7/cardview/res \
38 $(support_library_root_dir)/v7/recyclerview/res \
39 $(support_library_root_dir)/v7/appcompat/res \
40 $(support_library_root_dir)/design/res
Chiao Cheng94b10b52012-08-17 16:59:12 -070041
Suchand Ghoshd0d53cd2014-09-15 10:44:02 +053042LOCAL_JAVA_LIBRARIES := telephony-common \
43 telephony-ext \
Adhiticdd71022017-01-16 14:19:17 +053044 ims-common \
45 rcscommon
Prasath Balakrishnan6b814062016-02-23 19:48:12 +053046
Chiao Cheng94b10b52012-08-17 16:59:12 -070047LOCAL_AAPT_FLAGS := \
48 --auto-add-overlay \
Nancy Chen44898ad2015-08-13 12:03:47 -070049 --extra-packages android.support.v7.appcompat \
Andrew Leef3170882015-04-10 17:28:26 -070050 --extra-packages android.support.v7.cardview \
Andrew Leea1bb1252015-04-07 11:38:41 -070051 --extra-packages android.support.v7.recyclerview \
Nancy Chen44898ad2015-08-13 12:03:47 -070052 --extra-packages android.support.design \
Sai Cheemalapatifd723ca2014-06-19 12:30:07 -070053 --extra-packages com.android.incallui \
Jay Shrauner0f68a712014-07-16 16:13:57 -070054 --extra-packages com.android.contacts.common \
Sai Cheemalapatifd723ca2014-06-19 12:30:07 -070055 --extra-packages com.android.phone.common
Chiao Cheng94b10b52012-08-17 16:59:12 -070056
Chiao Cheng94b10b52012-08-17 16:59:12 -070057LOCAL_STATIC_JAVA_LIBRARIES := \
Chiao Cheng94b10b52012-08-17 16:59:12 -070058 android-common \
Chiao Cheng94b10b52012-08-17 16:59:12 -070059 android-support-v13 \
60 android-support-v4 \
Nancy Chen44898ad2015-08-13 12:03:47 -070061 android-support-v7-appcompat \
Andrew Leef3170882015-04-10 17:28:26 -070062 android-support-v7-cardview \
Andrew Leea1bb1252015-04-07 11:38:41 -070063 android-support-v7-recyclerview \
Nancy Chen44898ad2015-08-13 12:03:47 -070064 android-support-design \
Andrew Leea1bb1252015-04-07 11:38:41 -070065 com.android.vcard \
66 guava \
Garik Badalyand47747e2016-05-05 17:30:55 -070067 libphonenumber \
blongb445ba42016-05-30 15:48:42 +080068 ims-ext-common \
Li Wei31974f82016-05-11 17:12:51 +080069 phonebook_wrapper \
70 telephony-common
Chiao Cheng94b10b52012-08-17 16:59:12 -070071
Chiao Cheng94b10b52012-08-17 16:59:12 -070072LOCAL_PACKAGE_NAME := Dialer
73LOCAL_CERTIFICATE := shared
Christopher Tate5e9d0c42013-06-18 13:18:16 -070074LOCAL_PRIVILEGED_MODULE := true
Chiao Cheng94b10b52012-08-17 16:59:12 -070075
Santos Cordonc286ae22013-09-03 15:58:07 -070076LOCAL_PROGUARD_FLAG_FILES := proguard.flags $(incallui_dir)/proguard.flags
Chiao Cheng94b10b52012-08-17 16:59:12 -070077
Li Wei31974f82016-05-11 17:12:51 +080078# LOCAL_SDK_VERSION := current
Christine Chen641ab5a2013-10-23 17:19:42 -070079
Chiao Cheng94b10b52012-08-17 16:59:12 -070080include $(BUILD_PACKAGE)
81
Santos Cordon472c2772013-03-18 17:43:21 -070082# Use the following include to make our test apk.
Chiao Cheng94b10b52012-08-17 16:59:12 -070083include $(call all-makefiles-under,$(LOCAL_PATH))