Home | History | Annotate | Download | only in Dialer
      1 LOCAL_PATH:= $(call my-dir)
      2 include $(CLEAR_VARS)
      3 
      4 LOCAL_MODULE_TAGS := optional
      5 
      6 incallui_dir := InCallUI
      7 contacts_common_dir := ../ContactsCommon
      8 phone_common_dir := ../PhoneCommon
      9 
     10 ifeq ($(TARGET_BUILD_APPS),)
     11 support_library_root_dir := frameworks/support
     12 else
     13 support_library_root_dir := prebuilts/sdk/current/support
     14 endif
     15 
     16 src_dirs := src \
     17     $(incallui_dir)/src \
     18     $(contacts_common_dir)/src \
     19     $(phone_common_dir)/src
     20 
     21 res_dirs := res \
     22     $(incallui_dir)/res \
     23     $(contacts_common_dir)/res \
     24     $(contacts_common_dir)/icons/res \
     25     $(phone_common_dir)/res
     26 
     27 src_dirs += \
     28     src-N \
     29     $(incallui_dir)/src-N \
     30     $(contacts_common_dir)/src-N \
     31     $(phone_common_dir)/src-N
     32 
     33 LOCAL_SRC_FILES := $(call all-java-files-under, $(src_dirs))
     34 LOCAL_RESOURCE_DIR := $(addprefix $(LOCAL_PATH)/, $(res_dirs)) \
     35     $(support_library_root_dir)/v7/cardview/res \
     36     $(support_library_root_dir)/v7/recyclerview/res \
     37     $(support_library_root_dir)/v7/appcompat/res \
     38     $(support_library_root_dir)/design/res
     39 
     40 LOCAL_AAPT_FLAGS := \
     41     --auto-add-overlay \
     42     --extra-packages android.support.v7.appcompat \
     43     --extra-packages android.support.v7.cardview \
     44     --extra-packages android.support.v7.recyclerview \
     45     --extra-packages android.support.design \
     46     --extra-packages com.android.incallui \
     47     --extra-packages com.android.contacts.common \
     48     --extra-packages com.android.phone.common
     49 
     50 LOCAL_STATIC_JAVA_LIBRARIES := \
     51     android-common \
     52     android-support-v13 \
     53     android-support-v4 \
     54     android-support-v7-appcompat \
     55     android-support-v7-cardview \
     56     android-support-v7-recyclerview \
     57     android-support-design \
     58     com.android.vcard \
     59     guava \
     60     libphonenumber
     61 
     62 LOCAL_PACKAGE_NAME := Dialer
     63 LOCAL_CERTIFICATE := shared
     64 LOCAL_PRIVILEGED_MODULE := true
     65 
     66 LOCAL_PROGUARD_FLAG_FILES := proguard.flags $(incallui_dir)/proguard.flags
     67 
     68 LOCAL_SDK_VERSION := current
     69 
     70 include $(BUILD_PACKAGE)
     71 
     72 # Use the following include to make our test apk.
     73 include $(call all-makefiles-under,$(LOCAL_PATH))
     74