From 9a87ce418b26664e4c0b942b397acd53e05c120c Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Mon, 19 Aug 2024 10:33:23 -0400 Subject: [PATCH] gl: Fix configure error when libdrm is a subproject When libdrm is a subproject it cannot be used in a configure time check: ERROR: Dependencies must be external dependencies Part-of: --- subprojects/gst-plugins-base/gst-libs/gst/gl/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-base/gst-libs/gst/gl/meson.build b/subprojects/gst-plugins-base/gst-libs/gst/gl/meson.build index 57af08ced3..4e4087fba0 100644 --- a/subprojects/gst-plugins-base/gst-libs/gst/gl/meson.build +++ b/subprojects/gst-plugins-base/gst-libs/gst/gl/meson.build @@ -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