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 ifeq ($(TARGET_BUILD_APPS),)
     10 support_library_root_dir := frameworks/support
     11 else
     12 support_library_root_dir := prebuilts/sdk/current/support
     13 endif
     14 
     15 src_dirs := src $(contacts_common_dir)/src $(phone_common_dir)/src
     16 res_dirs := res $(contacts_common_dir)/res $(phone_common_dir)/res
     17 asset_dirs := $(contacts_common_dir)/assets
     18 
     19 src_dirs += src-N $(contacts_common_dir)/src-N $(phone_common_dir)/src-N
     20 
     21 LOCAL_SRC_FILES := $(call all-java-files-under, $(src_dirs))
     22 LOCAL_RESOURCE_DIR := $(addprefix $(LOCAL_PATH)/, $(res_dirs)) \
     23     $(support_library_root_dir)/v7/cardview/res
     24 LOCAL_ASSET_DIR := $(addprefix $(LOCAL_PATH)/, $(asset_dirs))
     25 
     26 LOCAL_AAPT_FLAGS := \
     27     --auto-add-overlay \
     28     --extra-packages com.android.contacts.common \
     29     --extra-packages com.android.phone.common \
     30     --extra-packages android.support.v7.cardview
     31 
     32 LOCAL_STATIC_JAVA_LIBRARIES := \
     33     com.android.vcard \
     34     android-common \
     35     guava \
     36     android-support-v13 \
     37     android-support-v7-cardview \
     38     android-support-v7-palette \
     39     android-support-v4 \
     40     libphonenumber
     41 
     42 LOCAL_PACKAGE_NAME := Contacts
     43 LOCAL_CERTIFICATE := shared
     44 LOCAL_PRIVILEGED_MODULE := true
     45 
     46 LOCAL_PROGUARD_FLAG_FILES := proguard.flags
     47 
     48 LOCAL_SDK_VERSION := current
     49 LOCAL_MIN_SDK_VERSION := 21
     50 
     51 include $(BUILD_PACKAGE)
     52 
     53 # Use the folloing include to make our test apk.
     54 include $(call all-makefiles-under,$(LOCAL_PATH))
     55