diff options
author | Edward Hervey <edward@centricular.com> | 2017-07-17 08:06:22 +0200 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2017-07-17 08:52:57 +0200 |
commit | 9da13282837067c0d8cc24bbfb11165cf1557a33 (patch) | |
tree | 3bb83018af386dd51fce7d12c6fe69034632d173 /gst-libs/gst/gl | |
parent | dcb35318e9d50b153af02822450be89748bb7439 (diff) |
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
Diffstat (limited to 'gst-libs/gst/gl')
-rw-r--r-- | gst-libs/gst/gl/meson.build | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gst-libs/gst/gl/meson.build b/gst-libs/gst/gl/meson.build index 6f88736b6..5ed78b300 100644 --- a/gst-libs/gst/gl/meson.build +++ b/gst-libs/gst/gl/meson.build @@ -318,6 +318,10 @@ if need_api_gles2 != 'no' gles2_dep = cc.find_library('GLESv2', required : false) # 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' error ('Could not find requested OpenGL ES library') endif |