From 669c6bb63c1b9f3b65100170d880af9695f055dd Mon Sep 17 00:00:00 2001 From: Jooyung Han Date: Thu, 16 Apr 2020 18:48:27 +0900 Subject: [PATCH] Set min_sdk_version to be part of mainline modules Modules contributing mainline modules (APK/APEX) should set min_sdk_version as well as apex_available. For now setting min_sdk_version doesn't change build outputs. But build-time checks will be added soon. Bug: 152655956 Test: m Change-Id: I6cfff21dcaf861392f8b69d97195831cdda4c1be --- Android.bp | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/Android.bp b/Android.bp index a02b20b..343b234 100644 --- a/Android.bp +++ b/Android.bp @@ -1,8 +1,11 @@ cc_library_static { name: "libavcdec", vendor_available: true, - host_supported:true, - shared_libs: ["liblog", "libcutils",], + host_supported: true, + shared_libs: [ + "liblog", + "libcutils", + ], cflags: [ "-fPIC", @@ -229,13 +232,20 @@ cc_library_static { // cfi: true, blacklist: "libavc_blacklist.txt", }, + apex_available: [ + "com.android.media.swcodec", + ], + min_sdk_version: "29", } cc_library_static { name: "libavcenc", vendor_available: true, host_supported: true, - shared_libs: ["liblog", "libcutils",], + shared_libs: [ + "liblog", + "libcutils", + ], cflags: [ "-DNDEBUG", @@ -482,6 +492,10 @@ cc_library_static { // cfi: true, blacklist: "libavc_blacklist.txt", }, + apex_available: [ + "com.android.media.swcodec", + ], + min_sdk_version: "29", } subdirs = ["test"]