blob: 20f39445e5463f95b5f92fc093b70f138e2ead10 [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
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 \
24 $(phone_common_dir)/res
Chiao Cheng94b10b52012-08-17 16:59:12 -070025
Ta-wei Yen90a13e92016-01-11 13:00:53 -080026src_dirs += \
27 src-N \
28 $(incallui_dir)/src-N \
29 $(contacts_common_dir)/src-N \
30 $(phone_common_dir)/src-N
31
Chiao Cheng94b10b52012-08-17 16:59:12 -070032LOCAL_SRC_FILES := $(call all-java-files-under, $(src_dirs))
Andrew Leef3170882015-04-10 17:28:26 -070033LOCAL_RESOURCE_DIR := $(addprefix $(LOCAL_PATH)/, $(res_dirs)) \
Yorke Leea20df312015-10-30 12:22:20 -070034 $(support_library_root_dir)/v7/cardview/res \
35 $(support_library_root_dir)/v7/recyclerview/res \
36 $(support_library_root_dir)/v7/appcompat/res \
37 $(support_library_root_dir)/design/res
Chiao Cheng94b10b52012-08-17 16:59:12 -070038
39LOCAL_AAPT_FLAGS := \
40 --auto-add-overlay \
Nancy Chen44898ad2015-08-13 12:03:47 -070041 --extra-packages android.support.v7.appcompat \
Andrew Leef3170882015-04-10 17:28:26 -070042 --extra-packages android.support.v7.cardview \
Andrew Leea1bb1252015-04-07 11:38:41 -070043 --extra-packages android.support.v7.recyclerview \
Nancy Chen44898ad2015-08-13 12:03:47 -070044 --extra-packages android.support.design \
Sai Cheemalapatifd723ca2014-06-19 12:30:07 -070045 --extra-packages com.android.incallui \
Jay Shrauner0f68a712014-07-16 16:13:57 -070046 --extra-packages com.android.contacts.common \
Sai Cheemalapatifd723ca2014-06-19 12:30:07 -070047 --extra-packages com.android.phone.common
Chiao Cheng94b10b52012-08-17 16:59:12 -070048
Chiao Cheng94b10b52012-08-17 16:59:12 -070049LOCAL_STATIC_JAVA_LIBRARIES := \
Chiao Cheng94b10b52012-08-17 16:59:12 -070050 android-common \
Chiao Cheng94b10b52012-08-17 16:59:12 -070051 android-support-v13 \
52 android-support-v4 \
Nancy Chen44898ad2015-08-13 12:03:47 -070053 android-support-v7-appcompat \
Andrew Leef3170882015-04-10 17:28:26 -070054 android-support-v7-cardview \
Andrew Leea1bb1252015-04-07 11:38:41 -070055 android-support-v7-recyclerview \
Nancy Chen44898ad2015-08-13 12:03:47 -070056 android-support-design \
Andrew Leea1bb1252015-04-07 11:38:41 -070057 com.android.vcard \
58 guava \
Narayan Kamath7956f892015-01-06 10:34:07 +000059 libphonenumber
Chiao Cheng94b10b52012-08-17 16:59:12 -070060
Chiao Cheng94b10b52012-08-17 16:59:12 -070061LOCAL_PACKAGE_NAME := Dialer
62LOCAL_CERTIFICATE := shared
Christopher Tate5e9d0c42013-06-18 13:18:16 -070063LOCAL_PRIVILEGED_MODULE := true
Chiao Cheng94b10b52012-08-17 16:59:12 -070064
Santos Cordonc286ae22013-09-03 15:58:07 -070065LOCAL_PROGUARD_FLAG_FILES := proguard.flags $(incallui_dir)/proguard.flags
Chiao Cheng94b10b52012-08-17 16:59:12 -070066
Christine Chen641ab5a2013-10-23 17:19:42 -070067# Uncomment the following line to build against the current SDK
68# This is required for building an unbundled app.
Brandon Maxwelle7d0ef72015-12-08 11:32:28 -080069LOCAL_SDK_VERSION := system_current
Christine Chen641ab5a2013-10-23 17:19:42 -070070
Chiao Cheng94b10b52012-08-17 16:59:12 -070071include $(BUILD_PACKAGE)
72
Santos Cordon472c2772013-03-18 17:43:21 -070073# Use the following include to make our test apk.
Chiao Cheng94b10b52012-08-17 16:59:12 -070074include $(call all-makefiles-under,$(LOCAL_PATH))