mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 03:31:05 +00:00
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:
parent
9c8549c31c
commit
71510860af
1 changed files with 4 additions and 11 deletions
|
@ -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'),
|
||||
version: '>= 1.1.0',
|
||||
fallback: ['tinyalsa', 'tinyalsa_dep'])
|
||||
have_tinyalsa = tinyalsa_dep.found()
|
||||
endif
|
||||
|
||||
if have_tinyalsa
|
||||
gsttinyalsa = library('gsttinyalsa',
|
||||
|
|
Loading…
Reference in a new issue