blob: 572b948e07591cc74b7a66ede7cc0ff6136df0eb [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
emancebo891d8d32014-08-04 17:07:05 -070020LOCAL_SRC_FILES := $(call all-java-files-under, $(src_dirs)) $(call all-Iaidl-files-under, $(src_dirs))
cretin4520d0c6e2014-07-23 16:32:45 -070021LOCAL_SRC_FILES += ../../providers/ContactsProvider/src/com/android/providers/contacts/NameSplitter.java \
22 ../../providers/ContactsProvider/src/com/android/providers/contacts/HanziToPinyin.java \
23 ../../providers/ContactsProvider/src/com/android/providers/contacts/util/NeededForTesting.java
Chiao Cheng94b10b52012-08-17 16:59:12 -070024LOCAL_RESOURCE_DIR := $(addprefix $(LOCAL_PATH)/, $(res_dirs))
Xiao-Long Chena3e67ac2014-11-12 17:01:47 -080025LOCAL_ASSET_DIR := $(LOCAL_PATH)/assets
Chiao Cheng94b10b52012-08-17 16:59:12 -070026
27LOCAL_AAPT_FLAGS := \
28 --auto-add-overlay \
Sai Cheemalapatifd723ca2014-06-19 12:30:07 -070029 --extra-packages com.android.incallui \
Jay Shrauner0f68a712014-07-16 16:13:57 -070030 --extra-packages com.android.contacts.common \
Sai Cheemalapatifd723ca2014-06-19 12:30:07 -070031 --extra-packages com.android.phone.common
Chiao Cheng94b10b52012-08-17 16:59:12 -070032
Suchand Ghosha68ac9f2014-09-24 10:44:23 +053033LOCAL_JAVA_LIBRARIES := telephony-common \
34 ims-common
35
Chiao Cheng94b10b52012-08-17 16:59:12 -070036LOCAL_STATIC_JAVA_LIBRARIES := \
Santos Cordonc286ae22013-09-03 15:58:07 -070037 com.android.services.telephony.common \
Chiao Cheng94b10b52012-08-17 16:59:12 -070038 com.android.vcard \
39 android-common \
40 guava \
41 android-support-v13 \
42 android-support-v4 \
43 android-ex-variablespeed \
Christine Chen641ab5a2013-10-23 17:19:42 -070044 libphonenumber \
45 libgeocoding
Chiao Cheng94b10b52012-08-17 16:59:12 -070046
47LOCAL_REQUIRED_MODULES := libvariablespeed
48
49LOCAL_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.
57# LOCAL_SDK_VERSION := current
58
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))