4 'gstv4l2colorbalance.c',
5 'gstv4l2deviceprovider.c',
28 cdata.set('GST_V4L2_ENABLE_PROBE', get_option('v4l2-probe'))
30 if cc.has_header('linux/videodev2.h') or cc.has_header('sys/videodev2.h') or cc.has_header('sys/videoio.h')
31 message('building v4l2 plugin')
32 cdata.set('HAVE_GST_V4L2', true)
33 gudev_dep = dependency('gudev-1.0', version : '>=147', required : false)
34 cdata.set('HAVE_GUDEV', gudev_dep.found())
36 # libv4l2 is only needed for converting some obscure formats
37 # FIXME: Add a full list of the formats here
38 if get_option('libv4l2')
39 libv4l2_dep = dependency('libv4l2', required : false)
40 cdata.set('HAVE_LIBV4L2', libv4l2_dep.found())
41 libv4l2_deps = [libv4l2_dep]
46 gstv4l2 = library('gstvideo4linux2',
48 c_args : gst_plugins_good_args,
49 include_directories : [configinc, libsinc],
50 dependencies : [gstbase_dep, gstvideo_dep, gstallocators_dep, gudev_dep] + libv4l2_deps,
52 install_dir : plugins_install_dir,
54 pkgconfig.generate(gstv4l2, install_dir : plugins_pkgconfig_install_dir)