drm-hwcomposer: Build hwc3 service in Android.bp
Add a android.hardware.composer.hwc3-service.drm binary target that
builds relevant hwc3 sources and common sources.
Uses BufferInfoLibdrm. The structure of this service may need to be
looked at again to support other BufferInfo implementations.
Also update the executable name in hwc3-drm.rc to match the target name.
Signed-off-by: Drew Davenport <ddavenport@chromium.org>
Signed-off-by: Drew Davenport <ddavenport@google.com>
diff --git a/Android.bp b/Android.bp
index 14e74f3..ed1c6cf 100644
--- a/Android.bp
+++ b/Android.bp
@@ -149,6 +149,48 @@
],
}
+cc_binary {
+ name: "android.hardware.composer.hwc3-service.drm",
+
+ srcs: [
+ ":drm_hwcomposer_hwc3",
+ ":drm_hwcomposer_service",
+ ":drm_hwcomposer_common",
+ "bufferinfo/legacy/BufferInfoLibdrm.cpp",
+ ],
+
+ defaults: [
+ "hwcomposer.drm_defaults",
+ ],
+
+ shared_libs: [
+ "android.hardware.graphics.composer3-V1-ndk",
+ "libbase",
+ "libbinder",
+ "libbinder_ndk",
+ "liblog",
+ "libutils",
+ ],
+
+ cflags: [
+ "-Wall",
+ "-Werror",
+
+ "-DUSE_IMAPPER4_METADATA_API",
+ ],
+
+ cppflags: [
+ "-DHWC2_INCLUDE_STRINGIFICATION",
+ "-DHWC2_USE_CPP11",
+ ],
+
+ relative_install_path: "hw",
+ vendor: true,
+
+ vintf_fragments: [":drm_hwcomposer_vintf_manifest"],
+ init_rc: [":drm_hwcomposer_init_rc"],
+}
+
// Used by hwcomposer.drm_imagination
filegroup {
name: "drm_hwcomposer_platformimagination",