blob: 7e41084617175522e5c86a77ac767c3d3adf992c [file] [log] [blame]
Jason Monkd6f1ba62018-08-16 15:00:07 -05001#
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 vendor/support/common.mk
14#
15
16ifeq ($(LOCAL_USE_AAPT2),true)
17LOCAL_STATIC_ANDROID_LIBRARIES += \
18 android-support-annotations \
19 android-support-v4 \
20 VendorSupportLib
21else
22LOCAL_RESOURCE_DIR += $(call my-dir)/res
23
24
25## Include transitive dependencies below
26
27# Include support-v7-appcompat, if not already included
28ifeq (,$(findstring android-support-v7-appcompat,$(LOCAL_STATIC_JAVA_LIBRARIES)))
29LOCAL_RESOURCE_DIR += frameworks/support/v7/appcompat/res
30LOCAL_AAPT_FLAGS += --extra-packages android.support.v7.appcompat
31LOCAL_STATIC_JAVA_LIBRARIES += android-support-v7-appcompat
32endif
33
34# Include support-v7-recyclerview, if not already included
35ifeq (,$(findstring android-support-v7-recyclerview,$(LOCAL_STATIC_JAVA_LIBRARIES)))
36LOCAL_RESOURCE_DIR += frameworks/support/v7/recyclerview/res
37LOCAL_AAPT_FLAGS += --extra-packages android.support.v7.recyclerview
38LOCAL_STATIC_JAVA_LIBRARIES += android-support-v7-recyclerview
39endif
40
41# Include android-support-v7-preference, if not already included
42ifeq (,$(findstring android-support-v7-preference,$(LOCAL_STATIC_JAVA_LIBRARIES)))
43LOCAL_RESOURCE_DIR += frameworks/support/v7/preference/res
44LOCAL_AAPT_FLAGS += --extra-packages android.support.v7.preference
45LOCAL_STATIC_JAVA_LIBRARIES += android-support-v7-preference
46endif
47
48# Include android-support-v14-preference, if not already included
49ifeq (,$(findstring android-support-v14-preference,$(LOCAL_STATIC_JAVA_LIBRARIES)))
50LOCAL_RESOURCE_DIR += frameworks/support/v14/preference/res
51LOCAL_AAPT_FLAGS += --extra-packages android.support.v14.preference
52LOCAL_STATIC_JAVA_LIBRARIES += android-support-v14-preference
53endif
54
55LOCAL_AAPT_FLAGS += --auto-add-overlay --extra-packages com.havoc.support
56
57LOCAL_STATIC_JAVA_LIBRARIES += \
58 android-support-annotations \
59 android-support-v4 \
60 VendorSupportLib
61endif