Commit 5758a197 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

[kcminit] Remove unused xcb dependency

parent a15b0abf
find_package(XCB OPTIONAL_COMPONENTS XCB)
set_package_properties(XCB PROPERTIES DESCRIPTION "Xcb libraries"
URL "https://www.x.org"
TYPE OPTIONAL
PURPOSE "Required for enabling special X11 multihead mode")
configure_file(config-xcb.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-xcb.h)
########### next target ###############
set(kcminit_KDEINIT_SRCS main.cpp)
......@@ -15,9 +8,6 @@ qt5_add_dbus_interface(kcminit_KDEINIT_SRCS ${klauncher_xml} klauncher_iface)
kf5_add_kdeinit_executable( kcminit ${kcminit_KDEINIT_SRCS})
target_link_libraries(kdeinit_kcminit Qt::Core Qt::Gui Qt::DBus KF5::CoreAddons KF5::Service KF5::I18n PW::KWorkspace)
if (XCB_XCB_FOUND)
target_link_libraries(kdeinit_kcminit XCB::XCB)
endif()
install(TARGETS kdeinit_kcminit ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} )
install(TARGETS kcminit ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} )
......@@ -28,7 +18,6 @@ install(TARGETS kcminit ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} )
set(kcminit_startup_KDEINIT_SRCS main.cpp)
qt5_add_dbus_interface(kcminit_startup_KDEINIT_SRCS ${klauncher_xml} klauncher_iface)
kf5_add_kdeinit_executable( kcminit_startup ${kcminit_startup_KDEINIT_SRCS})
......@@ -36,9 +25,6 @@ ecm_install_configured_files(INPUT plasma-kcminit-phase1.service.in plasma-kcmi
DESTINATION ${SYSTEMD_USER_UNIT_INSTALL_DIR})
target_link_libraries(kdeinit_kcminit_startup Qt::Core Qt::Gui Qt::DBus KF5::CoreAddons KF5::Service KF5::I18n PW::KWorkspace)
if (XCB_XCB_FOUND)
target_link_libraries(kdeinit_kcminit_startup XCB::XCB)
endif()
install(TARGETS kdeinit_kcminit_startup ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} )
install(TARGETS kcminit_startup ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} )
......
/* Define if you have XCB at all */
#cmakedefine XCB_FOUND
......@@ -18,15 +18,10 @@
*/
#include <config-workspace.h>
#include <config-xcb.h>
#include "klauncher_iface.h"
#include "main.h"
#ifdef XCB_FOUND
#include <xcb/xcb.h>
#endif
#include <unistd.h>
#include <QDBusConnection>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment