blob: 3db446835f6bb04442838caaa9c2f380a4e2eeb2 [file] [log] [blame]
Juan Ezquerro LLanesbd134a72018-05-22 23:11:23 +02001#
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
16ifeq ($(LOCAL_USE_AAPT2),true)
17LOCAL_STATIC_ANDROID_LIBRARIES += \
Vachounet41e03b62019-09-11 10:40:12 +020018 androidx.annotation_annotation \
19 androidx.core_core \
20 androidx.preference_preference \
Juan Ezquerro LLanesbd134a72018-05-22 23:11:23 +020021 OmniLib
22else
23LOCAL_RESOURCE_DIR += $(call my-dir)/res
24
25
26## Include transitive dependencies below
27
Juan Ezquerro LLanesbd134a72018-05-22 23:11:23 +020028# Include android-support-v7-preference, if not already included
Vachounet41e03b62019-09-11 10:40:12 +020029ifeq (,$(findstring androidx-preference,$(LOCAL_STATIC_JAVA_LIBRARIES)))
30LOCAL_RESOURCE_DIR += frameworks/support/x/preference/res
31LOCAL_AAPT_FLAGS += --extra-packages androidx.preference
32LOCAL_STATIC_JAVA_LIBRARIES += androidx-preference
Juan Ezquerro LLanesbd134a72018-05-22 23:11:23 +020033endif
34
35# Include android-support-v14-preference, if not already included
Vachounet41e03b62019-09-11 10:40:12 +020036ifeq (,$(findstring androidx-preference,$(LOCAL_STATIC_JAVA_LIBRARIES)))
37LOCAL_RESOURCE_DIR += frameworks/support/x/preference/res
38LOCAL_AAPT_FLAGS += --extra-packages androidx.preference
39LOCAL_STATIC_JAVA_LIBRARIES += androidx-preference
Juan Ezquerro LLanesbd134a72018-05-22 23:11:23 +020040endif
41
Juan Ezquerro LLanes8b873622018-05-22 23:22:14 +020042LOCAL_AAPT_FLAGS += --auto-add-overlay --extra-packages com.android.omnilib
Juan Ezquerro LLanesbd134a72018-05-22 23:11:23 +020043
44LOCAL_STATIC_JAVA_LIBRARIES += \
Vachounet41e03b62019-09-11 10:40:12 +020045 androidx.annotation_annotation \
46 androidx.core_core \
Juan Ezquerro LLanesbd134a72018-05-22 23:11:23 +020047 OmniLib
48endif