mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-09 16:02:59 +00:00
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:
parent
ee108d0ed2
commit
38c3d4ca7b
1 changed files with 9 additions and 0 deletions
|
@ -23,6 +23,15 @@ if not ['darwin', 'ios'].contains(host_system) or applemedia_option.disabled()
|
||||||
subdir_done()
|
subdir_done()
|
||||||
endif
|
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 = []
|
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)
|
||||||
|
|
Loading…
Reference in a new issue