meson: Add optional libsystemd dependency

To utilize the API provided by libsystemd it would be better to
create a separate HAVE_LIBSYSTEMD configuration option instead of
having to rely on HAVE_NATIVE_BACKEND.

For now this will be utilized for getting the control group of a
MetaWindow.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1960>
This commit is contained in:
Nishal Kulkarni
2021-08-05 19:37:28 +05:30
committed by Florian Müllner
parent 5ffd77c36b
commit 4a0c86ea4c
4 changed files with 19 additions and 1 deletions

View File

@ -118,6 +118,12 @@ if have_wayland
]
endif
if have_libsystemd
mutter_pkg_private_deps += [
libsystemd_dep,
]
endif
if have_native_backend
mutter_pkg_private_deps += [
libdrm_dep,