mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 14:06:23 +00:00
meson: Use required: kwarg in osxaudio to fix FIXME
This wasn't used because this feature didn't exist years ago when this build file was written. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7340>
This commit is contained in:
parent
daaeb57eca
commit
c11eaf56f5
1 changed files with 2 additions and 6 deletions
|
@ -18,14 +18,10 @@ endif
|
|||
|
||||
if host_system == 'darwin'
|
||||
# TODO: https://github.com/mesonbuild/meson/issues/3940
|
||||
have_osxaudio = cc.has_header('CoreAudio/CoreAudio.h')
|
||||
have_osxaudio = cc.has_header('CoreAudio/CoreAudio.h', required: osxaudio_option)
|
||||
osxaudio_sources += ['gstosxaudiodeviceprovider.c']
|
||||
elif host_system == 'ios'
|
||||
have_osxaudio = cc.has_header('CoreAudio/CoreAudioTypes.h')
|
||||
endif
|
||||
|
||||
if not have_osxaudio and osxaudio_option.enabled()
|
||||
error('osxaudio plugin was enabled but CoreAudio headers not found')
|
||||
have_osxaudio = cc.has_header('CoreAudio/CoreAudioTypes.h', required: osxaudio_option)
|
||||
endif
|
||||
|
||||
if have_osxaudio
|
||||
|
|
Loading…
Reference in a new issue