blob: 0d7754c3e7d2c19d6a5af4da7370a61c2599ad38 [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))
Andrew Leef3170882015-04-10 17:28:26 -070021LOCAL_RESOURCE_DIR := $(addprefix $(LOCAL_PATH)/, $(res_dirs)) \
Nancy Chen44898ad2015-08-13 12:03:47 -070022 frameworks/support/v7/appcompat/res \
23 frameworks/support/v7/cardview/res \
24 frameworks/support/v7/recyclerview/res \
25 frameworks/support/design/res
Chiao Cheng94b10b52012-08-17 16:59:12 -070026
27LOCAL_AAPT_FLAGS := \
28 --auto-add-overlay \
Nancy Chen44898ad2015-08-13 12:03:47 -070029 --extra-packages android.support.v7.appcompat \
Andrew Leef3170882015-04-10 17:28:26 -070030 --extra-packages android.support.v7.cardview \
Andrew Leea1bb1252015-04-07 11:38:41 -070031 --extra-packages android.support.v7.recyclerview \
Nancy Chen44898ad2015-08-13 12:03:47 -070032 --extra-packages android.support.design \
Sai Cheemalapatifd723ca2014-06-19 12:30:07 -070033 --extra-packages com.android.incallui \
Jay Shrauner0f68a712014-07-16 16:13:57 -070034 --extra-packages com.android.contacts.common \
Sai Cheemalapatifd723ca2014-06-19 12:30:07 -070035 --extra-packages com.android.phone.common
Chiao Cheng94b10b52012-08-17 16:59:12 -070036
Chiao Cheng94b10b52012-08-17 16:59:12 -070037LOCAL_STATIC_JAVA_LIBRARIES := \
Chiao Cheng94b10b52012-08-17 16:59:12 -070038 android-common \
Chiao Cheng94b10b52012-08-17 16:59:12 -070039 android-support-v13 \
40 android-support-v4 \
Nancy Chen44898ad2015-08-13 12:03:47 -070041 android-support-v7-appcompat \
Andrew Leef3170882015-04-10 17:28:26 -070042 android-support-v7-cardview \
Andrew Leea1bb1252015-04-07 11:38:41 -070043 android-support-v7-recyclerview \
Nancy Chen44898ad2015-08-13 12:03:47 -070044 android-support-design \
Andrew Leea1bb1252015-04-07 11:38:41 -070045 com.android.vcard \
46 guava \
Narayan Kamath7956f892015-01-06 10:34:07 +000047 libphonenumber
Chiao Cheng94b10b52012-08-17 16:59:12 -070048
Chiao Cheng94b10b52012-08-17 16:59:12 -070049LOCAL_PACKAGE_NAME := Dialer
50LOCAL_CERTIFICATE := shared
Christopher Tate5e9d0c42013-06-18 13:18:16 -070051LOCAL_PRIVILEGED_MODULE := true
Chiao Cheng94b10b52012-08-17 16:59:12 -070052
Santos Cordonc286ae22013-09-03 15:58:07 -070053LOCAL_PROGUARD_FLAG_FILES := proguard.flags $(incallui_dir)/proguard.flags
Chiao Cheng94b10b52012-08-17 16:59:12 -070054
Christine Chen641ab5a2013-10-23 17:19:42 -070055# Uncomment the following line to build against the current SDK
56# This is required for building an unbundled app.
Yorke Lee57dee3b2015-04-27 13:59:39 -070057LOCAL_SDK_VERSION := current
Christine Chen641ab5a2013-10-23 17:19:42 -070058
Chiao Cheng94b10b52012-08-17 16:59:12 -070059include $(BUILD_PACKAGE)
60
Santos Cordon472c2772013-03-18 17:43:21 -070061# Use the following include to make our test apk.
Chiao Cheng94b10b52012-08-17 16:59:12 -070062include $(call all-makefiles-under,$(LOCAL_PATH))