Commit 1286b798 authored by Arnaud Rebillout's avatar Arnaud Rebillout Committed by Arun Raghavan
Browse files

meson: Make openssl optional, fix build when openssl is disabled


Signed-off-by: default avatarArnaud Rebillout <arnaud.rebillout@collabora.com>
parent 911b12c1
......@@ -295,7 +295,7 @@ if lirc_dep.found()
cdata.set('HAVE_LIRC', 1)
endif
openssl_dep = dependency('openssl', version : '>= 0.9', required : false)
openssl_dep = dependency('openssl', version : '>= 0.9', required : get_option('openssl'))
if openssl_dep.found()
cdata.set('HAVE_OPENSSL', 1)
endif
......
......@@ -44,6 +44,9 @@ option('jack',
option('lirc',
type : 'feature', value : 'auto',
description : 'Optional LIRC support')
option('openssl',
type : 'feature', value : 'auto',
description : 'Optional OpenSSL support (used for Airtunes/RAOP)')
option('systemd',
type : 'feature', value : 'auto',
description : 'Optional systemd support')
......
# Order matters! raop needs rtp!
subdir('rtp')
subdir('raop')
# module name, sources, [headers, extra flags, extra deps, extra libs]
all_modules = [
......@@ -159,6 +157,7 @@ if lirc_dep.found()
endif
if openssl_dep.found()
subdir('raop')
all_modules += [
[ 'module-raop-sink', 'raop/module-raop-sink.c', [], [], [], libraop ],
]
......
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