meson: Make lirc optional

Signed-off-by: Arnaud Rebillout <arnaud.rebillout@collabora.com>
This commit is contained in:
Arnaud Rebillout 2018-10-19 17:58:21 +07:00 committed by Arun Raghavan
parent d9b0c66e30
commit 911b12c150
2 changed files with 4 additions and 1 deletions

View file

@ -290,7 +290,7 @@ if jack_dep.found()
cdata.set('HAVE_JACK', 1)
endif
lirc_dep = dependency('lirc', required : false)
lirc_dep = dependency('lirc', required : get_option('lirc'))
if lirc_dep.found()
cdata.set('HAVE_LIRC', 1)
endif

View file

@ -41,6 +41,9 @@ option('fftw',
option('jack',
type : 'feature', value : 'auto',
description : 'Optional JACK support')
option('lirc',
type : 'feature', value : 'auto',
description : 'Optional LIRC support')
option('systemd',
type : 'feature', value : 'auto',
description : 'Optional systemd support')