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 | |
Sai Cheemalapati | 974e170 | 2014-06-20 14:52:03 -0700 | [diff] [blame] | 6 | phone_common_dir := ../PhoneCommon |
Chiao Cheng | 3a8df86 | 2012-09-04 16:30:17 -0700 | [diff] [blame] | 7 | |
Yorke Lee | d1c7813 | 2015-10-30 12:24:41 -0700 | [diff] [blame] | 8 | ifeq ($(TARGET_BUILD_APPS),) |
| 9 | support_library_root_dir := frameworks/support |
| 10 | else |
| 11 | support_library_root_dir := prebuilts/sdk/current/support |
| 12 | endif |
| 13 | |
Walter Jang | a6fb6d2 | 2016-08-10 09:37:52 -0700 | [diff] [blame] | 14 | src_dirs := src src-bind $(phone_common_dir)/src |
Arthur Wang | 3f6a244 | 2016-12-05 14:51:59 -0800 | [diff] [blame] | 15 | res_dirs := res $(phone_common_dir)/res |
Walter Jang | a6fb6d2 | 2016-08-10 09:37:52 -0700 | [diff] [blame] | 16 | asset_dirs := assets |
Chiao Cheng | 3a8df86 | 2012-09-04 16:30:17 -0700 | [diff] [blame] | 17 | |
| 18 | LOCAL_SRC_FILES := $(call all-java-files-under, $(src_dirs)) |
Paul Soulos | ac9b316 | 2014-07-30 16:45:01 -0700 | [diff] [blame] | 19 | LOCAL_RESOURCE_DIR := $(addprefix $(LOCAL_PATH)/, $(res_dirs)) \ |
Wenyi Wang | f568b30 | 2016-04-02 13:58:43 -0700 | [diff] [blame] | 20 | $(support_library_root_dir)/design/res \ |
Justin Klaassen | d573bf9 | 2017-02-27 09:57:08 -0800 | [diff] [blame] | 21 | $(support_library_root_dir)/transition/res \ |
Wenyi Wang | 3c3b6f1 | 2016-04-02 13:58:43 -0700 | [diff] [blame] | 22 | $(support_library_root_dir)/v7/appcompat/res \ |
Wenyi Wang | f568b30 | 2016-04-02 13:58:43 -0700 | [diff] [blame] | 23 | $(support_library_root_dir)/v7/cardview/res \ |
| 24 | $(support_library_root_dir)/v7/recyclerview/res |
Tingting Wang | 96101f6 | 2015-11-05 15:15:08 -0800 | [diff] [blame] | 25 | LOCAL_ASSET_DIR := $(addprefix $(LOCAL_PATH)/, $(asset_dirs)) |
Chiao Cheng | 3a8df86 | 2012-09-04 16:30:17 -0700 | [diff] [blame] | 26 | |
| 27 | LOCAL_AAPT_FLAGS := \ |
| 28 | --auto-add-overlay \ |
Sai Cheemalapati | 974e170 | 2014-06-20 14:52:03 -0700 | [diff] [blame] | 29 | --extra-packages com.android.contacts.common \ |
Paul Soulos | ac9b316 | 2014-07-30 16:45:01 -0700 | [diff] [blame] | 30 | --extra-packages com.android.phone.common \ |
Wenyi Wang | f568b30 | 2016-04-02 13:58:43 -0700 | [diff] [blame] | 31 | --extra-packages android.support.design \ |
Justin Klaassen | d573bf9 | 2017-02-27 09:57:08 -0800 | [diff] [blame] | 32 | --extra-packages android.support.transition \ |
Wenyi Wang | 3c3b6f1 | 2016-04-02 13:58:43 -0700 | [diff] [blame] | 33 | --extra-packages android.support.v7.appcompat \ |
Wenyi Wang | f568b30 | 2016-04-02 13:58:43 -0700 | [diff] [blame] | 34 | --extra-packages android.support.v7.cardview \ |
| 35 | --extra-packages android.support.v7.recyclerview |
The Android Open Source Project | 7aa0e4c | 2009-03-03 19:32:21 -0800 | [diff] [blame] | 36 | |
Jeff Sharkey | cde7389 | 2011-04-07 00:48:02 -0700 | [diff] [blame] | 37 | LOCAL_STATIC_JAVA_LIBRARIES := \ |
Jeff Sharkey | cde7389 | 2011-04-07 00:48:02 -0700 | [diff] [blame] | 38 | android-common \ |
Wenyi Wang | f568b30 | 2016-04-02 13:58:43 -0700 | [diff] [blame] | 39 | android-support-design \ |
Justin Klaassen | d573bf9 | 2017-02-27 09:57:08 -0800 | [diff] [blame] | 40 | android-support-transition \ |
Katherine Kuan | 7970088 | 2011-06-14 17:40:33 -0700 | [diff] [blame] | 41 | android-support-v13 \ |
Wenyi Wang | 3c3b6f1 | 2016-04-02 13:58:43 -0700 | [diff] [blame] | 42 | android-support-v7-appcompat \ |
Paul Soulos | ac9b316 | 2014-07-30 16:45:01 -0700 | [diff] [blame] | 43 | android-support-v7-cardview \ |
Wenyi Wang | f568b30 | 2016-04-02 13:58:43 -0700 | [diff] [blame] | 44 | android-support-v7-recyclerview \ |
Brian Attwell | 31b2d42 | 2014-06-05 00:14:58 -0700 | [diff] [blame] | 45 | android-support-v7-palette \ |
Hugo Hudson | b002f51 | 2011-07-15 17:41:12 +0100 | [diff] [blame] | 46 | android-support-v4 \ |
Tingting Wang | dce1e68 | 2016-07-28 10:06:29 -0700 | [diff] [blame] | 47 | com.android.vcard \ |
| 48 | guava \ |
Tingting Wang | 2fc12b1 | 2016-08-23 13:11:00 -0700 | [diff] [blame] | 49 | libphonenumber |
Hugo Hudson | b002f51 | 2011-07-15 17:41:12 +0100 | [diff] [blame] | 50 | |
The Android Open Source Project | 7aa0e4c | 2009-03-03 19:32:21 -0800 | [diff] [blame] | 51 | LOCAL_PACKAGE_NAME := Contacts |
| 52 | LOCAL_CERTIFICATE := shared |
Christopher Tate | 8d0a104 | 2013-05-10 14:09:52 -0700 | [diff] [blame] | 53 | LOCAL_PRIVILEGED_MODULE := true |
The Android Open Source Project | 7aa0e4c | 2009-03-03 19:32:21 -0800 | [diff] [blame] | 54 | |
Justin Klaassen | d573bf9 | 2017-02-27 09:57:08 -0800 | [diff] [blame] | 55 | LOCAL_PROGUARD_FLAG_FILES := \ |
| 56 | proguard.flags \ |
| 57 | ../../../frameworks/support/core-ui/proguard-rules.pro \ |
| 58 | ../../../frameworks/support/design/proguard-rules.pro \ |
| 59 | ../../../frameworks/support/v7/recyclerview/proguard-rules.pro |
Daniel Lehmann | 69bfe08 | 2010-03-04 21:25:03 -0800 | [diff] [blame] | 60 | |
Brian Attwell | 3c4d041 | 2015-05-29 11:21:32 -0700 | [diff] [blame] | 61 | LOCAL_SDK_VERSION := current |
Walter Jang | fdd3e58 | 2016-04-15 11:08:09 -0700 | [diff] [blame] | 62 | LOCAL_MIN_SDK_VERSION := 21 |
Brian Attwell | 3c4d041 | 2015-05-29 11:21:32 -0700 | [diff] [blame] | 63 | |
The Android Open Source Project | 7aa0e4c | 2009-03-03 19:32:21 -0800 | [diff] [blame] | 64 | include $(BUILD_PACKAGE) |
| 65 | |
Walter Jang | a6fb6d2 | 2016-08-10 09:37:52 -0700 | [diff] [blame] | 66 | # Use the following include to make our test apk. |
The Android Open Source Project | 7aa0e4c | 2009-03-03 19:32:21 -0800 | [diff] [blame] | 67 | include $(call all-makefiles-under,$(LOCAL_PATH)) |