meson: when avahi is disabled, do not build it's code

Signed-off-by: David Heidelberg <david@ixit.cz>
This commit is contained in:
David Heidelberg 2019-03-23 20:21:17 +01:00 committed by Arun Raghavan
parent f5f474dc67
commit 44c15e6001

View file

@ -335,7 +335,7 @@ if get_option('hal-compat')
cdata.set('HAVE_HAL_COMPAT', 1)
endif
avahi_dep = dependency('avahi-client', version : '>= 0.6.0', required : get_option('avahi'))
avahi_dep = dependency('avahi-client', version : '>= 0.6.0', required : get_option('avahi'), disabler : true)
if avahi_dep.found()
cdata.set('HAVE_AVAHI', 1)
endif