2015-10-02 08:44:29 +00:00
|
|
|
set(VIRTUAL_SOURCES
|
2015-10-08 14:12:09 +00:00
|
|
|
egl_gbm_backend.cpp
|
2015-10-02 08:44:29 +00:00
|
|
|
virtual_backend.cpp
|
|
|
|
scene_qpainter_virtual_backend.cpp
|
|
|
|
screens_virtual.cpp
|
|
|
|
)
|
|
|
|
|
2017-09-08 20:30:18 +00:00
|
|
|
include_directories(${CMAKE_SOURCE_DIR}/platformsupport/scenes/opengl)
|
2016-07-19 08:51:09 +00:00
|
|
|
include(ECMQtDeclareLoggingCategory)
|
|
|
|
ecm_qt_declare_logging_category(VIRTUAL_SOURCES HEADER logging.h IDENTIFIER KWIN_VIRTUAL CATEGORY_NAME kwin_platform_virtual DEFAULT_SEVERITY Critical)
|
|
|
|
|
2015-10-02 08:44:29 +00:00
|
|
|
add_library(KWinWaylandVirtualBackend MODULE ${VIRTUAL_SOURCES})
|
2017-10-03 17:19:35 +00:00
|
|
|
target_link_libraries(KWinWaylandVirtualBackend kwin SceneQPainterBackend SceneOpenGLBackend)
|
2015-10-02 08:44:29 +00:00
|
|
|
|
2016-07-19 08:51:09 +00:00
|
|
|
if(HAVE_GBM)
|
2017-10-03 17:19:35 +00:00
|
|
|
target_link_libraries(KWinWaylandVirtualBackend gbm::gbm)
|
2016-07-19 08:51:09 +00:00
|
|
|
endif()
|
|
|
|
|
2015-10-02 08:44:29 +00:00
|
|
|
install(
|
|
|
|
TARGETS
|
|
|
|
KWinWaylandVirtualBackend
|
|
|
|
DESTINATION
|
|
|
|
${PLUGIN_INSTALL_DIR}/org.kde.kwin.waylandbackends/
|
|
|
|
)
|