Use meson feature for lynx

This means you don't have to explicitly disable the lynx option to build
pavucontrol if you don't have lynx installed.

Signed-off-by: Alfred Wingate <parona@protonmail.com>
This commit is contained in:
Alfred Wingate 2025-03-10 20:49:54 +02:00 committed by Arun Raghavan
parent 66a3e147b0
commit c9ae5ab0cb
3 changed files with 3 additions and 5 deletions

View file

@ -15,7 +15,7 @@ if tidy.found()
test('XHTML documentation uses correct mark-up', tidy, args: ['-e', readme_html])
endif
if with_lynx
if lynx.found()
custom_target(
'README',
input: readme_html,

View file

@ -4,8 +4,6 @@ project('pavucontrol', 'cpp',
default_options : [ 'c_std=gnu11', 'cpp_std=c++17' ]
)
with_lynx = get_option('lynx')
cpp = meson.get_compiler('cpp')
gtkmm_dep = dependency('gtkmm-4.0', version : '>= 4.0', required : true)
@ -21,7 +19,7 @@ have_pulse_messaging_api = cpp.has_function('pa_context_send_message_to_object',
json_glib_dep = dependency('json-glib-1.0', required : have_pulse_messaging_api)
lynx = find_program('lynx', required: with_lynx)
lynx = find_program('lynx', required: get_option('lynx'))
tidy = find_program('tidy', required: false)
configinc = include_directories('.')

View file

@ -1,5 +1,5 @@
option('lynx',
type : 'boolean', value : true,
type : 'feature', value : 'auto',
description : 'Enable building of the README text file for installation')
option('audio-feedback',
type : 'feature', value: 'auto',