blob: ebd6aa04dabcc34d6e4e7b103664ca257c9370ce [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 += \
18 android-support-annotations \
19 android-support-v4 \
20 OmniLib
21else
22LOCAL_RESOURCE_DIR += $(call my-dir)/res
23
24
25## Include transitive dependencies below
26
Juan Ezquerro LLanesbd134a72018-05-22 23:11:23 +020027# Include android-support-v7-preference, if not already included
28ifeq (,$(findstring android-support-v7-preference,$(LOCAL_STATIC_JAVA_LIBRARIES)))
29LOCAL_RESOURCE_DIR += frameworks/support/v7/preference/res
30LOCAL_AAPT_FLAGS += --extra-packages android.support.v7.preference
31LOCAL_STATIC_JAVA_LIBRARIES += android-support-v7-preference
32endif
33
34# Include android-support-v14-preference, if not already included
35ifeq (,$(findstring android-support-v14-preference,$(LOCAL_STATIC_JAVA_LIBRARIES)))
36LOCAL_RESOURCE_DIR += frameworks/support/v14/preference/res
37LOCAL_AAPT_FLAGS += --extra-packages android.support.v14.preference
38LOCAL_STATIC_JAVA_LIBRARIES += android-support-v14-preference
39endif
40
Juan Ezquerro LLanes8b873622018-05-22 23:22:14 +020041LOCAL_AAPT_FLAGS += --auto-add-overlay --extra-packages com.android.omnilib
Juan Ezquerro LLanesbd134a72018-05-22 23:11:23 +020042
43LOCAL_STATIC_JAVA_LIBRARIES += \
44 android-support-annotations \
45 android-support-v4 \
46 OmniLib
47endif