Add CONFIG+=disable-masterhooks QMake option

This allows disabling the DRM master hooks for environments where
getting DRM master is impossible (such as sandboxes like Flatpak),
but leave the DRM renderer itself enabled for usecases like V4L2
which require the DRM renderer to export DMA-BUFs to EGL.
This commit is contained in:
Cameron Gutman 2025-10-12 23:03:53 -05:00
commit 579ad25a01

View file

@ -325,9 +325,11 @@ libdrm {
HEADERS += streaming/video/ffmpeg-renderers/drm.h
linux {
message(Master hooks enabled)
SOURCES += masterhook.c masterhook_internal.c
LIBS += -ldl -pthread
!disable-masterhooks {
message(Master hooks enabled)
SOURCES += masterhook.c masterhook_internal.c
LIBS += -ldl -pthread
}
}
}
cuda {