diff options
author | Simon Ser <contact@emersion.fr> | 2022-10-04 09:48:29 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2022-10-04 09:48:29 +0200 |
commit | 04f8a655e7cf555ddf068756916346b8246395d1 (patch) | |
tree | fe9173ceab60f7d2fe4ccdaf749049aae01ddfaa /protocols | |
parent | 78b5c0a77e64b88847d079aade5eae5cc754775c (diff) |
build: simplify protocol paths
No need for arrays here.
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/meson.build | 32 |
1 files changed, 15 insertions, 17 deletions
diff --git a/protocols/meson.build b/protocols/meson.build index df24a4e5..f18ab6f4 100644 --- a/protocols/meson.build +++ b/protocols/meson.build @@ -11,29 +11,28 @@ else endif protocols = [ - [wl_protocol_dir, 'stable/xdg-shell/xdg-shell.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/tablet/tablet-unstable-v2.xml'], - [wl_protocol_dir, 'unstable/linux-dmabuf/linux-dmabuf-unstable-v1.xml'], - ['wlr-layer-shell-unstable-v1.xml'], - ['idle.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/xdg-output/xdg-output-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/linux-dmabuf/linux-dmabuf-unstable-v1.xml', + 'wlr-layer-shell-unstable-v1.xml', + 'idle.xml', + 'wlr-input-inhibitor-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_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_headers = [] -foreach p : protocols - xml = join_paths(p) +foreach xml : protocols wl_protos_src += custom_target( xml.underscorify() + '_server_c', input: xml, @@ -48,8 +47,7 @@ foreach p : protocols ) endforeach -foreach p : client_protocols - xml = join_paths(p) +foreach xml : client_protocols wl_protos_headers += custom_target( xml.underscorify() + '_client_h', input: xml, |