mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-13 12:51:16 +00:00
meson: Fix some confusing code in applemedia's build file
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7091>
This commit is contained in:
parent
4293719206
commit
adedac6bd9
1 changed files with 7 additions and 10 deletions
|
@ -20,23 +20,20 @@ applemedia_args = [
|
|||
]
|
||||
|
||||
applemedia_objc_args = []
|
||||
applemedia_found_deps = false
|
||||
applemedia_option = get_option('applemedia')
|
||||
if not ['darwin', 'ios'].contains(host_system) or applemedia_option.disabled()
|
||||
applemedia_found_deps = false
|
||||
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']
|
||||
|
||||
objcpp = meson.get_compiler('objcpp')
|
||||
objc = meson.get_compiler('objc')
|
||||
if not objc.has_argument('-fobjc-arc')
|
||||
error('ARC is required for building')
|
||||
endif
|
||||
|
||||
applemedia_objc_args += ['-fobjc-arc']
|
||||
objcpp = meson.get_compiler('objcpp')
|
||||
|
||||
applemedia_frameworks = []
|
||||
corefoundation_dep = dependency('CoreFoundation', required : applemedia_option)
|
||||
coremedia_dep = dependency('CoreMedia', required : applemedia_option)
|
||||
|
|
Loading…
Reference in a new issue