meson.build (983B)
1 fs = import('fs') 2 3 # Allow easy lookup for protocol for utility applications 4 protos = {} 5 foreach proto : [ 6 'server-decoration.xml', 7 'swc.xml', 8 'swc_snap.xml', 9 'swc_select.xml', 10 'wlr-layer-shell-unstable-v1.xml', 11 'wayland-drm.xml', 12 wl.find_protocol('xdg-shell', state: 'stable'), 13 wl.find_protocol('linux-dmabuf', state: 'unstable', version: 1), 14 wl.find_protocol('xdg-decoration', state: 'unstable', version: 1), 15 wl.find_protocol('xdg-output', state: 'unstable', version: 1), 16 wl.find_protocol('xdg-dialog', state: 'staging', version: 1), 17 wl.find_protocol('keyboard-shortcuts-inhibit', state: 'unstable', version: 1), 18 wl.find_protocol('cursor-shape', state: 'staging', version: 1), 19 wl.find_protocol('tablet', state: 'unstable', version: 2), 20 ] 21 protocols = wl.scan_xml(proto, 22 public: true, 23 client: true, 24 server: true) 25 protos += {fs.stem(fs.name(proto)): protocols} 26 endforeach 27 install_data('swc.xml', install_dir: get_option('datadir') / 'swc')