meson: Make dbus optional, fix build with dbus disabled

Signed-off-by: Arnaud Rebillout <arnaud.rebillout@collabora.com>
This commit is contained in:
Arnaud Rebillout 2018-10-19 16:24:25 +07:00 committed by Arun Raghavan
parent b4fe15e092
commit f4a8d43882
3 changed files with 21 additions and 11 deletions

View file

@ -223,7 +223,7 @@ cdata.set('DISABLE_LIBTOOL_PRELOAD', 1)
sndfile_dep = dependency('sndfile', version : '>= 1.0.20')
dbus_dep = dependency('dbus-1', version : '>= 1.4.12', required : false)
dbus_dep = dependency('dbus-1', version : '>= 1.4.12', required : get_option('dbus'))
if dbus_dep.found()
cdata.set('HAVE_DBUS', 1)
endif