From 14486eb08cbd8cddd1b0bb9f237dea8a15b8db60 Mon Sep 17 00:00:00 2001 From: Arnaud Rebillout Date: Thu, 20 Sep 2018 19:30:21 +0700 Subject: [PATCH] meson: Enable lirc module, add lirc dependency This is unlike the autotools where we check that a header exist, here we use pkgconfig because upstream ships a pkgconfig. I don't know from which version though... Signed-off-by: Arnaud Rebillout --- meson.build | 5 +++++ src/modules/meson.build | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index f948b2570..ac956ffb8 100644 --- a/meson.build +++ b/meson.build @@ -248,6 +248,11 @@ if fftw_dep.found() cdata.set('HAVE_FFTW', 1) endif +lirc_dep = dependency('lirc', required : false) +if lirc_dep.found() + cdata.set('HAVE_LIRC', 1) +endif + openssl_dep = dependency('openssl', version : '>= 0.9', required : false) if openssl_dep.found() cdata.set('HAVE_OPENSSL', 1) diff --git a/src/modules/meson.build b/src/modules/meson.build index 97a501e7e..e115b61b6 100644 --- a/src/modules/meson.build +++ b/src/modules/meson.build @@ -41,7 +41,6 @@ all_modules = [ [ 'module-intended-roles', 'module-intended-roles.c' ], [ 'module-jackdbus-detect', 'jack/module-jackdbus-detect.c', [], [], [dbus_dep] ], # [ 'module-ladspa-sink', 'module-ladspa-sink.c' ], -# [ 'module-lirc', 'module-lirc.c' ], [ 'module-loopback', 'module-loopback.c' ], [ 'module-match', 'module-match.c' ], [ 'module-native-protocol-fd', 'module-native-protocol-fd.c', [], [], [], libprotocol_native ], @@ -127,6 +126,12 @@ if jack_dep.found() ] endif +if lirc_dep.found() + all_modules += [ + [ 'module-lirc', 'module-lirc.c', [], [], [lirc_dep] ], + ] +endif + if openssl_dep.found() all_modules += [ [ 'module-raop-sink', 'raop/module-raop-sink.c', [], [], [], libraop ],