-
Notifications
You must be signed in to change notification settings - Fork 3
/
common.mk
48 lines (41 loc) · 1.41 KB
/
common.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#
# Include this make file to build your application against this module.
#
# Make sure to include it after you've set all your desired LOCAL variables.
# Note that you must explicitly set your LOCAL_RESOURCE_DIR before including
# this file.
#
# For example:
#
# LOCAL_RESOURCE_DIR := \
# $(LOCAL_PATH)/res
#
# include packages/apps/OmniLib/common.mk
#
ifeq ($(LOCAL_USE_AAPT2),true)
LOCAL_STATIC_ANDROID_LIBRARIES += \
androidx.annotation_annotation \
androidx.core_core \
androidx.preference_preference \
OmniLib
else
LOCAL_RESOURCE_DIR += $(call my-dir)/res
## Include transitive dependencies below
# Include android-support-v7-preference, if not already included
ifeq (,$(findstring androidx-preference,$(LOCAL_STATIC_JAVA_LIBRARIES)))
LOCAL_RESOURCE_DIR += frameworks/support/x/preference/res
LOCAL_AAPT_FLAGS += --extra-packages androidx.preference
LOCAL_STATIC_JAVA_LIBRARIES += androidx-preference
endif
# Include android-support-v14-preference, if not already included
ifeq (,$(findstring androidx-preference,$(LOCAL_STATIC_JAVA_LIBRARIES)))
LOCAL_RESOURCE_DIR += frameworks/support/x/preference/res
LOCAL_AAPT_FLAGS += --extra-packages androidx.preference
LOCAL_STATIC_JAVA_LIBRARIES += androidx-preference
endif
LOCAL_AAPT_FLAGS += --auto-add-overlay --extra-packages com.android.omnilib
LOCAL_STATIC_JAVA_LIBRARIES += \
androidx.annotation_annotation \
androidx.core_core \
OmniLib
endif