• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1vdpau_sources = [
2  'gstvdpau.c',
3  'gstvdputils.c',
4  'gstvdpvideomemory.c',
5  'gstvdpvideobufferpool.c',
6  'gstvdpdevice.c',
7  'gstvdpdecoder.c',
8  'mpeg/gstvdpmpegdec.c',
9  # 'h264/gsth264dpb.c',
10  # 'h264/gstvdph264dec.c',
11]
12
13vdpau_dep = dependency('vdpau', required: get_option('vdpau'))
14
15if vdpau_dep.found()
16  if x11_dep.found()
17    gstvdpau = library('gstvdpau',
18      vdpau_sources,
19      c_args: gst_plugins_bad_args + ['-DGST_USE_UNSTABLE_API'],
20      include_directories: [configinc],
21      dependencies: [gstbase_dep, gstvideo_dep, gstcodecparsers_dep, vdpau_dep, x11_dep, libm],
22      install: true,
23      install_dir: plugins_install_dir,
24    )
25    pkgconfig.generate(gstvdpau, install_dir: plugins_pkgconfig_install_dir)
26  elif get_option('vdpau').enabled()
27    error('vdpau plugin was enabled but required X11 dependency was not found.')
28  endif
29endif
30