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