gl/meson: Add OpenGL dependency by OSX way

Otherwise, it fails to link with the message below:

```
ld: can't map file, errno=22 file '...'
```
https://gitlab.freedesktop.org/gstreamer/gst-build/issues/13
This commit is contained in:
Justin Kim 2018-12-14 12:02:36 +09:00
parent 01a25d81c1
commit c961dc9f8f

View file

@ -295,7 +295,7 @@ gl_dep = unneeded_dep
glx_dep = unneeded_dep
if need_api_opengl != 'no' or need_platform_glx != 'no'
if host_system == 'darwin'
gl_dep = dependency('OpenGL', required : false)
gl_dep = dependency('appleframeworks', modules : ['OpenGL'], required : false)
else
# override meson's braindead gl detection on osx/windows/etc by forcing pkg-config
gl_dep = dependency('gl', method: 'pkg-config', required : false)