Blame SOURCES/daab8546eca8428543a4d958a2c53fc747f70672.patch

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