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:
parent
1144dbccb3
commit
579ad25a01
1 changed files with 5 additions and 3 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue