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',
|
option('bashcompletiondir',
|
||||||
type : 'string',
|
type : 'string',
|
||||||
description : 'Directory for bash completion scripts ["no" disables]')
|
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',
|
'options.c',
|
||||||
'misc.c',
|
'misc.c',
|
||||||
'tty.c',
|
'tty.c',
|
||||||
'print.c'
|
'print.c',
|
||||||
|
'configfile.c'
|
||||||
]
|
]
|
||||||
|
|
||||||
# dependencies
|
tio_dep = dependency('inih', required: true)
|
||||||
if get_option('configfile')
|
|
||||||
inih = meson.get_compiler('c').find_library('inih')
|
|
||||||
tio_sources += 'configfile.c'
|
|
||||||
else
|
|
||||||
inih = dependency()
|
|
||||||
endif
|
|
||||||
|
|
||||||
tio_c_args = []
|
tio_c_args = []
|
||||||
|
|
||||||
|
|
@ -36,7 +31,7 @@ endif
|
||||||
executable('tio',
|
executable('tio',
|
||||||
tio_sources,
|
tio_sources,
|
||||||
c_args: tio_c_args,
|
c_args: tio_c_args,
|
||||||
dependencies: inih,
|
dependencies: tio_dep,
|
||||||
install: true )
|
install: true )
|
||||||
|
|
||||||
subdir('bash-completion')
|
subdir('bash-completion')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue