14e4550d82a0eb638ca62885466a954506254df74Maurice Lam#
24e4550d82a0eb638ca62885466a954506254df74Maurice Lam# Include this make file to build your application against this module.
34e4550d82a0eb638ca62885466a954506254df74Maurice Lam#
44e4550d82a0eb638ca62885466a954506254df74Maurice Lam# Make sure to include it after you've set all your desired LOCAL variables.
54e4550d82a0eb638ca62885466a954506254df74Maurice Lam# Note that you must explicitly set your LOCAL_RESOURCE_DIR before including this file.
64e4550d82a0eb638ca62885466a954506254df74Maurice Lam#
74e4550d82a0eb638ca62885466a954506254df74Maurice Lam# For example:
84e4550d82a0eb638ca62885466a954506254df74Maurice Lam#
94e4550d82a0eb638ca62885466a954506254df74Maurice Lam#   LOCAL_RESOURCE_DIR := \
104e4550d82a0eb638ca62885466a954506254df74Maurice Lam#        $(LOCAL_PATH)/res
114e4550d82a0eb638ca62885466a954506254df74Maurice Lam#
124e4550d82a0eb638ca62885466a954506254df74Maurice Lam#   include frameworks/opt/setupwizard/library/common-eclair-mr1.mk
134e4550d82a0eb638ca62885466a954506254df74Maurice Lam#
144e4550d82a0eb638ca62885466a954506254df74Maurice Lam
1524f1d0b9512dfc20bb1814a4e63f976a59f3ad99Maurice Lam# Check that LOCAL_RESOURCE_DIR is defined
1624f1d0b9512dfc20bb1814a4e63f976a59f3ad99Maurice Lamifeq (,$(LOCAL_RESOURCE_DIR))
1724f1d0b9512dfc20bb1814a4e63f976a59f3ad99Maurice Lam$(error LOCAL_RESOURCE_DIR must be defined)
1824f1d0b9512dfc20bb1814a4e63f976a59f3ad99Maurice Lamendif
1924f1d0b9512dfc20bb1814a4e63f976a59f3ad99Maurice Lam
2024f1d0b9512dfc20bb1814a4e63f976a59f3ad99Maurice Lam# Add --auto-add-overlay flag if not present
2124f1d0b9512dfc20bb1814a4e63f976a59f3ad99Maurice Lamifeq (,$(findstring --auto-add-overlay, $(LOCAL_AAPT_FLAGS)))
2224f1d0b9512dfc20bb1814a4e63f976a59f3ad99Maurice LamLOCAL_AAPT_FLAGS += --auto-add-overlay
2324f1d0b9512dfc20bb1814a4e63f976a59f3ad99Maurice Lamendif
2424f1d0b9512dfc20bb1814a4e63f976a59f3ad99Maurice Lam
2524f1d0b9512dfc20bb1814a4e63f976a59f3ad99Maurice Lam# Include setup wizard library, if not already included
2624f1d0b9512dfc20bb1814a4e63f976a59f3ad99Maurice Lamifeq (,$(findstring setup-wizard-lib-eclair-mr1-compat,$(LOCAL_STATIC_JAVA_LIBRARIES)))
274e4550d82a0eb638ca62885466a954506254df74Maurice LamLOCAL_RESOURCE_DIR += \
284e4550d82a0eb638ca62885466a954506254df74Maurice Lam    $(call my-dir)/main/res \
294e4550d82a0eb638ca62885466a954506254df74Maurice Lam    $(call my-dir)/eclair-mr1/res
3024f1d0b9512dfc20bb1814a4e63f976a59f3ad99Maurice LamLOCAL_AAPT_FLAGS += --extra-packages com.android.setupwizardlib
314e4550d82a0eb638ca62885466a954506254df74Maurice LamLOCAL_STATIC_JAVA_LIBRARIES += setup-wizard-lib-eclair-mr1-compat
3224f1d0b9512dfc20bb1814a4e63f976a59f3ad99Maurice Lamendif
3324f1d0b9512dfc20bb1814a4e63f976a59f3ad99Maurice Lam
3424f1d0b9512dfc20bb1814a4e63f976a59f3ad99Maurice Lam## Include transitive dependencies below
3524f1d0b9512dfc20bb1814a4e63f976a59f3ad99Maurice Lam
3624f1d0b9512dfc20bb1814a4e63f976a59f3ad99Maurice Lam# Include support-v7-appcompat, if not already included
3724f1d0b9512dfc20bb1814a4e63f976a59f3ad99Maurice Lamifeq (,$(findstring android-support-v7-appcompat,$(LOCAL_STATIC_JAVA_LIBRARIES)))
3824f1d0b9512dfc20bb1814a4e63f976a59f3ad99Maurice LamLOCAL_RESOURCE_DIR += frameworks/support/v7/appcompat/res
3924f1d0b9512dfc20bb1814a4e63f976a59f3ad99Maurice LamLOCAL_AAPT_FLAGS += --extra-packages android.support.v7.appcompat
4024f1d0b9512dfc20bb1814a4e63f976a59f3ad99Maurice LamLOCAL_STATIC_JAVA_LIBRARIES += android-support-v7-appcompat
4124f1d0b9512dfc20bb1814a4e63f976a59f3ad99Maurice Lamendif
42