gstreamer/subprojects/gst-plugins-bad/sys/dvb/meson.build
Xavier Claessens b004464ac6 Remove glib and gobject dependencies everywhere
They are part of gst_dep already and we have to make sure to always have
gst_dep. The order in dependencies matters, because it is also the order
in which Meson will set -I args. We want gstreamer's config.h to take
precedence over glib's private config.h when it's a subproject.

While at it, remove useless fallback args for gmodule/gio dependencies,
only gstreamer core needs it.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2031>
2022-04-01 16:32:17 +00:00

46 lines
1.1 KiB
Meson

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',
'gstdvbelement.c',
'gstdvbsrc.c',
'parsechannels.c',
]
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
if have_dvb
gstdvb = library('gstdvb',
dvb_sources,
c_args : gst_plugins_bad_args + [ '-DGST_USE_UNSTABLE_API' ],
include_directories : [configinc, libsinc],
dependencies : [gstmpegts_dep, gstbase_dep],
install : true,
install_dir : plugins_install_dir,
)
pkgconfig.generate(gstdvb, install_dir : plugins_pkgconfig_install_dir)
plugins += [gstdvb]
endif