Blame SOURCES/daab8546eca8428543a4d958a2c53fc747f70672.patch

147450
From daab8546eca8428543a4d958a2c53fc747f70672 Mon Sep 17 00:00:00 2001
147450
From: Oleksandr Kulkov <adamant-pwn@users.noreply.github.com>
147450
Date: Fri, 29 Oct 2021 01:13:04 +0200
147450
Subject: [PATCH] generate wayland-drm-client-protocol.h
147450
147450
---
147450
 Makefile.am             | 3 ++-
147450
 src/meson.build         | 1 +
147450
 wayland-drm/meson.build | 6 ++++--
147450
 3 files changed, 7 insertions(+), 3 deletions(-)
147450
147450
diff --git a/Makefile.am b/Makefile.am
147450
index 8129539..9463349 100644
147450
--- a/Makefile.am
147450
+++ b/Makefile.am
147450
@@ -49,7 +49,8 @@ libnvidia_egl_wayland_la_built_private_protocols =            \
147450
 
147450
 libnvidia_egl_wayland_la_built_client_headers =               \
147450
     wayland-eglstream/wayland-eglstream-client-protocol.h     \
147450
-    wayland-eglstream/wayland-eglstream-controller-client-protocol.h
147450
+    wayland-eglstream/wayland-eglstream-controller-client-protocol.h \
147450
+    wayland-drm/wayland-drm-client-protocol.h
147450
 
147450
 libnvidia_egl_wayland_la_built_server_headers =               \
147450
     wayland-eglstream/wayland-eglstream-server-protocol.h     \
147450
diff --git a/src/meson.build b/src/meson.build
147450
index a489fa3..6f69e09 100644
147450
--- a/src/meson.build
147450
+++ b/src/meson.build
147450
@@ -47,6 +47,7 @@ src = [
147450
     wayland_eglstream_controller_protocol_c,
147450
     wayland_eglstream_controller_client_protocol_h,
147450
     wayland_drm_protocol_c,
147450
+    wayland_drm_client_protocol_h,
147450
     wayland_drm_server_protocol_h,
147450
 ]
147450
 
147450
diff --git a/wayland-drm/meson.build b/wayland-drm/meson.build
147450
index b3b3bcb..2a29afe 100644
147450
--- a/wayland-drm/meson.build
147450
+++ b/wayland-drm/meson.build
147450
@@ -1,5 +1,7 @@
147450
-foreach output_type: ['server-header', 'public-code']
147450
-    if output_type == 'server-header'
147450
+foreach output_type: ['client-header', 'server-header', 'public-code']
147450
+    if output_type == 'client-header'
147450
+        output_file = 'wayland-drm-client-protocol.h'
147450
+    elif output_type == 'server-header'
147450
         output_file = 'wayland-drm-server-protocol.h'
147450
     else
147450
         output_file = 'wayland-drm-protocol.c'