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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7761>
This commit is contained in:
Xavier Claessens 2024-08-19 10:33:23 -04:00 committed by Backport Bot
parent dc39ebcd74
commit 625d8890cb

View 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