Commit 90c6416b authored by Arnaud Rebillout's avatar Arnaud Rebillout Committed by Arun Raghavan
Browse files

meson: Enable raop-discover module, add avahi dependency


Signed-off-by: default avatarArnaud Rebillout <arnaud.rebillout@collabora.com>
parent 4e6c3c0d
......@@ -228,6 +228,11 @@ cdata.set('DISABLE_ORC', 1)
# Module dependencies
avahi_dep = dependency('avahi-client', version : '>= 0.6.0', required : false)
if avahi_dep.found()
cdata.set('HAVE_AVAHI', 1)
endif
jack_dep = dependency('jack', version : '>= 0.117.0', required : false)
if jack_dep.found()
cdata.set('HAVE_JACK', 1)
......
......@@ -119,9 +119,13 @@ endif
if openssl_dep.found()
all_modules += [
# [ 'module-raop-discover', 'raop/module-raop-discover.c' ],
[ 'module-raop-sink', 'raop/module-raop-sink.c', [], [], [], libraop ],
]
if avahi_dep.found()
all_modules += [
[ 'module-raop-discover', 'raop/module-raop-discover.c', [], [], [avahi_dep], libavahi_wrap ],
]
endif
endif
if systemd_dep.found()
......
......@@ -162,6 +162,16 @@ libpulsecore_dep = declare_dependency(link_with: libpulsecore)
# Internal libraries for modules
# TODO: understand 'c_args' and 'dependencies' better, maybe we can remove some
libavahi_wrap = shared_library('avahi_wrap',
'avahi-wrap.c',
'avahi-wrap.h',
c_args : [pa_c_args, server_c_args, database_c_args],
include_directories : [configinc, topinc],
dependencies : [libpulse_dep, libpulsecommon_dep, libpulsecore_dep, avahi_dep],
implicit_include_directories : false, # pulsecore/poll.h <vs> /usr/include/poll.h
install : true
)
libcli = shared_library('cli',
'cli.c',
'cli.h',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment