mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 04:00:37 +00:00
58d594df44
Building libgstva-1.0 unconditionally for the va implementation can be used by non-va plugins such as MSDK even when va plugin is disabled Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1685>
53 lines
1.4 KiB
Meson
53 lines
1.4 KiB
Meson
va_sources = [
|
|
'gstvadisplay.c',
|
|
'gstvadisplay_drm.c',
|
|
'gstvadisplay_wrapped.c',
|
|
'gstvautils.c',
|
|
]
|
|
|
|
va_headers = [
|
|
'gstva.h',
|
|
'gstvadisplay.h',
|
|
'gstvadisplay_drm.h',
|
|
'gstvadisplay_wrapped.h',
|
|
'gstvautils.h',
|
|
'va_fwd.h',
|
|
'va-prelude.h',
|
|
]
|
|
|
|
gstva_dep = dependency('', required : false)
|
|
|
|
if host_system != 'linux'
|
|
subdir_done()
|
|
endif
|
|
|
|
libva_req = ['>= 1.6']
|
|
libva_dep = dependency('libva', version: libva_req, required: false,
|
|
fallback: ['libva', 'libva_dep'])
|
|
libva_drm_dep = dependency('libva-drm', version: libva_req, required: false,
|
|
fallback: ['libva', 'libva_drm_dep'])
|
|
|
|
if not (libva_dep.found() and libva_drm_dep.found())
|
|
subdir_done()
|
|
endif
|
|
|
|
libdrm_dep = dependency('libdrm', required: false, fallback: ['libdrm', 'ext_libdrm'])
|
|
cdata.set10('HAVE_LIBDRM', libdrm_dep.found())
|
|
|
|
gstva = library('gstva-' + api_version,
|
|
va_sources,
|
|
c_args : gst_plugins_bad_args + ['-DGST_USE_UNSTABLE_API', '-DBUILDING_GST_VA', '-DG_LOG_DOMAIN="GStreamer-VA"'],
|
|
include_directories : [configinc, libsinc],
|
|
version : libversion,
|
|
soversion : soversion,
|
|
install : true,
|
|
dependencies : [gst_dep, libva_dep, libva_drm_dep, libdrm_dep],
|
|
)
|
|
|
|
pkg_name = 'gstreamer-va-' + api_version
|
|
libraries += [[pkg_name, {'lib': gstva}]]
|
|
|
|
gstva_dep = declare_dependency(link_with : gstva,
|
|
include_directories : [libsinc],
|
|
dependencies : [gst_dep, libva_dep, libva_drm_dep, libdrm_dep])
|
|
meson.override_dependency(pkg_name, gstva_dep)
|