mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-27 10:40:34 +00:00
b55dfb5313
The only plugins remaining are those that haven't been ported to Meson yet, and msdk. Also, the tests are still automagic. https://bugzilla.gnome.org/show_bug.cgi?id=795107
26 lines
936 B
Meson
26 lines
936 B
Meson
uvch264_sources = [
|
|
'gstuvch264.c',
|
|
'gstuvch264_mjpgdemux.c',
|
|
'gstuvch264_src.c',
|
|
'uvc_h264.c',
|
|
]
|
|
|
|
libgudev_dep = dependency('gudev-1.0', required : get_option('uvch264'))
|
|
libusb_dep = dependency('libusb-1.0', required : get_option('uvch264'))
|
|
has_uvcvideo_h = cc.has_header('linux/uvcvideo.h')
|
|
if not has_uvcvideo_h and get_option('uvch264').enabled()
|
|
error('uvch264 plugin enabled but uvcvideo.h not found')
|
|
endif
|
|
|
|
if libgudev_dep.found() and libusb_dep.found() and has_uvcvideo_h
|
|
gstuvch264 = library('gstuvch264',
|
|
uvch264_sources,
|
|
c_args : gst_plugins_bad_args + ['-DGST_USE_UNSTABLE_API'],
|
|
include_directories : [configinc],
|
|
dependencies : [gstbase_dep, gstvideo_dep, gstallocators_dep,
|
|
gstbasecamerabin_dep, libgudev_dep, libusb_dep],
|
|
install : true,
|
|
install_dir : plugins_install_dir,
|
|
)
|
|
pkgconfig.generate(gstuvch264, install_dir : plugins_pkgconfig_install_dir)
|
|
endif
|