Android.mk revision 58eaabcc31e23fd4c071ad911b96da6eea4abc28
1LOCAL_PATH:= $(call my-dir)
2include $(CLEAR_VARS)
3
4LOCAL_MODULE_TAGS := optional
5
6incallui_dir := ../InCallUI
7contacts_common_dir := ../ContactsCommon
8phone_common_dir := ../PhoneCommon
9
10src_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
19
20LOCAL_SRC_FILES := $(call all-java-files-under, $(src_dirs))
21LOCAL_RESOURCE_DIR := $(addprefix $(LOCAL_PATH)/, $(res_dirs)) \
22    frameworks/support/v7/cardview/res frameworks/support/v7/recyclerview/res
23
24LOCAL_AAPT_FLAGS := \
25    --auto-add-overlay \
26    --extra-packages android.support.v7.cardview \
27    --extra-packages android.support.v7.recyclerview \
28    --extra-packages com.android.incallui \
29    --extra-packages com.android.contacts.common \
30    --extra-packages com.android.phone.common
31
32LOCAL_JAVA_LIBRARIES := telephony-common
33LOCAL_STATIC_JAVA_LIBRARIES := \
34    android-common \
35    android-support-v13 \
36    android-support-v4 \
37    android-support-v7-cardview \
38    android-support-v7-recyclerview \
39    com.android.services.telephony.common \
40    com.android.vcard \
41    guava \
42    libphonenumber
43
44LOCAL_PACKAGE_NAME := Dialer
45LOCAL_CERTIFICATE := shared
46LOCAL_PRIVILEGED_MODULE := true
47
48LOCAL_PROGUARD_FLAG_FILES := proguard.flags $(incallui_dir)/proguard.flags
49
50# Uncomment the following line to build against the current SDK
51# This is required for building an unbundled app.
52LOCAL_SDK_VERSION := current
53
54include $(BUILD_PACKAGE)
55
56# Use the following include to make our test apk.
57include $(call all-makefiles-under,$(LOCAL_PATH))
58