629cc70123
Summary: This changes splits up the monster file containing different types used in the DRM backend into separate files per class: - drm_backend.{h,cpp} - drm_buffer.{h,cpp} - drm_inputeventfilter.{h,cpp} - drm_output.{h,cpp} - drm_pointer.h No actual code changes other than build fixes. Clean up headers in the split files. Test Plan: Builds with GBM enabled Reviewers: graesslin Reviewed By: graesslin Subscribers: plasma-devel Projects: #plasma Differential Revision: https://phabricator.kde.org/D1168
27 lines
587 B
CMake
27 lines
587 B
CMake
set(DRM_SOURCES
|
|
drm_backend.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)
|
|
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/
|
|
)
|