2022-11-23 16:04:43 +01:00
|
|
|
msg = 'Required for session support.'
|
|
|
|
udev = dependency('libudev', required: session_required, not_found_message: msg)
|
2022-11-23 15:10:02 +01:00
|
|
|
libseat = dependency(
|
|
|
|
'libseat',
|
2021-04-11 16:29:24 +02:00
|
|
|
version: '>=0.2.0',
|
2021-12-14 12:10:31 +01:00
|
|
|
fallback: 'seatd',
|
2022-11-23 15:10:02 +01:00
|
|
|
default_options: ['server=disabled', 'man-pages=disabled', 'examples=disabled'],
|
2022-11-23 16:04:43 +01:00
|
|
|
required: session_required,
|
|
|
|
not_found_message: msg,
|
2021-04-11 16:29:24 +02:00
|
|
|
)
|
2022-11-23 16:04:43 +01:00
|
|
|
if not (udev.found() and libseat.found())
|
|
|
|
subdir_done()
|
|
|
|
endif
|
|
|
|
|
2021-04-11 16:27:46 +02:00
|
|
|
wlr_files += files('session.c')
|
2022-11-23 16:04:43 +01:00
|
|
|
wlr_deps += [udev, libseat]
|
|
|
|
features += { 'session': true }
|