diff options
author | Arun Raghavan <arun@arunraghavan.net> | 2017-01-02 19:56:40 +0530 |
---|---|---|
committer | Arun Raghavan <arun@arunraghavan.net> | 2017-01-02 19:58:06 +0530 |
commit | b70ef1de49d50de36e4baf68c5876c3969d856e7 (patch) | |
tree | b857ef4ff9a994ddbb8cc2e49fbd8cde26e66a0e /sys | |
parent | 4f282f60689750ecde092a36eac6c18d7333f8a4 (diff) | |
download | gstreamer-plugins-bad-b70ef1de49d50de36e4baf68c5876c3969d856e7.tar.gz |
uvch264src: Add meson build support
Diffstat (limited to 'sys')
-rw-r--r-- | sys/meson.build | 2 | ||||
-rw-r--r-- | sys/uvch264/meson.build | 22 |
2 files changed, 23 insertions, 1 deletions
diff --git a/sys/meson.build b/sys/meson.build index a61b4d174..3d7dffb13 100644 --- a/sys/meson.build +++ b/sys/meson.build @@ -17,7 +17,7 @@ subdir('msdk') #subdir('nvenc') #subdir('opensles') #subdir('shm') -#subdir('uvch264') +subdir('uvch264') #subdir('vcd') #subdir('vdpau') subdir('wasapi') diff --git a/sys/uvch264/meson.build b/sys/uvch264/meson.build new file mode 100644 index 000000000..00c2684bf --- /dev/null +++ b/sys/uvch264/meson.build @@ -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 |