2021-10-19 20:46:46 +00:00
|
|
|
# adapted from https://github.com/swaywm/swayidle/blob/0467c1e03a5780ed8e3ba611f099a838822ab550/meson.build
|
|
|
|
wayland_scanner = find_program('wayland-scanner')
|
|
|
|
wayland_protos_dep = dependency('wayland-protocols')
|
|
|
|
wl_protocol_dir = wayland_protos_dep.get_pkgconfig_variable('pkgdatadir')
|
|
|
|
wayland_scanner_code = generator(
|
2021-10-29 18:33:27 +00:00
|
|
|
wayland_scanner,
|
|
|
|
output: '@BASENAME@-protocol.c',
|
|
|
|
arguments: ['private-code', '@INPUT@', '@OUTPUT@'])
|
2021-10-19 20:46:46 +00:00
|
|
|
wayland_scanner_client = generator(
|
2021-10-29 18:33:27 +00:00
|
|
|
wayland_scanner,
|
|
|
|
output: '@BASENAME@-client-protocol.h',
|
|
|
|
arguments: ['client-header', '@INPUT@', '@OUTPUT@'])
|
2021-10-19 20:46:46 +00:00
|
|
|
|
2021-10-27 15:24:47 +00:00
|
|
|
wayland_xmls = [
|
2021-10-29 18:33:27 +00:00
|
|
|
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',
|
2024-02-18 19:08:52 +00:00
|
|
|
'dwl-ipc-unstable-v2.xml',
|
2021-10-27 15:24:47 +00:00
|
|
|
]
|
2021-10-19 20:46:46 +00:00
|
|
|
wayland_sources = [
|
2021-10-29 18:33:27 +00:00
|
|
|
wayland_scanner_code.process(wayland_xmls),
|
|
|
|
wayland_scanner_client.process(wayland_xmls),
|
2021-10-27 15:24:47 +00:00
|
|
|
]
|