2023-07-11 00:21:33 +02:00
|
|
|
cairo = dependency('cairo', required: false, disabler: true)
|
2021-02-23 20:29:58 +01:00
|
|
|
# Only needed for drm_fourcc.h
|
2023-07-13 11:47:31 +02:00
|
|
|
libdrm_header = dependency('libdrm').partial_dependency(compile_args: true, includes: true)
|
2023-07-13 11:34:01 +02:00
|
|
|
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)
|
2018-06-26 07:22:15 +02:00
|
|
|
|
2019-11-22 08:11:15 +01:00
|
|
|
compositors = {
|
2018-08-24 09:35:02 +02:00
|
|
|
'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'],
|
|
|
|
},
|
2019-11-22 08:11:15 +01:00
|
|
|
'fullscreen-shell': {
|
|
|
|
'src': 'fullscreen-shell.c',
|
2020-01-24 08:37:34 +01:00
|
|
|
'proto': ['fullscreen-shell-unstable-v1'],
|
2019-11-22 08:11:15 +01:00
|
|
|
},
|
2020-05-06 17:30:53 +02:00
|
|
|
'scene-graph': {
|
|
|
|
'src': 'scene-graph.c',
|
|
|
|
'proto': ['xdg-shell'],
|
|
|
|
},
|
2022-08-18 15:55:47 +02:00
|
|
|
'output-layers': {
|
|
|
|
'src': 'output-layers.c',
|
|
|
|
'proto': [
|
|
|
|
'xdg-shell',
|
|
|
|
],
|
|
|
|
},
|
2023-07-11 00:21:33 +02:00
|
|
|
'cairo-buffer': {
|
|
|
|
'src': 'cairo-buffer.c',
|
|
|
|
'dep': cairo,
|
|
|
|
},
|
2023-07-13 11:34:01 +02:00
|
|
|
'embedded': {
|
|
|
|
'src': [
|
|
|
|
'embedded.c',
|
|
|
|
protocols_code['xdg-shell'],
|
|
|
|
protocols_client_header['xdg-shell'],
|
2020-07-08 10:48:29 +02:00
|
|
|
],
|
2023-07-13 11:34:01 +02:00
|
|
|
'dep': [wayland_client, wayland_egl, egl, glesv2],
|
2020-07-08 10:48:29 +02:00
|
|
|
},
|
2018-08-24 09:35:02 +02:00
|
|
|
}
|
2018-05-27 05:03:29 +02:00
|
|
|
|
2019-11-22 08:11:15 +01:00
|
|
|
foreach name, info : compositors
|
2020-01-24 08:37:34 +01:00
|
|
|
extra_src = []
|
|
|
|
foreach p : info.get('proto', [])
|
2020-04-21 15:19:24 +02:00
|
|
|
extra_src += protocols_server_header[p]
|
2020-01-24 08:37:34 +01:00
|
|
|
endforeach
|
|
|
|
|
2019-10-08 18:30:49 +02:00
|
|
|
executable(
|
|
|
|
name,
|
2020-01-24 08:37:34 +01:00
|
|
|
[info.get('src'), extra_src],
|
2023-07-13 11:47:31 +02:00
|
|
|
dependencies: [wlroots, libdrm_header, info.get('dep', [])],
|
2019-11-22 08:11:15 +01:00
|
|
|
build_by_default: get_option('examples'),
|
|
|
|
)
|
|
|
|
endforeach
|