blob: ea7c76ba4ffc1f8e56e8ca13620f42c5e8ac6ae8 [file] [log] [blame]
Santos Cordon7d4ddf62013-07-10 11:58:08 -07001LOCAL_PATH:= $(call my-dir)
2
3# Build the Phone app which includes the emergency dialer. See Contacts
4# for the 'other' dialer.
5include $(CLEAR_VARS)
6
Sai Cheemalapati14462b62014-06-18 13:53:56 -07007phone_common_dir := ../../apps/PhoneCommon
8
Sailesh Nepal788959e2014-07-08 23:36:40 -07009src_dirs := src $(phone_common_dir)/src sip/src
10res_dirs := res $(phone_common_dir)/res sip/res
Sai Cheemalapati14462b62014-06-18 13:53:56 -070011
Colin Crossc64180a2017-01-19 14:18:45 -080012LOCAL_JAVA_LIBRARIES := \
13 telephony-common \
14 voip-common \
15 ims-common \
16 org.apache.http.legacy
17
Sai Cheemalapati14462b62014-06-18 13:53:56 -070018LOCAL_STATIC_JAVA_LIBRARIES := \
Colin Crossc64180a2017-01-19 14:18:45 -080019 android-support-v7-appcompat \
20 android-support-v7-preference \
21 android-support-v7-recyclerview \
Alan Viverette34c163a2017-05-02 17:18:27 +000022 android-support-v14-preference \
Lucas Dupineb9c5702017-05-10 16:57:09 -070023 colorextraction \
Alan Viverette34c163a2017-05-02 17:18:27 +000024 guava \
25 volley
Santos Cordonf6bb89d2013-07-12 14:21:14 -070026
Sai Cheemalapati14462b62014-06-18 13:53:56 -070027LOCAL_SRC_FILES := $(call all-java-files-under, $(src_dirs))
Santos Cordon7d4ddf62013-07-10 11:58:08 -070028LOCAL_SRC_FILES += \
29 src/com/android/phone/EventLogTags.logtags \
30 src/com/android/phone/INetworkQueryService.aidl \
31 src/com/android/phone/INetworkQueryServiceCallback.aidl
Sai Cheemalapati14462b62014-06-18 13:53:56 -070032LOCAL_RESOURCE_DIR := $(addprefix $(LOCAL_PATH)/, $(res_dirs))
33
Fan Zhangc57b9ee2017-07-07 20:57:33 -070034LOCAL_RESOURCE_DIR += \
35 frameworks/support/v7/appcompat/res \
36 frameworks/support/v7/preference/res \
37 frameworks/support/v7/recyclerview/res \
38 frameworks/support/v14/preference/res
39
Sai Cheemalapati14462b62014-06-18 13:53:56 -070040LOCAL_AAPT_FLAGS := \
41 --auto-add-overlay \
Sailesh Nepal788959e2014-07-08 23:36:40 -070042 --extra-packages com.android.phone.common \
Fan Zhangc57b9ee2017-07-07 20:57:33 -070043 --extra-packages com.android.services.telephony.sip \
44 --extra-packages android.support.v7.appcompat \
45 --extra-packages android.support.v7.preference \
46 --extra-packages android.support.v7.recyclerview \
47 --extra-packages android.support.v14.preference
Santos Cordon7d4ddf62013-07-10 11:58:08 -070048
49LOCAL_PACKAGE_NAME := TeleService
Santos Cordon50a47892013-07-11 11:09:04 -070050
Santos Cordon7d4ddf62013-07-10 11:58:08 -070051LOCAL_CERTIFICATE := platform
52LOCAL_PRIVILEGED_MODULE := true
53
Sailesh Nepal788959e2014-07-08 23:36:40 -070054LOCAL_PROGUARD_FLAG_FILES := proguard.flags sip/proguard.flags
Santos Cordon7d4ddf62013-07-10 11:58:08 -070055
Mahaver Choprac738a382016-02-05 15:46:37 +000056include frameworks/base/packages/SettingsLib/common.mk
57
Santos Cordon7d4ddf62013-07-10 11:58:08 -070058include $(BUILD_PACKAGE)
59
60# Build the test package
61include $(call all-makefiles-under,$(LOCAL_PATH))