From 1d8f28cea7fb8d142a16eb6c9e104c707f2e7d77 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Thu, 21 Mar 2024 10:12:28 +0100 Subject: [PATCH] meson: conditionalize searching for ANGLE's EGL --- meson.build | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index ec5d5555c4..c2f6966e7e 100644 --- a/meson.build +++ b/meson.build @@ -1147,9 +1147,10 @@ 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_dep = cc.find_library('EGL', required: + get_option('egl-angle-lib').require(features['egl-angle'])) egl_angle_lib = get_option('egl-angle-lib').require( - features['egl-angle'] and cc.has_function('eglCreateWindowSurface', + egl_dep.found() and cc.has_function('eglCreateWindowSurface', dependencies: egl_dep, prefix: '#include '), error_message: 'egl-angle-lib could not be found!',