applemedia: add the '-fobjc-arc' for darwin/ios

We use ARC so we need to signal that to the compiler.
This commit is contained in:
Matthew Waters 2019-06-17 14:58:50 +10:00
parent ee108d0ed2
commit 38c3d4ca7b

View file

@ -23,6 +23,15 @@ if not ['darwin', 'ios'].contains(host_system) or applemedia_option.disabled()
subdir_done()
endif
if ['darwin', 'ios'].contains(host_system)
objc = meson.get_compiler('objc')
if not objc.has_argument('-fobjc-arc')
error('ARC is required for building')
endif
applemedia_objc_args += ['-fobjc-arc']
endif
applemedia_frameworks = []
corefoundation_dep = dependency('CoreFoundation', required : applemedia_option)
coremedia_dep = dependency('CoreMedia', required : applemedia_option)