Skip to content

Commit

Permalink
meson: Fix gstreamer-gl-prototypes pkgconfig file on Windows
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
nirbheek committed Sep 2, 2020
1 parent 391d09d commit 24d939a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkgconfig/meson.build
Expand Up @@ -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
Expand Down

0 comments on commit 24d939a

Please sign in to comment.