1##
2# Build the platform version of setup wizard library.
3#
4
5LOCAL_PATH := $(call my-dir)
6include $(CLEAR_VARS)
7
8LOCAL_AAPT_FLAGS := --auto-add-overlay
9LOCAL_MANIFEST_FILE := main/AndroidManifest.xml
10LOCAL_MODULE := setup-wizard-lib
11LOCAL_RESOURCE_DIR := \
12    $(LOCAL_PATH)/main/res \
13    $(LOCAL_PATH)/platform/res
14LOCAL_SDK_VERSION := current
15LOCAL_SRC_FILES := $(call all-java-files-under, main/src platform/src)
16
17include $(BUILD_STATIC_JAVA_LIBRARY)
18
19##
20# Build eclair-mr1-compat library, which uses AppCompat support library to provide backwards
21# compatibility back to SDK v7.
22#
23
24include $(CLEAR_VARS)
25
26LOCAL_AAPT_FLAGS := --auto-add-overlay \
27    --extra-packages android.support.v7.appcompat
28LOCAL_MANIFEST_FILE := main/AndroidManifest.xml
29LOCAL_MODULE := setup-wizard-lib-eclair-mr1-compat
30LOCAL_RESOURCE_DIR := \
31    $(LOCAL_PATH)/main/res \
32    $(LOCAL_PATH)/eclair-mr1/res \
33    frameworks/support/v7/appcompat/res
34LOCAL_SDK_VERSION := current
35LOCAL_SRC_FILES := $(call all-java-files-under, main/src eclair-mr1/src)
36LOCAL_STATIC_JAVA_LIBRARIES := \
37    android-support-v4 \
38    android-support-v7-appcompat
39
40include $(BUILD_STATIC_JAVA_LIBRARY)
41
42
43##
44# Build the full-support library, which includes RecyclerView and any other support libraries as
45# they are integrated.
46#
47include $(CLEAR_VARS)
48
49LOCAL_AAPT_FLAGS := --auto-add-overlay \
50    --extra-packages android.support.v7.appcompat \
51    --extra-packages android.support.v7.recyclerview
52LOCAL_MANIFEST_FILE := main/AndroidManifest.xml
53LOCAL_MODULE := setup-wizard-lib-full-support
54LOCAL_RESOURCE_DIR := \
55    $(LOCAL_PATH)/main/res \
56    $(LOCAL_PATH)/eclair-mr1/res \
57    $(LOCAL_PATH)/full-support/res \
58    frameworks/support/v7/appcompat/res \
59    frameworks/support/v7/recyclerview/res
60LOCAL_SDK_VERSION := current
61LOCAL_SRC_FILES := $(call all-java-files-under, main/src eclair-mr1/src full-support/src)
62LOCAL_STATIC_JAVA_LIBRARIES := \
63    android-support-v4 \
64    android-support-v7-appcompat \
65    android-support-v7-recyclerview
66
67include $(BUILD_STATIC_JAVA_LIBRARY)
68