codec2 hal: AIDL type conversion, step 3
Implement conversions for buffer types.
Reuse the function templates when applicable, and specialize for
AIDL-specific part of the code.
Bug: 251850069
Test: m && m libcodec2_aidl_client
Change-Id: I42dd434f08007b5ccbfc1e222e601043f24883f9
diff --git a/media/codec2/hal/aidl/Android.bp b/media/codec2/hal/aidl/Android.bp
index 3bc7548..b19f78c 100644
--- a/media/codec2/hal/aidl/Android.bp
+++ b/media/codec2/hal/aidl/Android.bp
@@ -8,6 +8,7 @@
name: "libcodec2_aidl_client",
srcs: [
+ "BufferTypes.cpp",
"ParamTypes.cpp",
],
@@ -17,7 +18,9 @@
],
shared_libs: [
+ "android.hardware.common-V2-ndk",
"android.hardware.media.bufferpool@2.0",
+ "android.hardware.media.bufferpool2-V1-ndk",
"android.hardware.media.c2-V1-ndk",
"libbinder_ndk",
"libbase",
@@ -27,9 +30,14 @@
"libcutils",
"liblog",
"libnativewindow",
+ "libstagefright_aidl_bufferpool2",
"libutils",
],
+ static_libs: [
+ "libaidlcommonsupport",
+ ],
+
export_include_dirs: [
"include",
],