mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
gl/meson: force the gl dependency to use pkg-config
Meson has an internal override for dependency('gl') which we do not want to use as it assumes too many things. Force meson to only search for gl.pc.
This commit is contained in:
parent
8596f5a5b4
commit
1ceccb5b58
1 changed files with 3 additions and 1 deletions
|
@ -268,7 +268,9 @@ gl_include_header = '''
|
|||
gl_dep = unneeded_dep
|
||||
glx_dep = unneeded_dep
|
||||
if need_api_opengl != 'no' or need_platform_glx != 'no'
|
||||
gl_dep = dependency('gl', required : false)
|
||||
# override meson's braindead gl detection on osx/windows/etc by forcing pkg-config
|
||||
gl_dep = dependency('gl', method: 'pkg-config', required : false)
|
||||
|
||||
if not gl_dep.found()
|
||||
if host_machine.system() == 'windows'
|
||||
gl_dep = cc.find_library('opengl32', required : false)
|
||||
|
|
Loading…
Reference in a new issue