endif
optional_deps = []
+gl_objc_args = []
if gl_dep.found() # have desktop GL
opengl_sources += [
optional_deps += allocators_dep
endif
+if ['darwin', 'ios'].contains(host_system)
+ if not have_objc
+ error('No ObjC compiler found')
+ endif
+
+ objc = meson.get_compiler('objc')
+ if not objc.has_argument('-fobjc-arc')
+ error('ARC is required for building')
+ endif
+
+ gl_objc_args += ['-fobjc-arc']
+endif
+
gstopengl = library('gstopengl',
opengl_sources,
c_args : gst_plugins_base_args,
+ objc_args : gst_plugins_base_args + gl_objc_args,
link_args : noseh_link_args,
include_directories : [configinc],
dependencies : [gstgl_dep, video_dep,
install_dir : plugins_install_dir)
pkgconfig.generate(gstopengl, install_dir : plugins_pkgconfig_install_dir)
-plugins += [gstopengl]
\ No newline at end of file
+plugins += [gstopengl]