1srtp_sources = [ 2 'gstsrtp.c', 3 'gstsrtpdec.c', 4 'gstsrtpenc.c', 5] 6 7srtp_cargs = [] 8if get_option('srtp').disabled() 9 subdir_done() 10endif 11 12srtp_dep = dependency('libsrtp2', version : '>= 2.1.0', required : false) 13if srtp_dep.found() 14 srtp_cargs += ['-DHAVE_SRTP2'] 15else 16 srtp_dep = dependency('libsrtp', version: '>= 1.6.0', required : false) 17 if not srtp_dep.found() and cc.has_header_symbol('srtp/srtp.h', 'crypto_policy_set_aes_gcm_128_16_auth') 18 srtp_dep = cc.find_library('srtp', required : false) 19 endif 20endif 21if not srtp_dep.found() and get_option('srtp').enabled() 22 error('srtp plugin enabled but libsrtp not found') 23endif 24 25if srtp_dep.found() 26 gstsrtp_enums = gnome.mkenums_simple('gstsrtp-enumtypes', 27 sources : ['gstsrtpenums.h'], 28 decorator : 'G_GNUC_INTERNAL', 29 install_header: false) 30 31 gstsrtp = library('gstsrtp', 32 srtp_sources, gstsrtp_enums, 33 c_args : gst_plugins_bad_args + srtp_cargs, 34 link_args : noseh_link_args, 35 include_directories : [configinc], 36 dependencies : [gstrtp_dep, gstvideo_dep, srtp_dep], 37 install : true, 38 install_dir : plugins_install_dir, 39 ) 40 pkgconfig.generate(gstsrtp, install_dir : plugins_pkgconfig_install_dir) 41endif 42