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