efedddd905
Split off GBM based buffers to a separate file, which gets only included, when GBM is available. Note, that this also removes the gbmCallback, since already before this patch we did delete the buffers always without it. The plan is to later use this file for via GBM directly imported Wayland buffers as well. Test Plan: Tested with Gl and QPainter backends. Reviewers: #kwin Subscribers: kwin, #kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D5179
31 lines
703 B
CMake
31 lines
703 B
CMake
set(DRM_SOURCES
|
|
drm_backend.cpp
|
|
drm_object.cpp
|
|
drm_object_connector.cpp
|
|
drm_object_crtc.cpp
|
|
drm_object_plane.cpp
|
|
drm_output.cpp
|
|
drm_buffer.cpp
|
|
drm_inputeventfilter.cpp
|
|
logging.cpp
|
|
scene_qpainter_drm_backend.cpp
|
|
screens_drm.cpp
|
|
)
|
|
|
|
if(HAVE_GBM)
|
|
set(DRM_SOURCES ${DRM_SOURCES} egl_gbm_backend.cpp drm_buffer_gbm.cpp)
|
|
endif()
|
|
|
|
add_library(KWinWaylandDrmBackend MODULE ${DRM_SOURCES})
|
|
target_link_libraries(KWinWaylandDrmBackend kwin Libdrm::Libdrm)
|
|
|
|
if(HAVE_GBM)
|
|
target_link_libraries(KWinWaylandDrmBackend gbm::gbm)
|
|
endif()
|
|
|
|
install(
|
|
TARGETS
|
|
KWinWaylandDrmBackend
|
|
DESTINATION
|
|
${PLUGIN_INSTALL_DIR}/org.kde.kwin.waylandbackends/
|
|
)
|