From: Matthew Waters Date: Mon, 17 Jun 2019 04:58:50 +0000 (+1000) Subject: applemedia: add the '-fobjc-arc' for darwin/ios X-Git-Tag: 1.19.3~507^2~3222 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=38c3d4ca7b8e562e1396b902bb6dea07155ed3aa;p=platform%2Fupstream%2Fgstreamer.git applemedia: add the '-fobjc-arc' for darwin/ios We use ARC so we need to signal that to the compiler. --- diff --git a/sys/applemedia/meson.build b/sys/applemedia/meson.build index 7000ce2..3649eac 100644 --- a/sys/applemedia/meson.build +++ b/sys/applemedia/meson.build @@ -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)