summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2020-09-02 21:53:51 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2020-09-02 22:08:02 +0530
commit24d939a19bca07d6fb888dbfb46c06d1bf5e87d6 (patch)
treee7d35e56e7aae5a0cac97ae7c62c1ca125aa5d79
parent391d09dc245a72391ef5a72bb6e3053573f1614c (diff)
downloadgstreamer-plugins-base-24d939a19bca07d6fb888dbfb46c06d1bf5e87d6.tar.gz
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>
-rw-r--r--pkgconfig/meson.build6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgconfig/meson.build b/pkgconfig/meson.build
index 8757894ef..438cb1e86 100644
--- a/pkgconfig/meson.build
+++ b/pkgconfig/meson.build
@@ -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