blob: 8aff191c7109dee0907e6f9a55c44dd2ff7267a4 [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
Leo Hsub9fda882018-07-20 19:10:30 +080011asset_dirs := assets ecc/output
Sai Cheemalapati14462b62014-06-18 13:53:56 -070012
Colin Crossc64180a2017-01-19 14:18:45 -080013LOCAL_JAVA_LIBRARIES := \
14 telephony-common \
15 voip-common \
16 ims-common \
Leo Hsub9fda882018-07-20 19:10:30 +080017 org.apache.http.legacy \
18 libprotobuf-java-lite
Colin Crossc64180a2017-01-19 14:18:45 -080019
Aurimas Liutikasfbcba102017-12-04 19:01:49 -080020LOCAL_STATIC_ANDROID_LIBRARIES := \
Aravind Sreekumarafc08c52018-04-10 15:34:32 -070021 androidx.appcompat_appcompat \
22 androidx.preference_preference \
23 androidx.recyclerview_recyclerview \
24 androidx.legacy_legacy-preference-v14
Aurimas Liutikasfbcba102017-12-04 19:01:49 -080025
26LOCAL_STATIC_JAVA_LIBRARIES := \
Alan Viverette34c163a2017-05-02 17:18:27 +000027 guava \
SongFerngWang5a0a4e12019-05-10 16:57:29 +080028 volley \
29 android-support-annotations
Santos Cordonf6bb89d2013-07-12 14:21:14 -070030
Sai Cheemalapati14462b62014-06-18 13:53:56 -070031LOCAL_SRC_FILES := $(call all-java-files-under, $(src_dirs))
Leo Hsub9fda882018-07-20 19:10:30 +080032LOCAL_SRC_FILES += $(call all-proto-files-under, ecc/proto)
Santos Cordon7d4ddf62013-07-10 11:58:08 -070033LOCAL_SRC_FILES += \
34 src/com/android/phone/EventLogTags.logtags \
35 src/com/android/phone/INetworkQueryService.aidl \
36 src/com/android/phone/INetworkQueryServiceCallback.aidl
Sai Cheemalapati14462b62014-06-18 13:53:56 -070037LOCAL_RESOURCE_DIR := $(addprefix $(LOCAL_PATH)/, $(res_dirs))
Leo Hsub9fda882018-07-20 19:10:30 +080038LOCAL_ASSET_DIR := $(addprefix $(LOCAL_PATH)/, $(asset_dirs))
Aurimas Liutikasfbcba102017-12-04 19:01:49 -080039LOCAL_USE_AAPT2 := true
Fan Zhangc57b9ee2017-07-07 20:57:33 -070040
Sai Cheemalapati14462b62014-06-18 13:53:56 -070041LOCAL_AAPT_FLAGS := \
Sailesh Nepal788959e2014-07-08 23:36:40 -070042 --extra-packages com.android.phone.common \
Aurimas Liutikasfbcba102017-12-04 19:01:49 -080043 --extra-packages com.android.services.telephony.sip
Santos Cordon7d4ddf62013-07-10 11:58:08 -070044
45LOCAL_PACKAGE_NAME := TeleService
Anton Hansson28719402018-02-23 16:06:17 +000046LOCAL_PRIVATE_PLATFORM_APIS := true
Santos Cordon50a47892013-07-11 11:09:04 -070047
Santos Cordon7d4ddf62013-07-10 11:58:08 -070048LOCAL_CERTIFICATE := platform
49LOCAL_PRIVILEGED_MODULE := true
50
Sailesh Nepal788959e2014-07-08 23:36:40 -070051LOCAL_PROGUARD_FLAG_FILES := proguard.flags sip/proguard.flags
Santos Cordon7d4ddf62013-07-10 11:58:08 -070052
Mahaver Choprac738a382016-02-05 15:46:37 +000053include frameworks/base/packages/SettingsLib/common.mk
54
Santos Cordon7d4ddf62013-07-10 11:58:08 -070055include $(BUILD_PACKAGE)
56
57# Build the test package
58include $(call all-makefiles-under,$(LOCAL_PATH))
Leo Hsub9fda882018-07-20 19:10:30 +080059