24f1d0b951
Add new "full-support" build variant that includes RecyclerView as one of its dependencies, and add RecyclerView templates to the library. Bug: 24103690 Change-Id: I01a2b7ba3f9ff1d30a9b8aa9061ffe2a42eed968
50 lines
1.7 KiB
Makefile
50 lines
1.7 KiB
Makefile
#
|
|
# 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 frameworks/opt/setupwizard/library/common-eclair-mr1.mk
|
|
#
|
|
|
|
# Check that LOCAL_RESOURCE_DIR is defined
|
|
ifeq (,$(LOCAL_RESOURCE_DIR))
|
|
$(error LOCAL_RESOURCE_DIR must be defined)
|
|
endif
|
|
|
|
# Add --auto-add-overlay flag if not present
|
|
ifeq (,$(findstring --auto-add-overlay, $(LOCAL_AAPT_FLAGS)))
|
|
LOCAL_AAPT_FLAGS += --auto-add-overlay
|
|
endif
|
|
|
|
# Include setup wizard library, if not already included
|
|
ifeq (,$(findstring setup-wizard-lib-full-support,$(LOCAL_STATIC_JAVA_LIBRARIES)))
|
|
LOCAL_RESOURCE_DIR += \
|
|
$(call my-dir)/main/res \
|
|
$(call my-dir)/eclair-mr1/res \
|
|
$(call my-dir)/full-support/res
|
|
LOCAL_AAPT_FLAGS += --extra-packages com.android.setupwizardlib
|
|
LOCAL_STATIC_JAVA_LIBRARIES += setup-wizard-lib-full-support
|
|
endif
|
|
|
|
## Include transitive dependencies below
|
|
|
|
# Include support-v7-appcompat, if not already included
|
|
ifeq (,$(findstring android-support-v7-appcompat,$(LOCAL_STATIC_JAVA_LIBRARIES)))
|
|
LOCAL_RESOURCE_DIR += frameworks/support/v7/appcompat/res
|
|
LOCAL_AAPT_FLAGS += --extra-packages android.support.v7.appcompat
|
|
LOCAL_STATIC_JAVA_LIBRARIES += android-support-v7-appcompat
|
|
endif
|
|
|
|
# Include support-v7-recyclerview, if not already included
|
|
ifeq (,$(findstring android-support-v7-recyclerview,$(LOCAL_STATIC_JAVA_LIBRARIES)))
|
|
LOCAL_RESOURCE_DIR += frameworks/support/v7/recyclerview/res
|
|
LOCAL_AAPT_FLAGS += --extra-packages android.support.v7.recyclerview
|
|
LOCAL_STATIC_JAVA_LIBRARIES += android-support-v7-recyclerview
|
|
endif
|