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:
Nirbheek Chauhan 2024-08-12 22:34:17 +05:30
parent daaeb57eca
commit c11eaf56f5

View file

@ -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