2016-08-12 15:51:45 +00:00
|
|
|
dvb_sources = [
|
|
|
|
'camapplication.c',
|
|
|
|
'camapplicationinfo.c',
|
|
|
|
'cam.c',
|
|
|
|
'camconditionalaccess.c',
|
|
|
|
'camdevice.c',
|
|
|
|
'camresourcemanager.c',
|
|
|
|
'camsession.c',
|
|
|
|
'camswclient.c',
|
|
|
|
'camtransport.c',
|
|
|
|
'camutils.c',
|
|
|
|
'dvbbasebin.c',
|
|
|
|
'gstdvb.c',
|
2021-03-26 10:00:50 +00:00
|
|
|
'gstdvbelement.c',
|
2016-08-12 15:51:45 +00:00
|
|
|
'gstdvbsrc.c',
|
|
|
|
'parsechannels.c',
|
|
|
|
]
|
|
|
|
|
2018-07-27 13:29:23 +00:00
|
|
|
if get_option('dvb').disabled()
|
|
|
|
subdir_done()
|
|
|
|
endif
|
|
|
|
|
|
|
|
dvb_check_code = '''
|
|
|
|
#include <linux/dvb/version.h>
|
|
|
|
#if DVB_API_VERSION < 5 || (DVB_API_VERSION == 5 && DVB_API_VERSION_MINOR <= 4)
|
|
|
|
#error "Incompatible dvb API"
|
|
|
|
#endif'
|
|
|
|
'''
|
|
|
|
have_dvb = cc.compiles(dvb_check_code)
|
|
|
|
if not have_dvb and get_option('dvb').enabled()
|
|
|
|
error('DVB plugin enabled but dvb headers not found')
|
|
|
|
endif
|
2016-08-12 15:51:45 +00:00
|
|
|
|
2018-07-27 13:29:23 +00:00
|
|
|
if have_dvb
|
2016-08-12 15:51:45 +00:00
|
|
|
gstdvb = library('gstdvb',
|
|
|
|
dvb_sources,
|
|
|
|
c_args : gst_plugins_bad_args + [ '-DGST_USE_UNSTABLE_API' ],
|
|
|
|
include_directories : [configinc, libsinc],
|
2022-03-25 19:00:20 +00:00
|
|
|
dependencies : [gstmpegts_dep, gstbase_dep],
|
2016-08-12 15:51:45 +00:00
|
|
|
install : true,
|
|
|
|
install_dir : plugins_install_dir,
|
|
|
|
)
|
2018-10-22 09:30:45 +00:00
|
|
|
plugins += [gstdvb]
|
2016-08-12 15:51:45 +00:00
|
|
|
endif
|