meson: add missing library dep for egl_angle_lib check

This commit is contained in:
Kacper Michajłow 2023-01-17 02:27:04 +01:00 committed by Dudemanguy
parent af537eff06
commit 5fd6789d90
1 changed files with 5 additions and 0 deletions

View File

@ -1127,12 +1127,17 @@ if features['egl-angle']
sources += files('video/out/opengl/angle_dynamic.c')
endif
egl_dep = cc.find_library('EGL', required: get_option('egl-angle-lib'))
egl_angle_lib = get_option('egl-angle-lib').require(
features['egl-angle'] and cc.has_function('eglCreateWindowSurface',
dependencies: egl_dep,
prefix: '#include <EGL/egl.h>'),
error_message: 'egl-angle-lib could not be found!',
)
features += {'egl-angle-lib': egl_angle_lib.allowed()}
if features['egl-angle-lib']
dependencies += egl_dep
endif
egl_angle_win32 = get_option('egl-angle-win32').require(
features['egl-angle'] and features['win32-desktop'],