Commit 4c9b6370 authored by Arnaud Rebillout's avatar Arnaud Rebillout Committed by Arun Raghavan
Browse files

meson: Enable raop-sink module, add raop lib, add openssl dependency


Signed-off-by: default avatarArnaud Rebillout <arnaud.rebillout@collabora.com>
parent 83b69038
......@@ -238,6 +238,11 @@ if fftw_dep.found()
cdata.set('HAVE_FFTW', 1)
endif
openssl_dep = dependency('openssl', version : '>= 0.9', required : false)
if openssl_dep.found()
cdata.set('HAVE_OPENSSL', 1)
endif
udev_dep = dependency('libudev', version : '>= 143', required : false)
if udev_dep.found()
cdata.set('HAVE_UDEV', 1)
......
# Order matters! raop needs rtp!
subdir('rtp')
subdir('raop')
# module name, sources, [headers, extra flags, extra deps, extra libs]
all_modules = [
......@@ -52,8 +54,6 @@ all_modules = [
[ 'module-pipe-sink', 'module-pipe-sink.c' ],
[ 'module-pipe-source', 'module-pipe-source.c' ],
[ 'module-position-event-sounds', 'module-position-event-sounds.c' ],
# [ 'module-raop-discover', 'raop/module-raop-discover.c' ],
# [ 'module-raop-sink', 'raop/module-raop-sink.c' ],
[ 'module-remap-sink', 'module-remap-sink.c' ],
[ 'module-remap-source', 'module-remap-source.c' ],
[ 'module-rescue-streams', 'module-rescue-streams.c' ],
......@@ -117,6 +117,13 @@ if jack_dep.found()
]
endif
if openssl_dep.found()
all_modules += [
# [ 'module-raop-discover', 'raop/module-raop-discover.c' ],
[ 'module-raop-sink', 'raop/module-raop-sink.c', [], [], [], libraop ],
]
endif
if systemd_dep.found()
all_modules += [
[ 'module-systemd-login', 'module-systemd-login.c', [], [], [systemd_dep] ],
......
libraop_sources = [
'raop-client.c',
'raop-crypto.c',
'raop-packet-buffer.c',
'raop-sink.c',
'raop-util.c',
]
libraop_headers = [
'raop-client.h',
'raop-crypto.h',
'raop-packet-buffer.h',
'raop-sink.h',
'raop-util.h',
]
libraop = shared_library('libraop',
libraop_sources,
libraop_headers,
c_args : [pa_c_args, server_c_args],
include_directories : [configinc, topinc],
dependencies : [libpulse_dep, libpulsecommon_dep, libpulsecore_dep, librtp_dep, openssl_dep],
install : true
)
......@@ -22,3 +22,5 @@ librtp = shared_library('librtp',
dependencies : [libpulse_dep, libpulsecommon_dep, libpulsecore_dep],
install : true
)
librtp_dep = declare_dependency(link_with: librtp)
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