Juan Ezquerro LLanes | bd134a7 | 2018-05-22 23:11:23 +0200 | [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 packages/apps/OmniLib/common.mk |
| 14 | # |
| 15 | |
| 16 | ifeq ($(LOCAL_USE_AAPT2),true) |
| 17 | LOCAL_STATIC_ANDROID_LIBRARIES += \ |
Vachounet | 41e03b6 | 2019-09-11 10:40:12 +0200 | [diff] [blame] | 18 | androidx.annotation_annotation \ |
| 19 | androidx.core_core \ |
| 20 | androidx.preference_preference \ |
Juan Ezquerro LLanes | bd134a7 | 2018-05-22 23:11:23 +0200 | [diff] [blame] | 21 | OmniLib |
| 22 | else |
| 23 | LOCAL_RESOURCE_DIR += $(call my-dir)/res |
| 24 | |
| 25 | |
| 26 | ## Include transitive dependencies below |
| 27 | |
Juan Ezquerro LLanes | bd134a7 | 2018-05-22 23:11:23 +0200 | [diff] [blame] | 28 | # Include android-support-v7-preference, if not already included |
Vachounet | 41e03b6 | 2019-09-11 10:40:12 +0200 | [diff] [blame] | 29 | ifeq (,$(findstring androidx-preference,$(LOCAL_STATIC_JAVA_LIBRARIES))) |
| 30 | LOCAL_RESOURCE_DIR += frameworks/support/x/preference/res |
| 31 | LOCAL_AAPT_FLAGS += --extra-packages androidx.preference |
| 32 | LOCAL_STATIC_JAVA_LIBRARIES += androidx-preference |
Juan Ezquerro LLanes | bd134a7 | 2018-05-22 23:11:23 +0200 | [diff] [blame] | 33 | endif |
| 34 | |
| 35 | # Include android-support-v14-preference, if not already included |
Vachounet | 41e03b6 | 2019-09-11 10:40:12 +0200 | [diff] [blame] | 36 | ifeq (,$(findstring androidx-preference,$(LOCAL_STATIC_JAVA_LIBRARIES))) |
| 37 | LOCAL_RESOURCE_DIR += frameworks/support/x/preference/res |
| 38 | LOCAL_AAPT_FLAGS += --extra-packages androidx.preference |
| 39 | LOCAL_STATIC_JAVA_LIBRARIES += androidx-preference |
Juan Ezquerro LLanes | bd134a7 | 2018-05-22 23:11:23 +0200 | [diff] [blame] | 40 | endif |
| 41 | |
Juan Ezquerro LLanes | 8b87362 | 2018-05-22 23:22:14 +0200 | [diff] [blame] | 42 | LOCAL_AAPT_FLAGS += --auto-add-overlay --extra-packages com.android.omnilib |
Juan Ezquerro LLanes | bd134a7 | 2018-05-22 23:11:23 +0200 | [diff] [blame] | 43 | |
| 44 | LOCAL_STATIC_JAVA_LIBRARIES += \ |
Vachounet | 41e03b6 | 2019-09-11 10:40:12 +0200 | [diff] [blame] | 45 | androidx.annotation_annotation \ |
| 46 | androidx.core_core \ |
Juan Ezquerro LLanes | bd134a7 | 2018-05-22 23:11:23 +0200 | [diff] [blame] | 47 | OmniLib |
| 48 | endif |