Warning, /plasma/plasma-workspace/shell/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 set(USE_SCRIPTING 1) 0002 0003 configure_file(config-ktexteditor.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-ktexteditor.h ) 0004 0005 configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config-plasma.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-plasma.h) 0006 0007 add_definitions(-DPLASMA_DEPRECATED=) 0008 0009 set(scripting_SRC 0010 scripting/appinterface.cpp 0011 scripting/applet.cpp 0012 scripting/containment.cpp 0013 scripting/configgroup.cpp 0014 scripting/panel.cpp 0015 scripting/scriptengine.cpp 0016 scripting/scriptengine_v1.cpp 0017 scripting/widget.cpp 0018 ) 0019 0020 set(plasmashell_dbusXML dbus/org.kde.PlasmaShell.xml) 0021 qt_add_dbus_adaptor(scripting_SRC ${plasmashell_dbusXML} shellcorona.h ShellCorona plasmashelladaptor) 0022 0023 ecm_qt_declare_logging_category(plasmashell HEADER debug.h 0024 IDENTIFIER PLASMASHELL 0025 CATEGORY_NAME kde.plasmashell 0026 DEFAULT_SEVERITY Info 0027 DESCRIPTION "plasmashell" 0028 EXPORT PLASMAWORKSPACE) 0029 0030 ecm_qt_declare_logging_category(plasmashell HEADER screenpool-debug.h 0031 IDENTIFIER SCREENPOOL 0032 CATEGORY_NAME kde.plasmashell.screenpool 0033 DEFAULT_SEVERITY Info 0034 DESCRIPTION "plasmashell screenpool" 0035 EXPORT PLASMAWORKSPACE 0036 ) 0037 set (plasma_shell_SRCS 0038 alternativeshelper.cpp 0039 autohidescreenedge.cpp 0040 main.cpp 0041 containmentconfigview.cpp 0042 currentcontainmentactionsmodel.cpp 0043 desktopview.cpp 0044 panelview.cpp 0045 panelconfigview.cpp 0046 panelshadows.cpp 0047 shellcorona.cpp 0048 osd.cpp 0049 coronatesthelper.cpp 0050 strutmanager.cpp 0051 debug.cpp 0052 screenpool-debug.cpp 0053 screenpool.cpp 0054 softwarerendernotifier.cpp 0055 shellcontainmentconfig.cpp 0056 ${scripting_SRC} 0057 ) 0058 0059 if (TARGET KF6::UserFeedbackCore) 0060 set(plasma_shell_SRCS 0061 ${plasma_shell_SRCS} 0062 userfeedback.cpp 0063 ) 0064 endif() 0065 0066 kconfig_add_kcfg_files(plasma_shell_SRCS ../kcms/colors/colorssettings.kcfgc GENERATE_MOC) 0067 0068 add_executable(plasmashell) 0069 qt6_generate_wayland_protocol_client_sources(plasmashell FILES 0070 ${PLASMA_WAYLAND_PROTOCOLS_DIR}/kde-screen-edge-v1.xml 0071 ) 0072 0073 set(krunner_xml ${plasma-workspace_SOURCE_DIR}/krunner/dbus/org.kde.krunner.App.xml) 0074 qt_add_dbus_interface(plasma_shell_SRCS ${krunner_xml} krunner_interface) 0075 0076 0077 target_sources(plasmashell PRIVATE ${plasma_shell_SRCS}) 0078 0079 target_link_libraries(plasmashell 0080 Qt::Quick 0081 Qt::DBus 0082 Qt::WaylandClient 0083 KF6::KIOCore 0084 KF6::WindowSystem 0085 KF6::ConfigCore # Activate KRunner on the desktop 0086 KF6::Crash 0087 Plasma::Plasma 0088 Plasma::PlasmaQuick 0089 KF6::Solid 0090 KF6::Svg 0091 KF6::I18n 0092 Plasma::Activities 0093 KF6::GlobalAccel 0094 KF6::CoreAddons 0095 KF6::DBusAddons 0096 KF6::XmlGui 0097 KF6::WidgetsAddons 0098 KF6::ConfigGui 0099 KF6::Package 0100 Plasma::KWaylandClient 0101 KF6::Notifications 0102 KF6::GuiAddons 0103 KF6::Service 0104 KF6::StatusNotifierItem 0105 PW::KWorkspace 0106 Wayland::Client 0107 LayerShellQt::Interface 0108 ) 0109 target_link_libraries(plasmashell KF6::ConfigQml) 0110 if (TARGET KF6::UserFeedbackCore) 0111 target_link_libraries(plasmashell KF6::UserFeedbackCore) 0112 target_compile_definitions(plasmashell PRIVATE -DWITH_KUSERFEEDBACKCORE) 0113 endif() 0114 0115 target_include_directories(plasmashell PRIVATE "${CMAKE_BINARY_DIR}") 0116 target_compile_definitions(plasmashell PRIVATE -DPROJECT_VERSION="${PROJECT_VERSION}") 0117 0118 if(HAVE_X11) 0119 target_link_libraries(plasmashell XCB::XCB XCB::RANDR) 0120 target_link_libraries(plasmashell Qt::GuiPrivate) 0121 endif() 0122 0123 configure_file(org.kde.plasmashell.desktop.cmake ${CMAKE_CURRENT_BINARY_DIR}/org.kde.plasmashell.desktop @ONLY) 0124 0125 install(TARGETS plasmashell ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) 0126 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/org.kde.plasmashell.desktop DESTINATION ${KDE_INSTALL_APPDIR}) 0127 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/org.kde.plasmashell.desktop DESTINATION ${KDE_INSTALL_AUTOSTARTDIR}) 0128 install( FILES dbus/org.kde.PlasmaShell.xml DESTINATION ${KDE_INSTALL_DBUSINTERFACEDIR} ) 0129 0130 ecm_install_configured_files(INPUT plasma-plasmashell.service.in @ONLY DESTINATION ${KDE_INSTALL_SYSTEMDUSERUNITDIR}) 0131 0132 add_subdirectory(packageplugins) 0133 if(BUILD_TESTING) 0134 add_subdirectory(autotests) 0135 add_subdirectory(tests) 0136 endif() 0137 0138 add_subdirectory(kconf_update)