mirror of
https://github.com/labwc/labwc.git
synced 2026-03-13 05:33:47 -04:00
build: simplify protocol paths
No need for arrays here. swaywm/sway@04f8a65
This commit is contained in:
parent
cd970945f4
commit
3d8f528266
1 changed files with 6 additions and 7 deletions
|
|
@ -14,18 +14,17 @@ wayland_scanner_server = generator(
|
||||||
)
|
)
|
||||||
|
|
||||||
server_protocols = [
|
server_protocols = [
|
||||||
[wl_protocol_dir, 'stable/xdg-shell/xdg-shell.xml'],
|
wl_protocol_dir / 'stable/xdg-shell/xdg-shell.xml',
|
||||||
[wl_protocol_dir, 'unstable/pointer-constraints/pointer-constraints-unstable-v1.xml'],
|
wl_protocol_dir / 'unstable/pointer-constraints/pointer-constraints-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',
|
||||||
['wlr-output-power-management-unstable-v1.xml'],
|
'wlr-output-power-management-unstable-v1.xml',
|
||||||
]
|
]
|
||||||
|
|
||||||
server_protos_src = []
|
server_protos_src = []
|
||||||
server_protos_headers = []
|
server_protos_headers = []
|
||||||
|
|
||||||
foreach p : server_protocols
|
foreach xml : server_protocols
|
||||||
xml = join_paths(p)
|
|
||||||
server_protos_src += wayland_scanner_code.process(xml)
|
server_protos_src += wayland_scanner_code.process(xml)
|
||||||
server_protos_headers += wayland_scanner_server.process(xml)
|
server_protos_headers += wayland_scanner_server.process(xml)
|
||||||
endforeach
|
endforeach
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue