1uvch264_sources = [ 2 'gstuvch264.c', 3 'gstuvch264_mjpgdemux.c', 4 'gstuvch264_src.c', 5 'gstuvch264deviceprovider.c', 6 'uvc_h264.c', 7] 8 9libgudev_dep = dependency('gudev-1.0', required : get_option('uvch264')) 10libusb_dep = dependency('libusb-1.0', required : get_option('uvch264')) 11has_uvcvideo_h = cc.has_header('linux/uvcvideo.h') 12if not has_uvcvideo_h and get_option('uvch264').enabled() 13 error('uvch264 plugin enabled but uvcvideo.h not found') 14endif 15 16if libgudev_dep.found() and libusb_dep.found() and has_uvcvideo_h 17 gstuvch264 = library('gstuvch264', 18 uvch264_sources, 19 c_args : gst_plugins_bad_args + ['-DGST_USE_UNSTABLE_API'], 20 include_directories : [configinc], 21 dependencies : [gstbase_dep, gstvideo_dep, gstallocators_dep, 22 gstbasecamerabin_dep, libgudev_dep, libusb_dep], 23 install : true, 24 install_dir : plugins_install_dir, 25 ) 26 pkgconfig.generate(gstuvch264, install_dir : plugins_pkgconfig_install_dir) 27 plugins += [gstuvch264] 28endif 29