This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository efl.
View the commit online.
commit f4349553072e7e5cfc14371b5183ef0927eabf67
Author: Vincent Torri <vto...@outlook.fr>
AuthorDate: Sat Jun 1 06:56:48 2024 +0200
Add Angle library detection on Windows
---
src/lib/evas/meson.build | 26 ++++++++++++++++++++++++--
1 file changed, 24 insertions(+), 2 deletions(-)
diff --git a/src/lib/evas/meson.build b/src/lib/evas/meson.build
index 5bb4c753e3..03bc02aa95 100644
--- a/src/lib/evas/meson.build
+++ b/src/lib/evas/meson.build
@@ -209,8 +209,30 @@ endif
if get_option('opengl') != 'none'
if get_option('opengl') == 'es-egl'
config_h.set('GL_GLES', '1')
- gl_deps += dependency('glesv2')
- gl_deps += dependency('egl')
+ # Angle library does not provide .pc files
+ if sys_windows
+ glesv2_dep = cc.find_library(
+ 'GLESv2',
+ has_headers: 'GLES2/gl2.h'
+ )
+ if glesv2_dep.found()
+ gl_deps += glesv2_dep
+ else
+ error('GLES 2.0 library not found. Please make sure Angle library is installed, or disable OpenGL support.')
+ endif
+ egl_dep = cc.find_library(
+ 'EGL',
+ has_headers: 'EGL/egl.h'
+ )
+ if egl_dep.found()
+ gl_deps += egl_dep
+ else
+ error('EGL library not found. Please make sure Angle library is installed, or disable OpenGL support.')
+ endif
+ else
+ gl_deps += dependency('glesv2')
+ gl_deps += dependency('egl')
+ endif
else
gl_deps += dependency('gl')
endif
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.