Add support for sdk extensions in prebuilt_apis
This makes it possible to pass an extensions_dir containing finalized module APIs to prebuilt_apis. The extension versions are compared to the api level versions to figure out what the "latest" finalized API is for each module. This is done using the base_sdk_extension_version, such that any extension higher than than base_sdk_extension_version is assumed to be finalized after any of the existing api level versions. Bug: 220086085 Test: prebuilt_apis_test.go Test: existing module in prebuilts/sdk Change-Id: Ib792f84202d436f594ba5e8716c6a187f9cd60dc
This commit is contained in:
@@ -23,6 +23,7 @@ TOP=$(pwd)
|
||||
|
||||
source build/envsetup.sh
|
||||
PLATFORM_SDK_VERSION=$(get_build_var PLATFORM_SDK_VERSION)
|
||||
PLATFORM_BASE_SDK_EXTENSION_VERSION=$(get_build_var PLATFORM_BASE_SDK_EXTENSION_VERSION)
|
||||
PLATFORM_VERSION_ALL_CODENAMES=$(get_build_var PLATFORM_VERSION_ALL_CODENAMES)
|
||||
|
||||
# PLATFORM_VERSION_ALL_CODENAMES is a comma separated list like O,P. We need to
|
||||
@@ -46,6 +47,7 @@ mkdir -p ${SOONG_OUT}
|
||||
cat > ${SOONG_OUT}/soong.variables << EOF
|
||||
{
|
||||
"Platform_sdk_version": ${PLATFORM_SDK_VERSION},
|
||||
"Platform_base_sdk_extension_version": ${PLATFORM_BASE_SDK_EXTENSION_VERSION},
|
||||
"Platform_version_active_codenames": ${PLATFORM_VERSION_ALL_CODENAMES},
|
||||
|
||||
"DeviceName": "generic_arm64",
|
||||
|
Reference in New Issue
Block a user