add support for a configuration file

Signed-off-by: Liam Beguin <liambeguin@gmail.com>
This commit is contained in:
Liam Beguin 2020-07-16 00:14:18 -04:00
parent 2795ef6c79
commit 2e5c1ff20c
6 changed files with 274 additions and 1 deletions

View file

@ -13,6 +13,14 @@ tio_sources = [
'print.c'
]
# dependencies
if get_option('conffile')
inih = meson.get_compiler('c').find_library('inih')
tio_sources += 'conffile.c'
else
inih = dependency()
endif
tio_c_args = []
if enable_setspeed2
@ -28,6 +36,7 @@ endif
executable('tio',
tio_sources,
c_args: tio_c_args,
dependencies: inih,
install: true )
subdir('bash-completion')