9c27a344686459422b7f233cfeebf5d9813e49c8 — Kenny Levinsen 15 days ago 36f54ad fix_builtin_only
meson: Always enable seatd when builtin is enabled

The builtin backend uses most of the seatd backend internally, and
requires that it is enabled to function.

Instead of failing compile when builtin is enabled but seatd is
disabled, just issue a warning and enable seatd anyway.
1 files changed, 5 insertions(+), 0 deletions(-)

M meson.build
M meson.build => meson.build +5 -0
@@ 106,6 106,11 @@ with_seatd = get_option('seatd') == 'enabled'
with_builtin = get_option('builtin') == 'enabled'
with_server = get_option('server') == 'enabled'

if with_builtin and not with_seatd
	warning('builtin enabled without required seatd backend, enabling automatically')
	with_seatd = true

if with_seatd
	private_files += 'libseat/backend/seatd.c'
	add_project_arguments('-DSEATD_ENABLED=1', language: 'c')