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 <arnaud.rebillout@collabora.com>
This commit is contained in:
Arnaud Rebillout 2018-09-20 19:30:21 +07:00 committed by Arun Raghavan
parent cf1795bccc
commit 14486eb08c
2 changed files with 11 additions and 1 deletions

View file

@ -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)