mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-12-15 08:56:34 -05:00
meson: Make avahi optional
Signed-off-by: Arnaud Rebillout <arnaud.rebillout@collabora.com>
This commit is contained in:
parent
9a0060d208
commit
d984da3fea
2 changed files with 4 additions and 1 deletions
|
|
@ -261,7 +261,7 @@ if cc.has_header('sys/soundcard.h')
|
||||||
cdata.set_quoted('PULSEDSP_LOCATION', pulsedspdir)
|
cdata.set_quoted('PULSEDSP_LOCATION', pulsedspdir)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
avahi_dep = dependency('avahi-client', version : '>= 0.6.0', required : false)
|
avahi_dep = dependency('avahi-client', version : '>= 0.6.0', required : get_option('avahi'))
|
||||||
if avahi_dep.found()
|
if avahi_dep.found()
|
||||||
cdata.set('HAVE_AVAHI', 1)
|
cdata.set('HAVE_AVAHI', 1)
|
||||||
endif
|
endif
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,9 @@ option('pulsedspdir',
|
||||||
option('alsa',
|
option('alsa',
|
||||||
type : 'feature', value : 'auto',
|
type : 'feature', value : 'auto',
|
||||||
description : 'Optional ALSA support')
|
description : 'Optional ALSA support')
|
||||||
|
option('avahi',
|
||||||
|
type : 'feature', value : 'auto',
|
||||||
|
description : 'Optional Avahi support')
|
||||||
option('dbus',
|
option('dbus',
|
||||||
type : 'feature', value : 'auto',
|
type : 'feature', value : 'auto',
|
||||||
description : 'Optional D-Bus support')
|
description : 'Optional D-Bus support')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue