Android.mk revision 287194069c04d4f923c23da83dc2736415dff085
1LOCAL_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
7phone_common_dir := ../../apps/PhoneCommon
8
9src_dirs := src $(phone_common_dir)/src sip/src
10res_dirs := res $(phone_common_dir)/res sip/res
11
12LOCAL_JAVA_LIBRARIES := \
13        telephony-common \
14        voip-common \
15        ims-common \
16        org.apache.http.legacy
17
18LOCAL_STATIC_JAVA_LIBRARIES := \
19        android-support-v7-appcompat \
20        android-support-v7-preference \
21        android-support-v7-recyclerview \
22        android-support-v14-preference \
23        guava \
24        volley
25
26LOCAL_SRC_FILES := $(call all-java-files-under, $(src_dirs))
27LOCAL_SRC_FILES += \
28        src/com/android/phone/EventLogTags.logtags \
29        src/com/android/phone/INetworkQueryService.aidl \
30        src/com/android/phone/INetworkQueryServiceCallback.aidl
31LOCAL_RESOURCE_DIR := $(addprefix $(LOCAL_PATH)/, $(res_dirs))
32
33LOCAL_RESOURCE_DIR += \
34    frameworks/support/v7/appcompat/res \
35    frameworks/support/v7/preference/res \
36    frameworks/support/v7/recyclerview/res \
37    frameworks/support/v14/preference/res
38
39LOCAL_AAPT_FLAGS := \
40    --auto-add-overlay \
41    --extra-packages com.android.phone.common \
42    --extra-packages com.android.services.telephony.sip \
43    --extra-packages android.support.v7.appcompat \
44    --extra-packages android.support.v7.preference \
45    --extra-packages android.support.v7.recyclerview \
46    --extra-packages android.support.v14.preference
47
48LOCAL_PACKAGE_NAME := TeleService
49LOCAL_PRIVATE_PLATFORM_APIS := true
50
51LOCAL_CERTIFICATE := platform
52LOCAL_PRIVILEGED_MODULE := true
53
54LOCAL_PROGUARD_FLAG_FILES := proguard.flags sip/proguard.flags
55
56include frameworks/base/packages/SettingsLib/common.mk
57
58include $(BUILD_PACKAGE)
59
60# Build the test package
61include $(call all-makefiles-under,$(LOCAL_PATH))
62