mirror of
https://github.com/swaywm/sway.git
synced 2024-11-29 03:11:27 +00:00
build: simplify protocol paths
No need for arrays here.
This commit is contained in:
parent
78b5c0a77e
commit
04f8a655e7
|
@ -11,29 +11,28 @@ else
|
||||||
endif
|
endif
|
||||||
|
|
||||||
protocols = [
|
protocols = [
|
||||||
[wl_protocol_dir, 'stable/xdg-shell/xdg-shell.xml'],
|
wl_protocol_dir / 'stable/xdg-shell/xdg-shell.xml',
|
||||||
[wl_protocol_dir, 'unstable/xdg-output/xdg-output-unstable-v1.xml'],
|
wl_protocol_dir / 'unstable/xdg-output/xdg-output-unstable-v1.xml',
|
||||||
[wl_protocol_dir, 'unstable/pointer-constraints/pointer-constraints-unstable-v1.xml'],
|
wl_protocol_dir / 'unstable/pointer-constraints/pointer-constraints-unstable-v1.xml',
|
||||||
[wl_protocol_dir, 'unstable/tablet/tablet-unstable-v2.xml'],
|
wl_protocol_dir / 'unstable/tablet/tablet-unstable-v2.xml',
|
||||||
[wl_protocol_dir, 'unstable/linux-dmabuf/linux-dmabuf-unstable-v1.xml'],
|
wl_protocol_dir / 'unstable/linux-dmabuf/linux-dmabuf-unstable-v1.xml',
|
||||||
['wlr-layer-shell-unstable-v1.xml'],
|
'wlr-layer-shell-unstable-v1.xml',
|
||||||
['idle.xml'],
|
'idle.xml',
|
||||||
['wlr-input-inhibitor-unstable-v1.xml'],
|
'wlr-input-inhibitor-unstable-v1.xml',
|
||||||
['wlr-output-power-management-unstable-v1.xml'],
|
'wlr-output-power-management-unstable-v1.xml',
|
||||||
]
|
]
|
||||||
|
|
||||||
client_protocols = [
|
client_protocols = [
|
||||||
[wl_protocol_dir, 'stable/xdg-shell/xdg-shell.xml'],
|
wl_protocol_dir / 'stable/xdg-shell/xdg-shell.xml',
|
||||||
[wl_protocol_dir, 'unstable/xdg-output/xdg-output-unstable-v1.xml'],
|
wl_protocol_dir / 'unstable/xdg-output/xdg-output-unstable-v1.xml',
|
||||||
['wlr-layer-shell-unstable-v1.xml'],
|
'wlr-layer-shell-unstable-v1.xml',
|
||||||
['wlr-input-inhibitor-unstable-v1.xml'],
|
'wlr-input-inhibitor-unstable-v1.xml',
|
||||||
]
|
]
|
||||||
|
|
||||||
wl_protos_src = []
|
wl_protos_src = []
|
||||||
wl_protos_headers = []
|
wl_protos_headers = []
|
||||||
|
|
||||||
foreach p : protocols
|
foreach xml : protocols
|
||||||
xml = join_paths(p)
|
|
||||||
wl_protos_src += custom_target(
|
wl_protos_src += custom_target(
|
||||||
xml.underscorify() + '_server_c',
|
xml.underscorify() + '_server_c',
|
||||||
input: xml,
|
input: xml,
|
||||||
|
@ -48,8 +47,7 @@ foreach p : protocols
|
||||||
)
|
)
|
||||||
endforeach
|
endforeach
|
||||||
|
|
||||||
foreach p : client_protocols
|
foreach xml : client_protocols
|
||||||
xml = join_paths(p)
|
|
||||||
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