build: unify server & client protocol generation

No need to make a difference here, let's just generate header
files for both.

(cherry picked from commit 5be5a038da)
This commit is contained in:
Simon Ser 2022-11-25 10:46:53 +01:00
parent ceece55850
commit 61e4e65ea6

View file

@ -18,13 +18,6 @@ protocols = [
'wlr-output-power-management-unstable-v1.xml',
]
client_protocols = [
wl_protocol_dir / 'stable/xdg-shell/xdg-shell.xml',
wl_protocol_dir / 'unstable/xdg-output/xdg-output-unstable-v1.xml',
'wlr-layer-shell-unstable-v1.xml',
'wlr-input-inhibitor-unstable-v1.xml',
]
wl_protos_src = []
wl_protos_headers = []
@ -41,9 +34,6 @@ foreach xml : protocols
output: '@BASENAME@-protocol.h',
command: [wayland_scanner, 'server-header', '@INPUT@', '@OUTPUT@'],
)
endforeach
foreach xml : client_protocols
wl_protos_headers += custom_target(
xml.underscorify() + '_client_h',
input: xml,