Replace autotools with meson

To introduce much simpler build configuration which is also easier to
maintain.
This commit is contained in:
Martin Lund 2022-02-09 20:50:50 +01:00
parent c01152bb38
commit e9208d693e
26 changed files with 156 additions and 550 deletions

View file

@ -0,0 +1,19 @@
conf = configuration_data()
conf.set('baudrates', baudrates)
completion_file = configure_file( input: files('tio.in'),
output: 'tio',
configuration: conf,
)
bashcompletiondir = get_option('bashcompletiondir')
if bashcompletiondir == ''
bash_completion_dep = dependency('bash-completion', required: false)
if bash_completion_dep.found()
bashcompletiondir = join_paths(get_option('datadir'), 'bash-completion', 'completions')
endif
endif
if (bashcompletiondir != 'no') and (bashcompletiondir != '')
install_data(completion_file, install_dir: bashcompletiondir)
endif