meson: Require tinyalsa >= 1.1.0 when building its plugin

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6311>
This commit is contained in:
L. E. Segovia 2024-03-10 12:04:55 -03:00 committed by GStreamer Marge Bot
parent 9c8549c31c
commit 71510860af

View file

@ -2,17 +2,10 @@ if get_option('tinyalsa').disabled()
subdir_done()
endif
have_tinyalsa = cc.has_header ('tinyalsa/asoundlib.h')
if have_tinyalsa
tinyalsa_dep = cc.find_library('tinyalsa', required: false)
have_tinyalsa = tinyalsa_dep.found()
endif
if not have_tinyalsa
tinyalsa_dep = dependency('tinyalsa', required: get_option('tinyalsa'),
fallback: ['tinyalsa', 'tinyalsa_dep'])
have_tinyalsa = tinyalsa_dep.found()
endif
tinyalsa_dep = dependency('tinyalsa', required: get_option('tinyalsa'),
version: '>= 1.1.0',
fallback: ['tinyalsa', 'tinyalsa_dep'])
have_tinyalsa = tinyalsa_dep.found()
if have_tinyalsa
gsttinyalsa = library('gsttinyalsa',