]> git.mdlowis.com Git - proto/labwc.git/commitdiff
build: simplify protocol paths
authorJohan Malm <jgm323@gmail.com>
Fri, 14 Oct 2022 21:44:51 +0000 (22:44 +0100)
committerConsolatis <35009135+Consolatis@users.noreply.github.com>
Fri, 14 Oct 2022 22:09:21 +0000 (00:09 +0200)
No need for arrays here.

swaywm/sway@04f8a65

protocols/meson.build

index 5d9082b1c301a505ac0605331b4e0cc7c985e25e..9986c0762de03c47893ea050a8bcd749e666f3fa 100644 (file)
@@ -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