a025791d7b
The backend is based on drm's gbm backend and also uses the GBM platform, but with the default display allowing the driver to pick a device. In addition it doesn't use a surface, but a surfaceless context with a framebuffer object to render to. Given that it diverged too much from drm's backend to allow more code sharing. If KWin is started from a tty it gets a proper driver, if KWin is started in a X11 session it only gets llvmpipe. Given that there is a chance that the autotests using the virtual backend will fail. In that case a follow up patch will enforce either O2 or Q.
16 lines
387 B
CMake
16 lines
387 B
CMake
set(VIRTUAL_SOURCES
|
|
egl_gbm_backend.cpp
|
|
virtual_backend.cpp
|
|
scene_qpainter_virtual_backend.cpp
|
|
screens_virtual.cpp
|
|
)
|
|
|
|
add_library(KWinWaylandVirtualBackend MODULE ${VIRTUAL_SOURCES})
|
|
target_link_libraries(KWinWaylandVirtualBackend kwin)
|
|
|
|
install(
|
|
TARGETS
|
|
KWinWaylandVirtualBackend
|
|
DESTINATION
|
|
${PLUGIN_INSTALL_DIR}/org.kde.kwin.waylandbackends/
|
|
)
|