mirror of
https://github.com/swaywm/sway.git
synced 2024-11-25 17:31:28 +00:00
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:
parent
366f6ef3d3
commit
5be5a038da
|
@ -19,13 +19,6 @@ protocols = [
|
||||||
'wlr-output-power-management-unstable-v1.xml',
|
'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_src = []
|
||||||
wl_protos_headers = []
|
wl_protos_headers = []
|
||||||
|
|
||||||
|
@ -42,9 +35,6 @@ foreach xml : protocols
|
||||||
output: '@BASENAME@-protocol.h',
|
output: '@BASENAME@-protocol.h',
|
||||||
command: [wayland_scanner, 'server-header', '@INPUT@', '@OUTPUT@'],
|
command: [wayland_scanner, 'server-header', '@INPUT@', '@OUTPUT@'],
|
||||||
)
|
)
|
||||||
endforeach
|
|
||||||
|
|
||||||
foreach xml : client_protocols
|
|
||||||
wl_protos_headers += custom_target(
|
wl_protos_headers += custom_target(
|
||||||
xml.underscorify() + '_client_h',
|
xml.underscorify() + '_client_h',
|
||||||
input: xml,
|
input: xml,
|
||||||
|
|
Loading…
Reference in a new issue