mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
meson: Fix gstreamer-gl-prototypes pkgconfig file on Windows
When we're using wgl, we have to link to `-lopengl32`, not `-lGL`. Fixes building of anything that uses this pc file, such as the nvcodec plugin. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/803>
This commit is contained in:
parent
391d09dc24
commit
24d939a19b
1 changed files with 5 additions and 1 deletions
|
@ -58,7 +58,11 @@ if build_gstgl
|
|||
if gl_dep.type_name() == 'pkgconfig'
|
||||
gl_proto_requires += ' gl'
|
||||
elif gl_dep.type_name() == 'library'
|
||||
gl_proto_libs += ' -lGL'
|
||||
if 'wgl' in enabled_gl_platforms
|
||||
gl_proto_libs += ' -lopengl32'
|
||||
else
|
||||
gl_proto_libs += ' -lGL'
|
||||
endif
|
||||
elif gl_dep.type_name() == 'appleframework'
|
||||
gl_proto_libs += ' -framework OpenGL'
|
||||
endif
|
||||
|
|
Loading…
Reference in a new issue