mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 02:01:12 +00:00
uvch264src: Add meson build support
This commit is contained in:
parent
4f282f6068
commit
b70ef1de49
3 changed files with 23 additions and 7 deletions
|
@ -268,9 +268,6 @@
|
|||
/* Define to enable GSM library (used by gsmenc gsmdec). */
|
||||
#mesondefine HAVE_GSM
|
||||
|
||||
/* Define if gudev is installed */
|
||||
#mesondefine HAVE_GUDEV
|
||||
|
||||
/* Define to 1 if you have the <highgui.h> header file. */
|
||||
#mesondefine HAVE_HIGHGUI_H
|
||||
|
||||
|
@ -502,9 +499,6 @@
|
|||
/* Define to 1 if you have the <unistd.h> header file. */
|
||||
#mesondefine HAVE_UNISTD_H
|
||||
|
||||
/* Define to enable UVC H264 (used by uvch264). */
|
||||
#mesondefine HAVE_UVCH264
|
||||
|
||||
/* Define if valgrind should be used */
|
||||
#mesondefine HAVE_VALGRIND
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ subdir('msdk')
|
|||
#subdir('nvenc')
|
||||
#subdir('opensles')
|
||||
#subdir('shm')
|
||||
#subdir('uvch264')
|
||||
subdir('uvch264')
|
||||
#subdir('vcd')
|
||||
#subdir('vdpau')
|
||||
subdir('wasapi')
|
||||
|
|
22
sys/uvch264/meson.build
Normal file
22
sys/uvch264/meson.build
Normal file
|
@ -0,0 +1,22 @@
|
|||
uvch264_sources = [
|
||||
'gstuvch264.c',
|
||||
'gstuvch264_mjpgdemux.c',
|
||||
'gstuvch264_src.c',
|
||||
'uvc_h264.c',
|
||||
]
|
||||
|
||||
libgudev_dep = dependency('gudev-1.0', required : false)
|
||||
libusb_dep = dependency('libusb-1.0', required : false)
|
||||
has_uvcvideo_h = cc.has_header('linux/uvcvideo.h')
|
||||
|
||||
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,
|
||||
)
|
||||
endif
|
Loading…
Reference in a new issue