2 'gstosxaudioringbuffer.c',
3 'gstosxaudioelement.c',
6 'gstosxcoreaudiocommon.c',
12 osxaudio_option = get_option('osxaudio')
13 if osxaudio_option.disabled() or not ['darwin', 'ios'].contains(host_system)
17 if host_system == 'darwin'
18 # TODO: https://github.com/mesonbuild/meson/issues/3940
19 have_osxaudio = cc.has_header('CoreAudio/CoreAudio.h')
20 osxaudio_sources += ['gstosxaudiodeviceprovider.c']
21 elif host_system == 'ios'
22 have_osxaudio = cc.has_header('CoreAudio/CoreAudioTypes.h')
25 if not have_osxaudio and osxaudio_option.enabled()
26 error('osxaudio plugin was enabled but CoreAudio headers not found')
30 modules = ['CoreAudio', 'AudioToolBox']
31 if host_system == 'darwin'
32 modules += ['AudioUnit', 'CoreServices']
34 osxaudio_dep = dependency('appleframeworks', modules : modules)
36 gstosxaudio = library('gstosxaudio',
38 c_args : gst_plugins_good_args,
39 include_directories : [configinc, libsinc],
40 dependencies : [gstaudio_dep, osxaudio_dep],
42 install_dir : plugins_install_dir)
43 pkgconfig.generate(gstosxaudio, install_dir : plugins_pkgconfig_install_dir)