meson: va: Remove va option check from gst-libs

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>
This commit is contained in:
He Junyan 2022-02-13 10:39:37 +08:00 committed by GStreamer Marge Bot
parent 5a2e1ecb4d
commit 58d594df44

View file

@ -17,15 +17,14 @@ va_headers = [
gstva_dep = dependency('', required : false)
va_option = get_option('va')
if va_option.disabled() or host_system != 'linux'
if host_system != 'linux'
subdir_done()
endif
libva_req = ['>= 1.6']
libva_dep = dependency('libva', version: libva_req, required: va_option,
libva_dep = dependency('libva', version: libva_req, required: false,
fallback: ['libva', 'libva_dep'])
libva_drm_dep = dependency('libva-drm', version: libva_req, required: va_option,
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())