Skip to content

Commit

Permalink
meson: conditionalize searching for ANGLE's EGL
Browse files Browse the repository at this point in the history
  • Loading branch information
sfan5 committed Mar 21, 2024
1 parent a392f91 commit 1d8f28c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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 <EGL/egl.h>'),
error_message: 'egl-angle-lib could not be found!',
Expand Down

0 comments on commit 1d8f28c

Please sign in to comment.