launcher-libseat: Don't depend on dbus

The libseat launcher doesn't directly use dbus functions.

Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
This commit is contained in:
Derek Foreman 2023-09-29 07:24:30 -05:00
parent 754562fb52
commit 501e3f193f
2 changed files with 0 additions and 6 deletions

View File

@ -40,7 +40,6 @@
#include <libseat.h>
#include <libweston/dbus.h>
#include <libweston/libweston.h>
#include <libweston/weston-log.h>
#include "weston-log-internal.h"

View File

@ -198,17 +198,12 @@ if get_option('deprecated-launcher-logind')
warning('deprecated-launcher-logind is enabled. This will go away, see https://gitlab.freedesktop.org/wayland/weston/-/issues/488')
endif
if get_option('launcher-libseat')
if not get_option('dbus')
error('dbus support is required for launcher-libseat')
endif
libseat_dep = dependency('libseat', version: '>= 0.4')
config_h.set('HAVE_LIBSEAT', '1')
srcs_session_helper += [
'launcher-libseat.c',
]
deps_session_helper += [
dep_dbus,
libseat_dep,
]
endif