projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee108d0
)
applemedia: add the '-fobjc-arc' for darwin/ios
author
Matthew Waters
<matthew@centricular.com>
Mon, 17 Jun 2019 04:58:50 +0000
(14:58 +1000)
committer
Matthew Waters
<matthew@centricular.com>
Mon, 17 Jun 2019 05:02:15 +0000
(15:02 +1000)
We use ARC so we need to signal that to the compiler.
sys/applemedia/meson.build
patch
|
blob
|
history
diff --git
a/sys/applemedia/meson.build
b/sys/applemedia/meson.build
index
7000ce2
..
3649eac
100644
(file)
--- 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)