mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Force dependency on libinih
Configuration file support is considered a mandatory feature.
This commit is contained in:
parent
8965b7b42c
commit
659336af51
2 changed files with 4 additions and 12 deletions
|
|
@ -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')
|
||||
|
|
|
|||
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue