2023-01-15 23:20:02 +01:00
|
|
|
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(
|
|
|
|
wayland_scanner,
|
|
|
|
output: '@BASENAME@-protocol.c',
|
|
|
|
arguments: ['private-code', '@INPUT@', '@OUTPUT@'])
|
|
|
|
wayland_scanner_client = generator(
|
|
|
|
wayland_scanner,
|
2023-01-15 23:42:32 +01:00
|
|
|
output: '@BASENAME@-protocol.h',
|
|
|
|
arguments: ['server-header', '@INPUT@', '@OUTPUT@'])
|
2023-01-15 23:20:02 +01:00
|
|
|
|
|
|
|
wayland_xmls = [
|
|
|
|
wl_protocol_dir + '/stable/xdg-shell/xdg-shell.xml',
|
2023-01-15 23:29:06 +01:00
|
|
|
'wlr-layer-shell-unstable-v1.xml'
|
2023-01-15 23:20:02 +01:00
|
|
|
]
|
|
|
|
wayland_sources = [
|
|
|
|
wayland_scanner_code.process(wayland_xmls),
|
|
|
|
wayland_scanner_client.process(wayland_xmls),
|
|
|
|
]
|