mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 23:06:49 +00:00
meson: Fix GLES2 check
On systems without pkg-config, we have the the library present but not the headers https://bugzilla.gnome.org/show_bug.cgi?id=785010
This commit is contained in:
parent
dcb35318e9
commit
9da1328283
1 changed files with 4 additions and 0 deletions
|
@ -318,6 +318,10 @@ if need_api_gles2 != 'no'
|
||||||
gles2_dep = cc.find_library('GLESv2', required : false)
|
gles2_dep = cc.find_library('GLESv2', required : false)
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
|
if not cc.has_header('GLES2/gl2.h', required : false)
|
||||||
|
gles2_dep = unneeded_dep
|
||||||
|
endif
|
||||||
|
|
||||||
if not gles2_dep.found() and need_api_gles2 == 'yes'
|
if not gles2_dep.found() and need_api_gles2 == 'yes'
|
||||||
error ('Could not find requested OpenGL ES library')
|
error ('Could not find requested OpenGL ES library')
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in a new issue