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