Blob Blame History Raw
From daab8546eca8428543a4d958a2c53fc747f70672 Mon Sep 17 00:00:00 2001
From: Oleksandr Kulkov <adamant-pwn@users.noreply.github.com>
Date: Fri, 29 Oct 2021 01:13:04 +0200
Subject: [PATCH] generate wayland-drm-client-protocol.h

---
 Makefile.am             | 3 ++-
 src/meson.build         | 1 +
 wayland-drm/meson.build | 6 ++++--
 3 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 8129539..9463349 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -49,7 +49,8 @@ libnvidia_egl_wayland_la_built_private_protocols =            \
 
 libnvidia_egl_wayland_la_built_client_headers =               \
     wayland-eglstream/wayland-eglstream-client-protocol.h     \
-    wayland-eglstream/wayland-eglstream-controller-client-protocol.h
+    wayland-eglstream/wayland-eglstream-controller-client-protocol.h \
+    wayland-drm/wayland-drm-client-protocol.h
 
 libnvidia_egl_wayland_la_built_server_headers =               \
     wayland-eglstream/wayland-eglstream-server-protocol.h     \
diff --git a/src/meson.build b/src/meson.build
index a489fa3..6f69e09 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -47,6 +47,7 @@ src = [
     wayland_eglstream_controller_protocol_c,
     wayland_eglstream_controller_client_protocol_h,
     wayland_drm_protocol_c,
+    wayland_drm_client_protocol_h,
     wayland_drm_server_protocol_h,
 ]
 
diff --git a/wayland-drm/meson.build b/wayland-drm/meson.build
index b3b3bcb..2a29afe 100644
--- a/wayland-drm/meson.build
+++ b/wayland-drm/meson.build
@@ -1,5 +1,7 @@
-foreach output_type: ['server-header', 'public-code']
-    if output_type == 'server-header'
+foreach output_type: ['client-header', 'server-header', 'public-code']
+    if output_type == 'client-header'
+        output_file = 'wayland-drm-client-protocol.h'
+    elif output_type == 'server-header'
         output_file = 'wayland-drm-server-protocol.h'
     else
         output_file = 'wayland-drm-protocol.c'