mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
meson_options: Add readline option
Make it possible to disable code that depends on readline even if readline is pulled in by another dependency, like bluez.
This commit is contained in:
parent
02add5b3db
commit
050a51aab3
2 changed files with 6 additions and 2 deletions
|
|
@ -260,10 +260,10 @@ cdata.set('HAVE_DBUS', dbus_dep.found())
|
||||||
sdl_dep = dependency('sdl2', required : get_option('sdl2'))
|
sdl_dep = dependency('sdl2', required : get_option('sdl2'))
|
||||||
summary({'SDL2 (video examples)': sdl_dep.found()}, bool_yn: true, section: 'Misc dependencies')
|
summary({'SDL2 (video examples)': sdl_dep.found()}, bool_yn: true, section: 'Misc dependencies')
|
||||||
drm_dep = dependency('libdrm', required : false)
|
drm_dep = dependency('libdrm', required : false)
|
||||||
readline_dep = dependency('readline', required : false)
|
readline_dep = dependency('readline', required : get_option('readline'))
|
||||||
|
|
||||||
if not readline_dep.found()
|
if not readline_dep.found()
|
||||||
readline_dep = cc.find_library('readline', required: false)
|
readline_dep = cc.find_library('readline', required : get_option('readline'))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
summary({'readline (for pw-cli)': readline_dep.found()}, bool_yn: true, section: 'Misc dependencies')
|
summary({'readline (for pw-cli)': readline_dep.found()}, bool_yn: true, section: 'Misc dependencies')
|
||||||
|
|
|
||||||
|
|
@ -265,3 +265,7 @@ option('flatpak',
|
||||||
description: 'Enable Flatpak support',
|
description: 'Enable Flatpak support',
|
||||||
type: 'feature',
|
type: 'feature',
|
||||||
value: 'enabled')
|
value: 'enabled')
|
||||||
|
option('readline',
|
||||||
|
description: 'Enable code that depends on libreadline',
|
||||||
|
type: 'feature',
|
||||||
|
value: 'auto')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue