Force dependency on libinih

Configuration file support is considered a mandatory feature.
This commit is contained in:
Martin Lund 2022-03-11 15:28:29 +01:00
parent 8965b7b42c
commit 659336af51
2 changed files with 4 additions and 12 deletions

View file

@ -1,6 +1,3 @@
option('bashcompletiondir',
type : 'string',
description : 'Directory for bash completion scripts ["no" disables]')
option('configfile',
type: 'boolean', value: true,
description: 'Enable configuration file support')

View file

@ -10,16 +10,11 @@ tio_sources = [
'options.c',
'misc.c',
'tty.c',
'print.c'
'print.c',
'configfile.c'
]
# dependencies
if get_option('configfile')
inih = meson.get_compiler('c').find_library('inih')
tio_sources += 'configfile.c'
else
inih = dependency()
endif
tio_dep = dependency('inih', required: true)
tio_c_args = []
@ -36,7 +31,7 @@ endif
executable('tio',
tio_sources,
c_args: tio_c_args,
dependencies: inih,
dependencies: tio_dep,
install: true )
subdir('bash-completion')