2015-05-05 15:58:09 +00:00
|
|
|
set(DRM_SOURCES
|
|
|
|
drm_backend.cpp
|
2016-08-31 12:00:31 +00:00
|
|
|
drm_object.cpp
|
|
|
|
drm_object_connector.cpp
|
|
|
|
drm_object_crtc.cpp
|
|
|
|
drm_object_plane.cpp
|
2016-03-21 14:11:17 +00:00
|
|
|
drm_output.cpp
|
|
|
|
drm_buffer.cpp
|
|
|
|
drm_inputeventfilter.cpp
|
2015-05-05 15:58:09 +00:00
|
|
|
logging.cpp
|
|
|
|
scene_qpainter_drm_backend.cpp
|
|
|
|
screens_drm.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
if(HAVE_GBM)
|
2017-05-09 19:00:33 +00:00
|
|
|
set(DRM_SOURCES ${DRM_SOURCES} egl_gbm_backend.cpp drm_buffer_gbm.cpp)
|
2015-05-05 15:58:09 +00:00
|
|
|
endif()
|
|
|
|
|
|
|
|
add_library(KWinWaylandDrmBackend MODULE ${DRM_SOURCES})
|
2017-08-11 19:40:49 +00:00
|
|
|
target_link_libraries(KWinWaylandDrmBackend kwin Libdrm::Libdrm SceneQPainterBackend)
|
2015-05-05 15:58:09 +00:00
|
|
|
|
|
|
|
if(HAVE_GBM)
|
|
|
|
target_link_libraries(KWinWaylandDrmBackend gbm::gbm)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
install(
|
|
|
|
TARGETS
|
|
|
|
KWinWaylandDrmBackend
|
|
|
|
DESTINATION
|
|
|
|
${PLUGIN_INSTALL_DIR}/org.kde.kwin.waylandbackends/
|
|
|
|
)
|