1osxvideo_sources = ['osxvideosink.m', 'cocoawindow.m'] 2 3have_osxvideo = false 4if host_system != 'darwin' 5 subdir_done() 6endif 7 8osxvideo_opengl_dep = dependency('appleframeworks', modules : ['OpenGL'], required : get_option('osxvideo')) 9osxvideo_cocoa_dep = dependency('appleframeworks', modules : ['Cocoa'], required : get_option('osxvideo')) 10have_objc = add_languages('objc', native: false, required: get_option('osxvideo')) 11 12if have_objc and osxvideo_opengl_dep.found() and osxvideo_cocoa_dep.found() 13 14 # lockFocusIfCanDraw and OpenGL are deprecated in mac os 10.14 15 # Could also have used GL_SILENCE_DEPRECATION for the latter 16 osxvideo_gst_plugins_good_objc_args = gst_plugins_good_args + ['-Wno-deprecated-declarations'] 17 18 gstosxvideo = library('gstosxvideo', 19 osxvideo_sources, 20 c_args : gst_plugins_good_args, 21 objc_args : osxvideo_gst_plugins_good_objc_args, 22 include_directories : [configinc], 23 dependencies : [gstvideo_dep, osxvideo_opengl_dep, osxvideo_cocoa_dep], 24 install : true, 25 install_dir : plugins_install_dir) 26 pkgconfig.generate(gstosxvideo, install_dir : plugins_pkgconfig_install_dir) 27 plugins += [gstosxvideo] 28endif 29