From: Johan Malm Date: Fri, 14 Oct 2022 21:44:51 +0000 (+0100) Subject: build: simplify protocol paths X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=3d8f5282663b6c0bed8654e697f71ea2421d9c5d;p=proto%2Flabwc.git build: simplify protocol paths No need for arrays here. swaywm/sway@04f8a65 --- diff --git a/protocols/meson.build b/protocols/meson.build index 5d9082b1..9986c076 100644 --- a/protocols/meson.build +++ b/protocols/meson.build @@ -14,18 +14,17 @@ wayland_scanner_server = generator( ) server_protocols = [ - [wl_protocol_dir, 'stable/xdg-shell/xdg-shell.xml'], - [wl_protocol_dir, 'unstable/pointer-constraints/pointer-constraints-unstable-v1.xml'], - ['wlr-layer-shell-unstable-v1.xml'], - ['wlr-input-inhibitor-unstable-v1.xml'], - ['wlr-output-power-management-unstable-v1.xml'], + wl_protocol_dir / 'stable/xdg-shell/xdg-shell.xml', + wl_protocol_dir / 'unstable/pointer-constraints/pointer-constraints-unstable-v1.xml', + 'wlr-layer-shell-unstable-v1.xml', + 'wlr-input-inhibitor-unstable-v1.xml', + 'wlr-output-power-management-unstable-v1.xml', ] server_protos_src = [] server_protos_headers = [] -foreach p : server_protocols - xml = join_paths(p) +foreach xml : server_protocols server_protos_src += wayland_scanner_code.process(xml) server_protos_headers += wayland_scanner_server.process(xml) endforeach