pw-cli: Work without readline too

Build and install pw-cli using getline() (standardized in POSIX.1-2008)
if readline is not found.
This commit is contained in:
Jonas Holmberg 2022-06-15 16:00:22 +02:00
parent b9fa0e6f28
commit 671fc51d27
3 changed files with 41 additions and 12 deletions

View file

@ -17,13 +17,11 @@ foreach t : tools_sources
)
endforeach
if readline_dep.found()
executable('pw-cli',
'pw-cli.c',
install: true,
dependencies: [pipewire_dep, readline_dep]
)
endif
executable('pw-cli',
'pw-cli.c',
install: true,
dependencies: [pipewire_dep, readline_dep]
)
if ncurses_dep.found()
executable('pw-top',