1srt_sources = [ 2 'gstsrt.c', 3 'gstsrtelement.c', 4 'gstsrtplugin.c', 5 'gstsrtobject.c', 6 'gstsrtsink.c', 7 'gstsrtsrc.c' 8] 9srt_option = get_option('srt') 10if srt_option.disabled() 11 subdir_done() 12endif 13 14srt_dep = dependency('srt', version : '>=1.3.0', required : false) 15if not srt_dep.found() and cc.has_header_symbol('srt/srt.h', 'srt_startup') 16 srt_dep = cc.find_library('srt', required : false) 17endif 18if not srt_dep.found() and srt_option.enabled() 19 error('srt plugin enabled, but srt library not found') 20endif 21 22if srt_dep.found() 23 gstsrt_enums = gnome.mkenums_simple('gstsrt-enumtypes', 24 sources: ['gstsrt-enums.h'], 25 decorator : 'G_GNUC_INTERNAL', 26 install_header: false) 27 28 gstsrt = library('gstsrt', 29 srt_sources, gstsrt_enums, 30 c_args : gst_plugins_bad_args, 31 link_args : noseh_link_args, 32 include_directories : [configinc, libsinc], 33 dependencies : [gstbase_dep, gio_dep, srt_dep], 34 install : true, 35 install_dir : plugins_install_dir, 36 ) 37 pkgconfig.generate(gstsrt, install_dir : plugins_pkgconfig_install_dir) 38 plugins += [gstsrt] 39endif 40