Jason Monk | 2ba4ce6 | 2015-01-13 10:08:23 -0500 | [diff] [blame] | 1 | # |
| 2 | # Include this make file to build your application against this module. |
| 3 | # |
| 4 | # Make sure to include it after you've set all your desired LOCAL variables. |
| 5 | # Note that you must explicitly set your LOCAL_RESOURCE_DIR before including |
| 6 | # this file. |
| 7 | # |
| 8 | # For example: |
| 9 | # |
| 10 | # LOCAL_RESOURCE_DIR := \ |
| 11 | # $(LOCAL_PATH)/res |
| 12 | # |
| 13 | # include frameworks/base/packages/SettingsLib/common.mk |
| 14 | # |
| 15 | |
Adam Lesinski | 5ff3ad6 | 2016-04-13 20:30:45 -0700 | [diff] [blame] | 16 | ifeq ($(LOCAL_USE_AAPT2),true) |
Aurimas Liutikas | 12a37963 | 2017-11-14 01:41:39 +0000 | [diff] [blame] | 17 | LOCAL_STATIC_JAVA_LIBRARIES += \ |
Tony Mantler | 2407eb7 | 2017-11-29 14:58:45 -0800 | [diff] [blame] | 18 | android-support-annotations \ |
Alan Viverette | 7c9f00f | 2018-01-30 15:15:18 -0500 | [diff] [blame] | 19 | android-arch-lifecycle-common |
Aurimas Liutikas | 12a37963 | 2017-11-14 01:41:39 +0000 | [diff] [blame] | 20 | |
Adam Lesinski | 5ff3ad6 | 2016-04-13 20:30:45 -0700 | [diff] [blame] | 21 | LOCAL_STATIC_ANDROID_LIBRARIES += \ |
Adam Lesinski | 5ff3ad6 | 2016-04-13 20:30:45 -0700 | [diff] [blame] | 22 | android-support-v4 \ |
Alan Viverette | 7c9f00f | 2018-01-30 15:15:18 -0500 | [diff] [blame] | 23 | android-arch-lifecycle-runtime \ |
Aurimas Liutikas | 41df109 | 2017-12-05 16:20:43 -0800 | [diff] [blame] | 24 | android-support-v7-recyclerview \ |
| 25 | android-support-v7-preference \ |
| 26 | android-support-v7-appcompat \ |
| 27 | android-support-v14-preference \ |
Adam Lesinski | 5ff3ad6 | 2016-04-13 20:30:45 -0700 | [diff] [blame] | 28 | SettingsLib |
| 29 | else |
Jason Monk | 2ba4ce6 | 2015-01-13 10:08:23 -0500 | [diff] [blame] | 30 | LOCAL_RESOURCE_DIR += $(call my-dir)/res |
Fan Zhang | dd1886a | 2017-07-07 14:38:57 -0700 | [diff] [blame] | 31 | |
| 32 | |
| 33 | ## Include transitive dependencies below |
| 34 | |
| 35 | # Include support-v7-appcompat, if not already included |
| 36 | ifeq (,$(findstring android-support-v7-appcompat,$(LOCAL_STATIC_JAVA_LIBRARIES))) |
| 37 | LOCAL_RESOURCE_DIR += frameworks/support/v7/appcompat/res |
| 38 | LOCAL_AAPT_FLAGS += --extra-packages android.support.v7.appcompat |
| 39 | LOCAL_STATIC_JAVA_LIBRARIES += android-support-v7-appcompat |
| 40 | endif |
| 41 | |
| 42 | # Include support-v7-recyclerview, if not already included |
| 43 | ifeq (,$(findstring android-support-v7-recyclerview,$(LOCAL_STATIC_JAVA_LIBRARIES))) |
| 44 | LOCAL_RESOURCE_DIR += frameworks/support/v7/recyclerview/res |
| 45 | LOCAL_AAPT_FLAGS += --extra-packages android.support.v7.recyclerview |
| 46 | LOCAL_STATIC_JAVA_LIBRARIES += android-support-v7-recyclerview |
| 47 | endif |
| 48 | |
| 49 | # Include android-support-v7-preference, if not already included |
| 50 | ifeq (,$(findstring android-support-v7-preference,$(LOCAL_STATIC_JAVA_LIBRARIES))) |
| 51 | LOCAL_RESOURCE_DIR += frameworks/support/v7/preference/res |
| 52 | LOCAL_AAPT_FLAGS += --extra-packages android.support.v7.preference |
| 53 | LOCAL_STATIC_JAVA_LIBRARIES += android-support-v7-preference |
| 54 | endif |
| 55 | |
| 56 | # Include android-support-v14-preference, if not already included |
| 57 | ifeq (,$(findstring android-support-v14-preference,$(LOCAL_STATIC_JAVA_LIBRARIES))) |
Fan Zhang | dd1886a | 2017-07-07 14:38:57 -0700 | [diff] [blame] | 58 | LOCAL_AAPT_FLAGS += --extra-packages android.support.v14.preference |
| 59 | LOCAL_STATIC_JAVA_LIBRARIES += android-support-v14-preference |
| 60 | endif |
| 61 | |
Jason Monk | 2ba4ce6 | 2015-01-13 10:08:23 -0500 | [diff] [blame] | 62 | LOCAL_AAPT_FLAGS += --auto-add-overlay --extra-packages com.android.settingslib |
Fan Zhang | dd1886a | 2017-07-07 14:38:57 -0700 | [diff] [blame] | 63 | |
Adam Lesinski | 5ff3ad6 | 2016-04-13 20:30:45 -0700 | [diff] [blame] | 64 | LOCAL_STATIC_JAVA_LIBRARIES += \ |
| 65 | android-support-annotations \ |
| 66 | android-support-v4 \ |
Aurimas Liutikas | a43e216 | 2018-01-26 23:13:54 +0000 | [diff] [blame] | 67 | android-arch-lifecycle-runtime \ |
| 68 | android-arch-lifecycle-common \ |
Adam Lesinski | 5ff3ad6 | 2016-04-13 20:30:45 -0700 | [diff] [blame] | 69 | SettingsLib |
| 70 | endif |