Convert frameworks/opt/setupwizard to Android.bp
See build/soong/README.md for more information. Test: m checkbuild Change-Id: I91ea161e67e416811d90854a91016c70dafb8ffb
This commit is contained in:
parent
ce296b0e2f
commit
d901a55fba
51
library/Android.bp
Normal file
51
library/Android.bp
Normal file
|
@ -0,0 +1,51 @@
|
||||||
|
//
|
||||||
|
// Build the platform version of setup wizard library.
|
||||||
|
//
|
||||||
|
|
||||||
|
android_library {
|
||||||
|
name: "setup-wizard-lib",
|
||||||
|
|
||||||
|
libs: ["androidx.annotation_annotation"],
|
||||||
|
manifest: "main/AndroidManifest.xml",
|
||||||
|
resource_dirs: [
|
||||||
|
"main/res",
|
||||||
|
"platform/res",
|
||||||
|
],
|
||||||
|
sdk_version: "current",
|
||||||
|
srcs: [
|
||||||
|
"main/src/**/*.java",
|
||||||
|
"platform/src/**/*.java",
|
||||||
|
],
|
||||||
|
min_sdk_version: "23",
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// Build gingerbread-compat library, which uses AppCompat support library to provide backwards
|
||||||
|
// compatibility back to SDK v9.
|
||||||
|
//
|
||||||
|
|
||||||
|
android_library {
|
||||||
|
name: "setup-wizard-lib-gingerbread-compat",
|
||||||
|
manifest: "main/AndroidManifest.xml",
|
||||||
|
resource_dirs: [
|
||||||
|
"main/res",
|
||||||
|
"gingerbread/res",
|
||||||
|
"recyclerview/res",
|
||||||
|
],
|
||||||
|
sdk_version: "current",
|
||||||
|
srcs: [
|
||||||
|
"main/src/**/*.java",
|
||||||
|
"gingerbread/src/**/*.java",
|
||||||
|
"recyclerview/src/**/*.java",
|
||||||
|
],
|
||||||
|
|
||||||
|
libs: [
|
||||||
|
"androidx.annotation_annotation",
|
||||||
|
"androidx.core_core",
|
||||||
|
"androidx.legacy_legacy-support-core-ui",
|
||||||
|
"androidx.appcompat_appcompat",
|
||||||
|
"androidx.recyclerview_recyclerview",
|
||||||
|
],
|
||||||
|
|
||||||
|
min_sdk_version: "14",
|
||||||
|
}
|
|
@ -1,54 +0,0 @@
|
||||||
##
|
|
||||||
# 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)
|
|
||||||
LOCAL_MIN_SDK_VERSION := 23
|
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
LOCAL_MIN_SDK_VERSION := 14
|
|
||||||
|
|
||||||
include $(BUILD_STATIC_JAVA_LIBRARY)
|
|
7
navigationbar/Android.bp
Normal file
7
navigationbar/Android.bp
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
android_library {
|
||||||
|
name: "setup-wizard-navbar",
|
||||||
|
|
||||||
|
sdk_version: "current",
|
||||||
|
resource_dirs: ["res"],
|
||||||
|
srcs: ["src/**/*.java"],
|
||||||
|
}
|
|
@ -1,9 +0,0 @@
|
||||||
LOCAL_PATH := $(call my-dir)
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
|
|
||||||
LOCAL_SDK_VERSION := current
|
|
||||||
LOCAL_MODULE := setup-wizard-navbar
|
|
||||||
LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
|
|
||||||
LOCAL_SRC_FILES := $(call all-java-files-under, src)
|
|
||||||
|
|
||||||
include $(BUILD_STATIC_JAVA_LIBRARY)
|
|
Loading…
Reference in a new issue