mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-11 19:06:33 +00:00
dfe1f6d803
lockFocusIfCanDraw is deprecated in mac os 10.14. Apple suggests a different way to do what that does, but for now, just suppress the deprecation. There's no way to disable just that deprecation, so shut them all down. OpenGL is also deprecated in mac os 10.14. There is a gentle way to turn off just those deprecations (GL_SILENCE_DEPRECATION), but since this commit turns them all off, that's moot. https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/issues/577
27 lines
1.1 KiB
Meson
27 lines
1.1 KiB
Meson
osxvideo_sources = ['osxvideosink.m', 'cocoawindow.m']
|
|
|
|
have_osxvideo = false
|
|
if host_system != 'darwin'
|
|
subdir_done()
|
|
endif
|
|
|
|
osxvideo_opengl_dep = dependency('appleframeworks', modules : ['OpenGL'], required : get_option('osxvideo'))
|
|
osxvideo_cocoa_dep = dependency('appleframeworks', modules : ['Cocoa'], required : get_option('osxvideo'))
|
|
have_objc = add_languages('objc', required : get_option('osxvideo'))
|
|
|
|
if have_objc and osxvideo_opengl_dep.found() and osxvideo_cocoa_dep.found()
|
|
|
|
# lockFocusIfCanDraw and OpenGL are deprecated in mac os 10.14
|
|
# Could also have used GL_SILENCE_DEPRECATION for the latter
|
|
osxvideo_gst_plugins_good_objc_args = gst_plugins_good_args + ['-Wno-deprecated-declarations']
|
|
|
|
gstosxvideo = library('gstosxvideo',
|
|
osxvideo_sources,
|
|
c_args : gst_plugins_good_args,
|
|
objc_args : osxvideo_gst_plugins_good_objc_args,
|
|
include_directories : [configinc],
|
|
dependencies : [gstvideo_dep, osxvideo_opengl_dep, osxvideo_cocoa_dep],
|
|
install : true,
|
|
install_dir : plugins_install_dir)
|
|
pkgconfig.generate(gstosxvideo, install_dir : plugins_pkgconfig_install_dir)
|
|
endif
|