diff options
author | Maurice Lam <yukl@google.com> | 2015-09-14 10:33:48 -0700 |
---|---|---|
committer | Maurice Lam <yukl@google.com> | 2015-09-15 14:30:22 -0700 |
commit | 24f1d0b9512dfc20bb1814a4e63f976a59f3ad99 (patch) | |
tree | 20d92b6ee9a0163f9d7e24b9a8655565af56da34 /library/Android.mk | |
parent | 95abb283deb209532bbbae4ade3f5cc149a548a6 (diff) | |
download | setupwizard-24f1d0b9512dfc20bb1814a4e63f976a59f3ad99.tar.gz |
[SuwLib] Add RecyclerView templates
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
Diffstat (limited to 'library/Android.mk')
-rw-r--r-- | library/Android.mk | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/library/Android.mk b/library/Android.mk index 0ece411..bcbd0e9 100644 --- a/library/Android.mk +++ b/library/Android.mk @@ -1,3 +1,7 @@ +## +# Build the platform version of setup wizard library. +# + LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) @@ -12,6 +16,10 @@ LOCAL_SRC_FILES := $(call all-java-files-under, main/src platform/src) include $(BUILD_STATIC_JAVA_LIBRARY) +## +# Build eclair-mr1-compat library, which uses AppCompat support library to provide backwards +# compatibility back to SDK v7. +# include $(CLEAR_VARS) @@ -30,3 +38,30 @@ LOCAL_STATIC_JAVA_LIBRARIES := \ android-support-v7-appcompat include $(BUILD_STATIC_JAVA_LIBRARY) + + +## +# Build the full-support library, which includes RecyclerView and any other support libraries as +# they are integrated. +# +include $(CLEAR_VARS) + +LOCAL_AAPT_FLAGS := --auto-add-overlay \ + --extra-packages android.support.v7.appcompat \ + --extra-packages android.support.v7.recyclerview +LOCAL_MANIFEST_FILE := main/AndroidManifest.xml +LOCAL_MODULE := setup-wizard-lib-full-support +LOCAL_RESOURCE_DIR := \ + $(LOCAL_PATH)/main/res \ + $(LOCAL_PATH)/eclair-mr1/res \ + $(LOCAL_PATH)/full-support/res \ + frameworks/support/v7/appcompat/res \ + frameworks/support/v7/recyclerview/res +LOCAL_SDK_VERSION := current +LOCAL_SRC_FILES := $(call all-java-files-under, main/src eclair-mr1/src) +LOCAL_STATIC_JAVA_LIBRARIES := \ + android-support-v4 \ + android-support-v7-appcompat \ + android-support-v7-recyclerview + +include $(BUILD_STATIC_JAVA_LIBRARY) |