Commit 5ca7a023 authored by Nirbheek Chauhan's avatar Nirbheek Chauhan

meson: Fix osxaudio build on iOS

Must define HAVE_IOS, and use appleframeworks dependency to ensure the
right frameworks are picked up.
parent 66351255
......@@ -134,7 +134,6 @@ check_functions = [
['HAVE_GETPAGESIZE', 'getpagesize', '#include<unistd.h>'],
# check token HAVE_GETTEXT
# check token HAVE_GST_V4L2
# check token HAVE_IOS
['HAVE_ISINF', 'isinf', '#include<math.h>'],
# check token HAVE_LIBV4L2
['HAVE_MMAP', 'mmap', '#include<sys/mman.h>'],
......@@ -154,6 +153,8 @@ foreach f : check_functions
endif
endforeach
cdata.set('HAVE_IOS', host_system == 'ios')
cdata.set('SIZEOF_CHAR', cc.sizeof('char'))
cdata.set('SIZEOF_INT', cc.sizeof('int'))
cdata.set('SIZEOF_LONG', cc.sizeof('long'))
......
......@@ -27,16 +27,17 @@ if not have_osxaudio and osxaudio_option.enabled()
endif
if have_osxaudio
osxaudio_dep = [dependency('CoreAudio'), dependency('AudioToolbox')]
modules = ['CoreAudio', 'AudioToolBox']
if host_system == 'darwin'
osxaudio_dep += [dependency('AudioUnit'), dependency('CoreServices')]
modules += ['AudioUnit', 'CoreServices']
endif
osxaudio_dep = dependency('appleframeworks', modules : modules)
gstosxaudio = library('gstosxaudio',
osxaudio_sources,
c_args : gst_plugins_good_args,
include_directories : [configinc, libsinc],
dependencies : [gstaudio_dep] + osxaudio_dep,
dependencies : [gstaudio_dep, osxaudio_dep],
install : true,
install_dir : plugins_install_dir)
pkgconfig.generate(gstosxaudio, install_dir : plugins_pkgconfig_install_dir)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment