build: vaapi-drm and vaapi-wayland do not depend on egl

This commit is contained in:
Gusar321
2023-07-24 11:47:44 +02:00
committed by sfan5
parent ff3739b36e
commit 2e3cb30e46
2 changed files with 3 additions and 3 deletions

View File

@@ -1405,13 +1405,13 @@ if features['vaapi']
endif
vaapi_drm = dependency('libva-drm', version: '>= 1.1.0', required: get_option('vaapi-drm').require(features['vaapi']))
features += {'vaapi-drm': features['vaapi'] and egl_drm.allowed() and vaapi_drm.found()}
features += {'vaapi-drm': features['vaapi'] and vaapi_drm.found()}
if features['vaapi-drm']
dependencies += vaapi_drm
endif
vaapi_wayland = dependency('libva-wayland', version: '>= 1.1.0', required: get_option('vaapi-wayland').require(features['vaapi']))
features += {'vaapi-wayland': features['vaapi'] and features['egl-wayland'] and vaapi_wayland.found()}
features += {'vaapi-wayland': features['vaapi'] and vaapi_wayland.found()}
if features['vaapi-wayland']
dependencies += vaapi_wayland
endif