gstreamer/subprojects/gst-plugins-bad/sys/uvch264/meson.build

28 lines
916 B
Meson
Raw Normal View History

2017-01-02 14:26:40 +00:00
uvch264_sources = [
'gstuvch264.c',
'gstuvch264_mjpgdemux.c',
'gstuvch264_src.c',
2019-06-03 16:18:13 +00:00
'gstuvch264deviceprovider.c',
2017-01-02 14:26:40 +00:00
'uvc_h264.c',
]
libgudev_dep = dependency('gudev-1.0', required : get_option('uvch264'))
libusb_dep = dependency('libusb-1.0', required : get_option('uvch264'))
2017-01-02 14:26:40 +00:00
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
2017-01-02 14:26:40 +00:00
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,
)
2018-10-22 09:30:45 +00:00
plugins += [gstuvch264]
2017-01-02 14:26:40 +00:00
endif