Home | History | Annotate | Download | only in Contacts
      1 LOCAL_PATH:= $(call my-dir)
      2 include $(CLEAR_VARS)
      3 
      4 LOCAL_MODULE_TAGS := optional
      5 
      6 contacts_common_dir := ../ContactsCommon
      7 phone_common_dir := ../PhoneCommon
      8 
      9 src_dirs := src $(contacts_common_dir)/src $(phone_common_dir)/src
     10 res_dirs := res $(contacts_common_dir)/res $(phone_common_dir)/res
     11 
     12 LOCAL_SRC_FILES := $(call all-java-files-under, $(src_dirs))
     13 LOCAL_RESOURCE_DIR := $(addprefix $(LOCAL_PATH)/, $(res_dirs)) \
     14     frameworks/support/v7/cardview/res
     15 
     16 LOCAL_AAPT_FLAGS := \
     17     --auto-add-overlay \
     18     --extra-packages com.android.contacts.common \
     19     --extra-packages com.android.phone.common \
     20     --extra-packages android.support.v7.cardview
     21 
     22 LOCAL_JAVA_LIBRARIES := telephony-common voip-common
     23 LOCAL_STATIC_JAVA_LIBRARIES := \
     24     com.android.vcard \
     25     android-common \
     26     guava \
     27     android-support-v13 \
     28     android-support-v7-cardview \
     29     android-support-v7-palette \
     30     android-support-v4 \
     31     libphonenumber \
     32     libgeocoding
     33 
     34 LOCAL_PACKAGE_NAME := Contacts
     35 LOCAL_CERTIFICATE := shared
     36 LOCAL_PRIVILEGED_MODULE := true
     37 
     38 LOCAL_PROGUARD_FLAG_FILES := proguard.flags
     39 
     40 include $(BUILD_PACKAGE)
     41 
     42 # Use the folloing include to make our test apk.
     43 include $(call all-makefiles-under,$(LOCAL_PATH))
     44