meson: Fix warning building GstGLEGL
authorThibault Saunier <tsaunier@igalia.com>
Sat, 16 Oct 2021 01:07:39 +0000 (22:07 -0300)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Sat, 16 Oct 2021 01:24:45 +0000 (01:24 +0000)
We forgot to add the `GstGL` gir as a dependency which was properly
done for GstGLWayland and GstGLX11.

And document why we use a list for `all_libraries`

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1168>

meson.build
subprojects/gst-plugins-base/gst-libs/gst/gl/meson.build

index 06170ec..c10098a 100644 (file)
@@ -113,6 +113,8 @@ subprojects_names = []
 plugins_doc_caches = []
 orc_update_targets = []
 all_plugins = []
+# Using a list and not a dict to keep the ordering to build the chain of `gir`
+# dependencies
 all_libraries = []
 foreach sp : subprojects
   project_name = sp[0]
index 055c0f2..a3d4621 100644 (file)
@@ -1207,10 +1207,12 @@ if build_gstgl
         'extra_args' : gir_init_section + ['--c-include=gst/gl/egl/egl.h'],
         'dependencies' : [video_dep, gst_dep, gst_base_dep]
       }
+      gir_dict = gir + {'includes': gir['includes'] + ['GstGL-1.0']}
+      libraries += [[pkg_name, {'gir': gir_dict}]]
       if not static_build
+        gir += {'includes': gir['includes'] + [gl_gir[0]]}
         gl_egl_gir = gnome.generate_gir(gstgl, kwargs: gir)
       endif
-      libraries += [[pkg_name, {'gir': gir}]]
     endif
     gstglegl_dep = declare_dependency(dependencies : [gstgl_dep],
       sources : gl_egl_gir)