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/7380>
This commit is contained in:
Xavier Claessens 2024-08-19 10:33:23 -04:00 committed by GStreamer Marge Bot
parent 5e90f3eff7
commit 9a87ce418b

View file

@ -566,7 +566,7 @@ if need_platform_egl != 'no'
gl_platform_deps += egl_dep gl_platform_deps += egl_dep
glconf.set('GST_GL_HAVE_PLATFORM_EGL', 1) 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] gl_misc_deps += [allocators_dep, libdrm_dep]
glconf.set('GST_GL_HAVE_DMABUF', 1) glconf.set('GST_GL_HAVE_DMABUF', 1)
endif endif