wlroots/examples/meson.build

69 lines
1.6 KiB
Meson
Raw Normal View History

2023-07-10 22:21:33 +00:00
cairo = dependency('cairo', required: false, disabler: true)
# Only needed for drm_fourcc.h
libdrm_header = dependency('libdrm').partial_dependency(compile_args: true, includes: true)
wayland_client = dependency('wayland-client', required: false, disabler: true)
wayland_egl = dependency('wayland-egl', required: false, disabler: true)
egl = dependency('egl', version: '>= 1.5', required: false, disabler: true)
glesv2 = dependency('glesv2', required: false, disabler: true)
compositors = {
'simple': {
'src': 'simple.c',
},
'pointer': {
'src': 'pointer.c',
},
'touch': {
'src': ['touch.c', 'cat.c'],
},
'tablet': {
'src': 'tablet.c',
},
'rotation': {
'src': ['rotation.c', 'cat.c'],
},
'output-layout': {
'src': ['output-layout.c', 'cat.c'],
},
'fullscreen-shell': {
'src': 'fullscreen-shell.c',
'proto': ['fullscreen-shell-unstable-v1'],
},
2020-05-06 15:30:53 +00:00
'scene-graph': {
'src': 'scene-graph.c',
'proto': ['xdg-shell'],
},
2022-08-18 13:55:47 +00:00
'output-layers': {
'src': 'output-layers.c',
'proto': [
'xdg-shell',
],
},
2023-07-10 22:21:33 +00:00
'cairo-buffer': {
'src': 'cairo-buffer.c',
'dep': cairo,
},
'embedded': {
'src': [
'embedded.c',
protocols_code['xdg-shell'],
protocols_client_header['xdg-shell'],
],
'dep': [wayland_client, wayland_egl, egl, glesv2],
},
}
2018-05-27 03:03:29 +00:00
foreach name, info : compositors
extra_src = []
foreach p : info.get('proto', [])
extra_src += protocols_server_header[p]
endforeach
2019-10-08 16:30:49 +00:00
executable(
name,
[info.get('src'), extra_src],
dependencies: [wlroots, libdrm_header, info.get('dep', [])],
build_by_default: get_option('examples'),
)
endforeach