1dvb_sources = [ 2 'camapplication.c', 3 'camapplicationinfo.c', 4 'cam.c', 5 'camconditionalaccess.c', 6 'camdevice.c', 7 'camresourcemanager.c', 8 'camsession.c', 9 'camswclient.c', 10 'camtransport.c', 11 'camutils.c', 12 'dvbbasebin.c', 13 'gstdvb.c', 14 'gstdvbsrc.c', 15 'parsechannels.c', 16] 17 18if get_option('dvb').disabled() 19 subdir_done() 20endif 21 22dvb_check_code = ''' 23#include <linux/dvb/version.h> 24#if DVB_API_VERSION < 5 || (DVB_API_VERSION == 5 && DVB_API_VERSION_MINOR <= 4) 25#error "Incompatible dvb API" 26#endif' 27''' 28have_dvb = cc.compiles(dvb_check_code) 29if not have_dvb and get_option('dvb').enabled() 30 error('DVB plugin enabled but dvb headers not found') 31endif 32 33if have_dvb 34 gstdvb = library('gstdvb', 35 dvb_sources, 36 c_args : gst_plugins_bad_args + [ '-DGST_USE_UNSTABLE_API' ], 37 include_directories : [configinc, libsinc], 38 dependencies : [gstmpegts_dep, gstbase_dep, glib_dep], 39 install : true, 40 install_dir : plugins_install_dir, 41 ) 42 pkgconfig.generate(gstdvb, install_dir : plugins_pkgconfig_install_dir) 43endif 44