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 \ |
| 19 | apptoolkit-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 \ |
Tony Mantler | 2407eb7 | 2017-11-29 14:58:45 -0800 | [diff] [blame^] | 23 | apptoolkit-lifecycle-runtime \ |
Adam Lesinski | 5ff3ad6 | 2016-04-13 20:30:45 -0700 | [diff] [blame] | 24 | SettingsLib |
| 25 | else |
Jason Monk | 2ba4ce6 | 2015-01-13 10:08:23 -0500 | [diff] [blame] | 26 | LOCAL_RESOURCE_DIR += $(call my-dir)/res |
Fan Zhang | dd1886a | 2017-07-07 14:38:57 -0700 | [diff] [blame] | 27 | |
| 28 | |
| 29 | ## Include transitive dependencies below |
| 30 | |
| 31 | # Include support-v7-appcompat, if not already included |
| 32 | ifeq (,$(findstring android-support-v7-appcompat,$(LOCAL_STATIC_JAVA_LIBRARIES))) |
| 33 | LOCAL_RESOURCE_DIR += frameworks/support/v7/appcompat/res |
| 34 | LOCAL_AAPT_FLAGS += --extra-packages android.support.v7.appcompat |
| 35 | LOCAL_STATIC_JAVA_LIBRARIES += android-support-v7-appcompat |
| 36 | endif |
| 37 | |
| 38 | # Include support-v7-recyclerview, if not already included |
| 39 | ifeq (,$(findstring android-support-v7-recyclerview,$(LOCAL_STATIC_JAVA_LIBRARIES))) |
| 40 | LOCAL_RESOURCE_DIR += frameworks/support/v7/recyclerview/res |
| 41 | LOCAL_AAPT_FLAGS += --extra-packages android.support.v7.recyclerview |
| 42 | LOCAL_STATIC_JAVA_LIBRARIES += android-support-v7-recyclerview |
| 43 | endif |
| 44 | |
| 45 | # Include android-support-v7-preference, if not already included |
| 46 | ifeq (,$(findstring android-support-v7-preference,$(LOCAL_STATIC_JAVA_LIBRARIES))) |
| 47 | LOCAL_RESOURCE_DIR += frameworks/support/v7/preference/res |
| 48 | LOCAL_AAPT_FLAGS += --extra-packages android.support.v7.preference |
| 49 | LOCAL_STATIC_JAVA_LIBRARIES += android-support-v7-preference |
| 50 | endif |
| 51 | |
| 52 | # Include android-support-v14-preference, if not already included |
| 53 | ifeq (,$(findstring android-support-v14-preference,$(LOCAL_STATIC_JAVA_LIBRARIES))) |
| 54 | LOCAL_RESOURCE_DIR += frameworks/support/v14/preference/res |
| 55 | LOCAL_AAPT_FLAGS += --extra-packages android.support.v14.preference |
| 56 | LOCAL_STATIC_JAVA_LIBRARIES += android-support-v14-preference |
| 57 | endif |
| 58 | |
Jason Monk | 2ba4ce6 | 2015-01-13 10:08:23 -0500 | [diff] [blame] | 59 | LOCAL_AAPT_FLAGS += --auto-add-overlay --extra-packages com.android.settingslib |
Fan Zhang | dd1886a | 2017-07-07 14:38:57 -0700 | [diff] [blame] | 60 | |
Adam Lesinski | 5ff3ad6 | 2016-04-13 20:30:45 -0700 | [diff] [blame] | 61 | LOCAL_STATIC_JAVA_LIBRARIES += \ |
| 62 | android-support-annotations \ |
| 63 | android-support-v4 \ |
Tony Mantler | 2407eb7 | 2017-11-29 14:58:45 -0800 | [diff] [blame^] | 64 | apptoolkit-lifecycle-runtime \ |
| 65 | apptoolkit-lifecycle-common \ |
Adam Lesinski | 5ff3ad6 | 2016-04-13 20:30:45 -0700 | [diff] [blame] | 66 | SettingsLib |
| 67 | endif |