summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Jooyung Han <jooyung@google.com> 2020-05-13 16:04:07 +0900
committer Jooyung Han <jooyung@google.com> 2020-05-19 04:14:38 +0000
commit394c177463a56e2ca5fdd2caea45ddb2b8564ac6 (patch)
tree47e301803d8df8428bd82fce83c143300fa1a366
parented760b06712e1b9ecc3510644b487b4e3c40e490 (diff)
gui/math: Set min_sdk_version
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. Exempt-From-Owner-Approval: cherry-pick from internal Bug: 152655956 Test: m Merged-In: Ib7685f5f4f924ac145eb4f10ad83a6c0548b2206 Change-Id: Ib7685f5f4f924ac145eb4f10ad83a6c0548b2206 (cherry picked from commit 54042e0ae4a5ea5e78733e7e6c4a9575a86c1415)
-rw-r--r--libs/gui/Android.bp5
-rw-r--r--libs/math/Android.bp8
2 files changed, 13 insertions, 0 deletions
diff --git a/libs/gui/Android.bp b/libs/gui/Android.bp
index 769d230995..9fc16ba930 100644
--- a/libs/gui/Android.bp
+++ b/libs/gui/Android.bp
@@ -107,6 +107,11 @@ cc_library_shared {
cc_library_static {
name: "libgui_bufferqueue_static",
vendor_available: true,
+ apex_available: [
+ "//apex_available:platform",
+ "com.android.media.swcodec",
+ ],
+ min_sdk_version: "29",
cflags: [
"-DNO_BUFFERHUB",
diff --git a/libs/math/Android.bp b/libs/math/Android.bp
index 693bace1f4..3b1edcb43a 100644
--- a/libs/math/Android.bp
+++ b/libs/math/Android.bp
@@ -16,6 +16,14 @@ cc_library_static {
name: "libmath",
host_supported: true,
vendor_available: true,
+ apex_available: [
+ "//apex_available:platform",
+ "com.android.media",
+ "com.android.media.swcodec",
+ "com.android.neuralnetworks",
+ ],
+ min_sdk_version: "29",
+
export_include_dirs: ["include"],
}