SetupWizardLibrary/library/Android.mk
Maurice Lam 4482fde98e [SuwLib] Add support annotations
Add support annotations dependency, and add the annotations in where
suitable.

Test: Manual. "Inspect code" in Android studio no longer shows
      nullability errors. Existing automated tests pass
Bug: 21559567
Change-Id: I47b1072c9b2a9e032318df49db6b86b6af8d206e
2016-11-29 18:55:01 -08:00

66 lines
1.8 KiB
Makefile

##
# Build the platform version of setup wizard library.
#
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_USE_AAPT2 := true
LOCAL_MANIFEST_FILE := main/AndroidManifest.xml
LOCAL_MODULE := setup-wizard-lib
LOCAL_RESOURCE_DIR := \
$(LOCAL_PATH)/main/res \
$(LOCAL_PATH)/platform/res
LOCAL_SDK_VERSION := current
LOCAL_SHARED_ANDROID_LIBRARIES := \
android-support-annotations
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)
LOCAL_USE_AAPT2 := true
LOCAL_MANIFEST_FILE := main/AndroidManifest.xml
LOCAL_MODULE := setup-wizard-lib-eclair-mr1-compat
LOCAL_RESOURCE_DIR := \
$(LOCAL_PATH)/main/res \
$(LOCAL_PATH)/eclair-mr1/res
LOCAL_SDK_VERSION := current
LOCAL_SRC_FILES := $(call all-java-files-under, main/src eclair-mr1/src)
LOCAL_SHARED_ANDROID_LIBRARIES := \
android-support-annotations \
android-support-v4 \
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_USE_AAPT2 := true
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
LOCAL_SDK_VERSION := current
LOCAL_SRC_FILES := $(call all-java-files-under, main/src eclair-mr1/src full-support/src)
LOCAL_SHARED_ANDROID_LIBRARIES := \
android-support-annotations \
android-support-v4 \
android-support-v7-appcompat \
android-support-v7-recyclerview
include $(BUILD_STATIC_JAVA_LIBRARY)