The Android Open Source Project | 7aa0e4c | 2009-03-03 19:32:21 -0800 | [diff] [blame] | 1 | LOCAL_PATH:= $(call my-dir) |
| 2 | include $(CLEAR_VARS) |
| 3 | |
Jean-Baptiste Queru | ac60053 | 2010-01-05 16:27:23 -0800 | [diff] [blame] | 4 | LOCAL_MODULE_TAGS := optional |
The Android Open Source Project | 7aa0e4c | 2009-03-03 19:32:21 -0800 | [diff] [blame] | 5 | |
Chiao Cheng | 3a8df86 | 2012-09-04 16:30:17 -0700 | [diff] [blame] | 6 | contacts_common_dir := ../ContactsCommon |
Sai Cheemalapati | 974e170 | 2014-06-20 14:52:03 -0700 | [diff] [blame] | 7 | phone_common_dir := ../PhoneCommon |
Chiao Cheng | 3a8df86 | 2012-09-04 16:30:17 -0700 | [diff] [blame] | 8 | |
Yorke Lee | d1c7813 | 2015-10-30 12:24:41 -0700 | [diff] [blame] | 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 | |
Sai Cheemalapati | 974e170 | 2014-06-20 14:52:03 -0700 | [diff] [blame] | 15 | src_dirs := src $(contacts_common_dir)/src $(phone_common_dir)/src |
| 16 | res_dirs := res $(contacts_common_dir)/res $(phone_common_dir)/res |
Tingting Wang | 96101f6 | 2015-11-05 15:15:08 -0800 | [diff] [blame] | 17 | asset_dirs := $(contacts_common_dir)/assets |
Chiao Cheng | 3a8df86 | 2012-09-04 16:30:17 -0700 | [diff] [blame] | 18 | |
| 19 | LOCAL_SRC_FILES := $(call all-java-files-under, $(src_dirs)) |
Paul Soulos | ac9b316 | 2014-07-30 16:45:01 -0700 | [diff] [blame] | 20 | LOCAL_RESOURCE_DIR := $(addprefix $(LOCAL_PATH)/, $(res_dirs)) \ |
Wenyi Wang | 5fe9557 | 2016-02-10 16:20:40 -0800 | [diff] [blame] | 21 | $(support_library_root_dir)/v7/cardview/res |
Tingting Wang | 96101f6 | 2015-11-05 15:15:08 -0800 | [diff] [blame] | 22 | LOCAL_ASSET_DIR := $(addprefix $(LOCAL_PATH)/, $(asset_dirs)) |
Chiao Cheng | 3a8df86 | 2012-09-04 16:30:17 -0700 | [diff] [blame] | 23 | |
| 24 | LOCAL_AAPT_FLAGS := \ |
| 25 | --auto-add-overlay \ |
Sai Cheemalapati | 974e170 | 2014-06-20 14:52:03 -0700 | [diff] [blame] | 26 | --extra-packages com.android.contacts.common \ |
Paul Soulos | ac9b316 | 2014-07-30 16:45:01 -0700 | [diff] [blame] | 27 | --extra-packages com.android.phone.common \ |
| 28 | --extra-packages android.support.v7.cardview |
The Android Open Source Project | 7aa0e4c | 2009-03-03 19:32:21 -0800 | [diff] [blame] | 29 | |
Jeff Sharkey | cde7389 | 2011-04-07 00:48:02 -0700 | [diff] [blame] | 30 | LOCAL_STATIC_JAVA_LIBRARIES := \ |
Jeff Sharkey | cde7389 | 2011-04-07 00:48:02 -0700 | [diff] [blame] | 31 | com.android.vcard \ |
| 32 | android-common \ |
Katherine Kuan | 7970088 | 2011-06-14 17:40:33 -0700 | [diff] [blame] | 33 | guava \ |
| 34 | android-support-v13 \ |
Paul Soulos | ac9b316 | 2014-07-30 16:45:01 -0700 | [diff] [blame] | 35 | android-support-v7-cardview \ |
Brian Attwell | 31b2d42 | 2014-06-05 00:14:58 -0700 | [diff] [blame] | 36 | android-support-v7-palette \ |
Hugo Hudson | b002f51 | 2011-07-15 17:41:12 +0100 | [diff] [blame] | 37 | android-support-v4 \ |
Narayan Kamath | f9db0e3 | 2015-01-06 10:31:16 +0000 | [diff] [blame] | 38 | libphonenumber |
Hugo Hudson | b002f51 | 2011-07-15 17:41:12 +0100 | [diff] [blame] | 39 | |
The Android Open Source Project | 7aa0e4c | 2009-03-03 19:32:21 -0800 | [diff] [blame] | 40 | LOCAL_PACKAGE_NAME := Contacts |
| 41 | LOCAL_CERTIFICATE := shared |
Christopher Tate | 8d0a104 | 2013-05-10 14:09:52 -0700 | [diff] [blame] | 42 | LOCAL_PRIVILEGED_MODULE := true |
The Android Open Source Project | 7aa0e4c | 2009-03-03 19:32:21 -0800 | [diff] [blame] | 43 | |
Ying Wang | f261e80 | 2010-09-29 15:23:54 -0700 | [diff] [blame] | 44 | LOCAL_PROGUARD_FLAG_FILES := proguard.flags |
Daniel Lehmann | 69bfe08 | 2010-03-04 21:25:03 -0800 | [diff] [blame] | 45 | |
Brian Attwell | 3c4d041 | 2015-05-29 11:21:32 -0700 | [diff] [blame] | 46 | LOCAL_SDK_VERSION := current |
Walter Jang | 604bfe5 | 2016-04-15 11:08:09 -0700 | [diff] [blame] | 47 | LOCAL_MIN_SDK_VERSION := 21 |
Brian Attwell | 3c4d041 | 2015-05-29 11:21:32 -0700 | [diff] [blame] | 48 | |
The Android Open Source Project | 7aa0e4c | 2009-03-03 19:32:21 -0800 | [diff] [blame] | 49 | include $(BUILD_PACKAGE) |
| 50 | |
| 51 | # Use the folloing include to make our test apk. |
| 52 | include $(call all-makefiles-under,$(LOCAL_PATH)) |