gl: Fix configure error when libdrm is a subproject
authorXavier Claessens <xavier.claessens@collabora.com>
Mon, 19 Aug 2024 14:33:23 +0000 (10:33 -0400)
committerBackport Bot <gitlab-backport-bot@gstreamer-foundation.org>
Sun, 27 Oct 2024 14:44:02 +0000 (14:44 +0000)
When libdrm is a subproject it cannot be used in a configure time check:
  ERROR: Dependencies must be external dependencies

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

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

index 57af08ced34374d31fca60e24a7e8b4554905e64..4e4087fba06a07a4e77bf7c5c20c06382f6913a3 100644 (file)
@@ -566,7 +566,7 @@ if need_platform_egl != 'no'
     gl_platform_deps += egl_dep
     glconf.set('GST_GL_HAVE_PLATFORM_EGL', 1)
 
-    if cc.has_header('drm_fourcc.h', dependencies: libdrm_dep)
+    if libdrm_dep.type_name() == 'internal' or cc.has_header('drm_fourcc.h', dependencies: libdrm_dep)
       gl_misc_deps += [allocators_dep, libdrm_dep]
       glconf.set('GST_GL_HAVE_DMABUF', 1)
     endif