diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2018-12-16 00:41:23 +0000 |
---|---|---|
committer | Sebastian Dröge <slomo@coaxion.net> | 2018-12-17 09:12:53 +0000 |
commit | f102c61397d29ef82ac7ccbc3fc75ce397fbe7bf (patch) | |
tree | fd543f3b9c535b5c44e2622a40ed1552accd0584 /sys | |
parent | 97cc93d6213243149260d33898bbc5c7520a115d (diff) | |
download | gstreamer-plugins-bad-f102c61397d29ef82ac7ccbc3fc75ce397fbe7bf.tar.gz |
meson: build vdpau plugin
Diffstat (limited to 'sys')
-rw-r--r-- | sys/meson.build | 2 | ||||
-rw-r--r-- | sys/vdpau/meson.build | 29 |
2 files changed, 30 insertions, 1 deletions
diff --git a/sys/meson.build b/sys/meson.build index d22d6ac72..01103cf73 100644 --- a/sys/meson.build +++ b/sys/meson.build @@ -20,7 +20,7 @@ subdir('shm') subdir('tinyalsa') subdir('uvch264') subdir('vcd') -#subdir('vdpau') +subdir('vdpau') subdir('wasapi') subdir('winks') subdir('winscreencap') diff --git a/sys/vdpau/meson.build b/sys/vdpau/meson.build new file mode 100644 index 000000000..2cbbfce6b --- /dev/null +++ b/sys/vdpau/meson.build @@ -0,0 +1,29 @@ +vdpau_sources = [ + 'gstvdpau.c', + 'gstvdputils.c', + 'gstvdpvideomemory.c', + 'gstvdpvideobufferpool.c', + 'gstvdpdevice.c', + 'gstvdpdecoder.c', + 'mpeg/gstvdpmpegdec.c', + # 'h264/gsth264dpb.c', + # 'h264/gstvdph264dec.c', +] + +vdpau_dep = dependency('vdpau', required: get_option('vdpau')) + +if vdpau_dep.found() + if x11_dep.found() + gstvdpau = library('gstvdpau', + vdpau_sources, + c_args: gst_plugins_bad_args + ['-DGST_USE_UNSTABLE_API'], + include_directories: [configinc], + dependencies: [gstbase_dep, gstvideo_dep, gstcodecparsers_dep, vdpau_dep, x11_dep, libm], + install: true, + install_dir: plugins_install_dir, + ) + pkgconfig.generate(gstvdpau, install_dir: plugins_pkgconfig_install_dir) + elif get_option('vdpau').enabled() + error('vdpau plugin was enabled but required X11 dependency was not found.') + endif +endif |