93e0265e4e
Once in a while, we receive complaints from other fellow KDE developers about the file organization of kwin. This change addresses some of those complaints by moving all of source code in a separate directory, src/, thus making the project structure more traditional. Things such as tests are kept in their own toplevel directories. This change may wreak havoc on merge requests that add new files to kwin, but if a patch modifies an already existing file, git should be smart enough to figure out that the file has been relocated. We may potentially split the src/ directory further to make navigating the source code easier, but hopefully this is good enough already.
20 lines
773 B
CMake
20 lines
773 B
CMake
set(VIRTUAL_SOURCES
|
|
egl_gbm_backend.cpp
|
|
scene_qpainter_virtual_backend.cpp
|
|
virtual_backend.cpp
|
|
virtual_output.cpp
|
|
)
|
|
|
|
include(ECMQtDeclareLoggingCategory)
|
|
ecm_qt_declare_logging_category(VIRTUAL_SOURCES HEADER logging.h IDENTIFIER KWIN_VIRTUAL CATEGORY_NAME kwin_platform_virtual DEFAULT_SEVERITY Critical)
|
|
|
|
add_library(KWinWaylandVirtualBackend MODULE ${VIRTUAL_SOURCES})
|
|
set_target_properties(KWinWaylandVirtualBackend PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/org.kde.kwin.waylandbackends/")
|
|
target_link_libraries(KWinWaylandVirtualBackend kwin SceneQPainterBackend SceneOpenGLBackend VsyncSupport)
|
|
|
|
install(
|
|
TARGETS
|
|
KWinWaylandVirtualBackend
|
|
DESTINATION
|
|
${KDE_INSTALL_PLUGINDIR}/org.kde.kwin.waylandbackends/
|
|
)
|