meson: Add systemd-login to core dependencies
authorArnaud Rebillout <arnaud.rebillout@collabora.com>
Thu, 20 Sep 2018 11:58:27 +0000 (18:58 +0700)
committerArun Raghavan <arun@arunraghavan.net>
Thu, 4 Oct 2018 03:14:18 +0000 (08:44 +0530)
Signed-off-by: Arnaud Rebillout <arnaud.rebillout@collabora.com>
meson.build

index 6e656ab..7ba4c1e 100644 (file)
@@ -216,6 +216,13 @@ if alsa_dep.found()
   cdata.set('HAVE_ALSA_UCM', 1)
 endif
 
+systemd_dep = dependency('libsystemd', required : false)
+if systemd_dep.found()
+  cdata.set('HAVE_SYSTEMD_DAEMON', 1)
+  cdata.set('HAVE_SYSTEMD_LOGIN', 1)
+  cdata.set('HAVE_SYSTEMD_JOURNAL', 1)
+endif
+
 # FIXME: support ORC
 cdata.set('DISABLE_ORC', 1)