main neuswc / protocol / meson.build
 1fs = import('fs')
 2
 3# Allow easy lookup for protocol for utility applications
 4protos = {}
 5foreach 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]
17  protocols = wl.scan_xml(proto,
18    public: true,
19    client: true,
20    server: true)
21  protos += {fs.stem(fs.name(proto)): protocols}
22endforeach
23install_data('swc.xml', install_dir: get_option('datadir') / 'swc')