• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1va_sources = [
2  'gstvadisplay.c',
3  'gstvadisplay_drm.c',
4  'gstvadisplay_wrapped.c',
5]
6
7va_headers = [
8  'gstvadisplay.h',
9  'gstvadisplay_drm.h',
10  'gstvadisplay_wrapped.h',
11  'va_fwd.h',
12  'va-prelude.h',
13]
14
15gstva_dep = dependency('', required : false)
16
17va_option = get_option('va')
18if va_option.disabled() or host_system != 'linux'
19  subdir_done()
20endif
21
22libva_req = ['>= 1.6']
23libva_dep = dependency('libva', version: libva_req, required: va_option)
24libva_drm_dep = dependency('libva-drm', version: libva_req, required: va_option)
25
26if not (libva_dep.found() and libva_drm_dep.found())
27  subdir_done()
28endif
29
30libdrm_dep = dependency('libdrm', required: false, fallback: ['libdrm', 'ext_libdrm'])
31cdata.set10('HAVE_LIBDRM', libdrm_dep.found())
32
33gstva = library('gstva-' + api_version,
34  va_sources,
35  c_args : gst_plugins_bad_args + ['-DGST_USE_UNSTABLE_API', '-DBUILDING_GST_VA', '-DG_LOG_DOMAIN="GStreamer-VA"'],
36  include_directories : [configinc, libsinc],
37  version : libversion,
38  soversion : soversion,
39  install : true,
40  dependencies : [gst_dep, libva_dep, libva_drm_dep, libdrm_dep],
41)
42
43pkg_name = 'gstreamer-va-' + api_version
44libraries += [[pkg_name, {'lib': gstva}]]
45
46gstva_dep = declare_dependency(link_with : gstva,
47  include_directories : [libsinc],
48  dependencies : [gst_dep, libva_dep, libva_drm_dep, libdrm_dep])
49meson.override_dependency(pkg_name, gstva_dep)
50