build: unify server & client protocol generation

No need to make a difference here, let's just generate header
files for both.
This commit is contained in:
Simon Ser 2022-11-25 10:46:53 +01:00
parent 366f6ef3d3
commit 5be5a038da

View File

@ -19,13 +19,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 = []
@ -42,9 +35,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,