meson: Make systemd optional
authorArnaud Rebillout <arnaud.rebillout@collabora.com>
Fri, 19 Oct 2018 09:43:44 +0000 (16:43 +0700)
committerArun Raghavan <arun@arunraghavan.net>
Thu, 27 Dec 2018 11:55:55 +0000 (17:25 +0530)
Signed-off-by: Arnaud Rebillout <arnaud.rebillout@collabora.com>
meson.build
meson_options.txt

index 5b6aa11..ab1ea25 100644 (file)
@@ -243,7 +243,7 @@ if alsa_dep.found()
   cdata.set('HAVE_ALSA_UCM', 1)
 endif
 
-systemd_dep = dependency('libsystemd', required : false)
+systemd_dep = dependency('libsystemd', required : get_option('systemd'))
 if systemd_dep.found()
   cdata.set('HAVE_SYSTEMD_DAEMON', 1)
   cdata.set('HAVE_SYSTEMD_LOGIN', 1)
index ba58b0b..683d258 100644 (file)
@@ -23,6 +23,9 @@ option('alsa',
 option('dbus',
        type : 'feature', value : 'auto',
        description : 'Optional D-Bus support')
+option('systemd',
+       type : 'feature', value : 'auto',
+       description : 'Optional systemd support')
 option('x11',
        type : 'feature', value : 'auto',
        description : 'Optional X11 support')