meson: detect opengl api from -base .pc files correctly
authorTim-Philipp Müller <tim@centricular.com>
Tue, 22 Jan 2019 12:52:25 +0000 (12:52 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 22 Jan 2019 13:47:56 +0000 (13:47 +0000)
There was a mismatch between the .pc files generated by
autotools and by meson that would lead to meson not detecting
that opengl api is available even though it is, if -base was
built with autotools. The mismatch has now been rectified in
-base, so we need to update for that.

This is mostly for consistency, this problem didn't seem
to affect anything in -good.

See https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/871

meson.build

index 5eb059b..6416f1c 100644 (file)
@@ -297,7 +297,7 @@ if build_gstgl
     set_variable('gst_gl_have_platform_@0@'.format(p), gst_gl_platforms.contains(p))
   endforeach
 
-  foreach api : ['opengl', 'gles2']
+  foreach api : ['gl', 'gles2']
     set_variable('gst_gl_have_api_@0@'.format(api), gst_gl_apis.contains(api))
   endforeach
 endif