4860e4ee48
Test: make setup-wizard-lib Bug: 76692459 Change-Id: I40171e973d442b1a1815e9e7d7c2cc984cb38bac
52 lines
1.3 KiB
Makefile
52 lines
1.3 KiB
Makefile
##
|
|
# Build the platform version of setup wizard library.
|
|
#
|
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_USE_AAPT2 := true
|
|
LOCAL_JAVA_LIBRARIES := \
|
|
androidx.annotation_annotation
|
|
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_SRC_FILES := $(call all-java-files-under, main/src platform/src)
|
|
|
|
include $(BUILD_STATIC_JAVA_LIBRARY)
|
|
|
|
|
|
##
|
|
# Build gingerbread-compat library, which uses AppCompat support library to provide backwards
|
|
# compatibility back to SDK v9.
|
|
#
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_USE_AAPT2 := true
|
|
|
|
LOCAL_AAPT2_ONLY := true
|
|
|
|
LOCAL_MANIFEST_FILE := main/AndroidManifest.xml
|
|
LOCAL_MODULE := setup-wizard-lib-gingerbread-compat
|
|
LOCAL_RESOURCE_DIR := \
|
|
$(LOCAL_PATH)/main/res \
|
|
$(LOCAL_PATH)/gingerbread/res \
|
|
$(LOCAL_PATH)/recyclerview/res
|
|
LOCAL_SDK_VERSION := current
|
|
LOCAL_SRC_FILES := $(call all-java-files-under, main/src gingerbread/src recyclerview/src)
|
|
|
|
LOCAL_JAVA_LIBRARIES := \
|
|
androidx.annotation_annotation
|
|
|
|
LOCAL_SHARED_ANDROID_LIBRARIES := \
|
|
androidx.core_core \
|
|
androidx.legacy_legacy-support-core-ui \
|
|
androidx.appcompat_appcompat \
|
|
androidx.recyclerview_recyclerview
|
|
|
|
include $(BUILD_STATIC_JAVA_LIBRARY)
|