aboutsummaryrefslogtreecommitdiffstats
path: root/protocols
diff options
context:
space:
mode:
authorLibravatar Simon Ser <contact@emersion.fr>2022-10-04 09:48:29 +0200
committerLibravatar Simon Ser <contact@emersion.fr>2022-10-04 09:48:29 +0200
commit04f8a655e7cf555ddf068756916346b8246395d1 (patch)
treefe9173ceab60f7d2fe4ccdaf749049aae01ddfaa /protocols
parentswaymsg: show mode picture aspect ratio (diff)
downloadsway-04f8a655e7cf555ddf068756916346b8246395d1.tar.gz
sway-04f8a655e7cf555ddf068756916346b8246395d1.tar.zst
sway-04f8a655e7cf555ddf068756916346b8246395d1.zip
build: simplify protocol paths
No need for arrays here.
Diffstat (limited to 'protocols')
-rw-r--r--protocols/meson.build32
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
11endif 11endif
12 12
13protocols = [ 13protocols = [
14 [wl_protocol_dir, 'stable/xdg-shell/xdg-shell.xml'], 14 wl_protocol_dir / 'stable/xdg-shell/xdg-shell.xml',
15 [wl_protocol_dir, 'unstable/xdg-output/xdg-output-unstable-v1.xml'], 15 wl_protocol_dir / 'unstable/xdg-output/xdg-output-unstable-v1.xml',
16 [wl_protocol_dir, 'unstable/pointer-constraints/pointer-constraints-unstable-v1.xml'], 16 wl_protocol_dir / 'unstable/pointer-constraints/pointer-constraints-unstable-v1.xml',
17 [wl_protocol_dir, 'unstable/tablet/tablet-unstable-v2.xml'], 17 wl_protocol_dir / 'unstable/tablet/tablet-unstable-v2.xml',
18 [wl_protocol_dir, 'unstable/linux-dmabuf/linux-dmabuf-unstable-v1.xml'], 18 wl_protocol_dir / 'unstable/linux-dmabuf/linux-dmabuf-unstable-v1.xml',
19 ['wlr-layer-shell-unstable-v1.xml'], 19 'wlr-layer-shell-unstable-v1.xml',
20 ['idle.xml'], 20 'idle.xml',
21 ['wlr-input-inhibitor-unstable-v1.xml'], 21 'wlr-input-inhibitor-unstable-v1.xml',
22 ['wlr-output-power-management-unstable-v1.xml'], 22 'wlr-output-power-management-unstable-v1.xml',
23] 23]
24 24
25client_protocols = [ 25client_protocols = [
26 [wl_protocol_dir, 'stable/xdg-shell/xdg-shell.xml'], 26 wl_protocol_dir / 'stable/xdg-shell/xdg-shell.xml',
27 [wl_protocol_dir, 'unstable/xdg-output/xdg-output-unstable-v1.xml'], 27 wl_protocol_dir / 'unstable/xdg-output/xdg-output-unstable-v1.xml',
28 ['wlr-layer-shell-unstable-v1.xml'], 28 'wlr-layer-shell-unstable-v1.xml',
29 ['wlr-input-inhibitor-unstable-v1.xml'], 29 'wlr-input-inhibitor-unstable-v1.xml',
30] 30]
31 31
32wl_protos_src = [] 32wl_protos_src = []
33wl_protos_headers = [] 33wl_protos_headers = []
34 34
35foreach p : protocols 35foreach xml : protocols
36 xml = join_paths(p)
37 wl_protos_src += custom_target( 36 wl_protos_src += custom_target(
38 xml.underscorify() + '_server_c', 37 xml.underscorify() + '_server_c',
39 input: xml, 38 input: xml,
@@ -48,8 +47,7 @@ foreach p : protocols
48 ) 47 )
49endforeach 48endforeach
50 49
51foreach p : client_protocols 50foreach xml : client_protocols
52 xml = join_paths(p)
53 wl_protos_headers += custom_target( 51 wl_protos_headers += custom_target(
54 xml.underscorify() + '_client_h', 52 xml.underscorify() + '_client_h',
55 input: xml, 53 input: xml,