meson: Fix applemedia dependencies on iOS

These were accidentally not being found because they were incorrectly
specified.
This commit is contained in:
Nirbheek Chauhan 2018-09-01 21:48:31 +05:30
parent cea5e3fcdb
commit 0146ad219e

View file

@ -23,7 +23,6 @@ if not ['darwin', 'ios'].contains(host_system) or applemedia_option.disabled()
subdir_done() subdir_done()
endif endif
applemedia_deps_found = false
applemedia_frameworks = [] applemedia_frameworks = []
corefoundation_dep = dependency('CoreFoundation', required : applemedia_option) corefoundation_dep = dependency('CoreFoundation', required : applemedia_option)
coremedia_dep = dependency('CoreMedia', required : applemedia_option) coremedia_dep = dependency('CoreMedia', required : applemedia_option)
@ -57,9 +56,8 @@ if host_system == 'ios'
] ]
applemedia_objc_args += ['-fobjc-abi-version=2', '-fobjc-legacy-dispatch'] applemedia_objc_args += ['-fobjc-abi-version=2', '-fobjc-legacy-dispatch']
foundation_dep = dependency('Foundation', required : applemedia_option) ios_media_dep = dependency('appleframeworks', modules : ['Foundation', 'AssetsLibrary'], required : applemedia_option)
coremedia_dep = dependency('AssetsLibrary', required : applemedia_option) applemedia_frameworks += [ios_media_dep]
applemedia_frameworks += [foundation_dep, coremedia_dep]
else else
applemedia_sources += [ applemedia_sources += [
'iosurfacememory.c' 'iosurfacememory.c'