mirror of
https://github.com/tio/tio.git
synced 2026-05-01 23:07:58 +02:00
Replace autotools with meson
To introduce much simpler build configuration which is also easier to maintain.
This commit is contained in:
parent
c01152bb38
commit
e9208d693e
26 changed files with 156 additions and 550 deletions
19
src/bash-completion/meson.build
Normal file
19
src/bash-completion/meson.build
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue