meson: add fftw option

Packagers need to have a way to control whether a dependency is used
even if it's installed/available.
This commit is contained in:
Sam James 2025-06-28 02:59:03 +01:00
parent a77c1cbd0b
commit 64b7a8990e
No known key found for this signature in database
GPG key ID: 738409F520DF9190
2 changed files with 5 additions and 1 deletions

View file

@ -321,7 +321,7 @@ cdata.set('HAVE_DBUS', dbus_dep.found())
sdl_dep = dependency('sdl2', required : get_option('sdl2'))
summary({'SDL2 (video examples)': sdl_dep.found()}, bool_yn: true, section: 'Misc dependencies')
drm_dep = dependency('libdrm', required : false)
fftw_dep = dependency('fftw3f', required : false)
fftw_dep = dependency('fftw3f', required : get_option('fftw'))
summary({'fftw3f (filter-chain convolver)': fftw_dep.found()}, bool_yn: true, section: 'Misc dependencies')
cdata.set('HAVE_FFTW', fftw_dep.found())