Changeset View
Changeset View
Standalone View
Standalone View
CMakeLists.txt
Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Line(s) | 64 | find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS | |||
---|---|---|---|---|---|
65 | Config | 65 | Config | ||
66 | ConfigWidgets | 66 | ConfigWidgets | ||
67 | CoreAddons | 67 | CoreAddons | ||
68 | Crash | 68 | Crash | ||
69 | GlobalAccel | 69 | GlobalAccel | ||
70 | I18n | 70 | I18n | ||
71 | IconThemes | 71 | IconThemes | ||
72 | IdleTime | 72 | IdleTime | ||
73 | Init | | |||
74 | Notifications | 73 | Notifications | ||
75 | Package | 74 | Package | ||
76 | Plasma | 75 | Plasma | ||
77 | Wayland | 76 | Wayland | ||
78 | WidgetsAddons | 77 | WidgetsAddons | ||
79 | WindowSystem | 78 | WindowSystem | ||
80 | ) | 79 | ) | ||
81 | # required frameworks by config modules | 80 | # required frameworks by config modules | ||
▲ Show 20 Lines • Show All 305 Lines • ▼ Show 20 Line(s) | |||||
387 | add_subdirectory(effects) | 386 | add_subdirectory(effects) | ||
388 | add_subdirectory(scripts) | 387 | add_subdirectory(scripts) | ||
389 | add_subdirectory(tabbox) | 388 | add_subdirectory(tabbox) | ||
390 | add_subdirectory(scripting) | 389 | add_subdirectory(scripting) | ||
391 | add_subdirectory(helpers) | 390 | add_subdirectory(helpers) | ||
392 | 391 | | |||
393 | ########### next target ############### | 392 | ########### next target ############### | ||
394 | 393 | | |||
395 | set(kwin_KDEINIT_SRCS | 394 | set(kwin_SRCS | ||
396 | abstract_client.cpp | 395 | abstract_client.cpp | ||
397 | abstract_opengl_context_attribute_builder.cpp | 396 | abstract_opengl_context_attribute_builder.cpp | ||
398 | abstract_output.cpp | 397 | abstract_output.cpp | ||
399 | abstract_wayland_output.cpp | 398 | abstract_wayland_output.cpp | ||
400 | activation.cpp | 399 | activation.cpp | ||
401 | appmenu.cpp | 400 | appmenu.cpp | ||
402 | atoms.cpp | 401 | atoms.cpp | ||
403 | client_machine.cpp | 402 | client_machine.cpp | ||
▲ Show 20 Lines • Show All 95 Lines • ▼ Show 20 Line(s) | |||||
499 | x11eventfilter.cpp | 498 | x11eventfilter.cpp | ||
500 | xcbutils.cpp | 499 | xcbutils.cpp | ||
501 | xdgshellclient.cpp | 500 | xdgshellclient.cpp | ||
502 | xkb.cpp | 501 | xkb.cpp | ||
503 | xwl/xwayland_interface.cpp | 502 | xwl/xwayland_interface.cpp | ||
504 | ) | 503 | ) | ||
505 | 504 | | |||
506 | if (CMAKE_SYSTEM_NAME MATCHES "Linux") | 505 | if (CMAKE_SYSTEM_NAME MATCHES "Linux") | ||
507 | set(kwin_KDEINIT_SRCS | 506 | set(kwin_SRCS | ||
508 | ${kwin_KDEINIT_SRCS} | 507 | ${kwin_SRCS} | ||
509 | colorcorrection/clockskewnotifierengine_linux.cpp | 508 | colorcorrection/clockskewnotifierengine_linux.cpp | ||
510 | ) | 509 | ) | ||
511 | endif() | 510 | endif() | ||
512 | 511 | | |||
513 | include(ECMQtDeclareLoggingCategory) | 512 | include(ECMQtDeclareLoggingCategory) | ||
514 | ecm_qt_declare_logging_category(kwin_KDEINIT_SRCS | 513 | ecm_qt_declare_logging_category(kwin_SRCS | ||
515 | HEADER | 514 | HEADER | ||
516 | colorcorrect_logging.h | 515 | colorcorrect_logging.h | ||
517 | IDENTIFIER | 516 | IDENTIFIER | ||
518 | KWIN_COLORCORRECTION | 517 | KWIN_COLORCORRECTION | ||
519 | CATEGORY_NAME | 518 | CATEGORY_NAME | ||
520 | kwin_colorcorrection | 519 | kwin_colorcorrection | ||
521 | DEFAULT_SEVERITY | 520 | DEFAULT_SEVERITY | ||
522 | Critical | 521 | Critical | ||
523 | ) | 522 | ) | ||
524 | 523 | | |||
525 | if (KWIN_BUILD_TABBOX) | 524 | if (KWIN_BUILD_TABBOX) | ||
526 | include_directories(${Qt5Gui_PRIVATE_INCLUDE_DIRS}) | 525 | include_directories(${Qt5Gui_PRIVATE_INCLUDE_DIRS}) | ||
527 | set(kwin_KDEINIT_SRCS ${kwin_KDEINIT_SRCS} | 526 | set(kwin_SRCS ${kwin_SRCS} | ||
528 | tabbox/clientmodel.cpp | 527 | tabbox/clientmodel.cpp | ||
529 | tabbox/desktopchain.cpp | 528 | tabbox/desktopchain.cpp | ||
530 | tabbox/desktopmodel.cpp | 529 | tabbox/desktopmodel.cpp | ||
531 | tabbox/switcheritem.cpp | 530 | tabbox/switcheritem.cpp | ||
532 | tabbox/tabbox.cpp | 531 | tabbox/tabbox.cpp | ||
533 | tabbox/tabbox_logging.cpp | 532 | tabbox/tabbox_logging.cpp | ||
534 | tabbox/tabboxconfig.cpp | 533 | tabbox/tabboxconfig.cpp | ||
535 | tabbox/tabboxhandler.cpp | 534 | tabbox/tabboxhandler.cpp | ||
536 | tabbox/x11_filter.cpp | 535 | tabbox/x11_filter.cpp | ||
537 | ) | 536 | ) | ||
538 | endif() | 537 | endif() | ||
539 | 538 | | |||
540 | if (KWIN_BUILD_ACTIVITIES) | 539 | if (KWIN_BUILD_ACTIVITIES) | ||
541 | set(kwin_KDEINIT_SRCS ${kwin_KDEINIT_SRCS} | 540 | set(kwin_SRCS ${kwin_SRCS} | ||
542 | activities.cpp | 541 | activities.cpp | ||
543 | ) | 542 | ) | ||
544 | endif() | 543 | endif() | ||
545 | 544 | | |||
546 | if (HAVE_LINUX_VT_H) | 545 | if (HAVE_LINUX_VT_H) | ||
547 | set(kwin_KDEINIT_SRCS ${kwin_KDEINIT_SRCS} | 546 | set(kwin_SRCS ${kwin_SRCS} | ||
548 | virtual_terminal.cpp | 547 | virtual_terminal.cpp | ||
549 | ) | 548 | ) | ||
550 | endif() | 549 | endif() | ||
551 | 550 | | |||
552 | kconfig_add_kcfg_files(kwin_KDEINIT_SRCS settings.kcfgc) | 551 | kconfig_add_kcfg_files(kwin_SRCS settings.kcfgc) | ||
553 | kconfig_add_kcfg_files(kwin_KDEINIT_SRCS colorcorrection/colorcorrect_settings.kcfgc) | 552 | kconfig_add_kcfg_files(kwin_SRCS colorcorrection/colorcorrect_settings.kcfgc) | ||
554 | 553 | | |||
555 | qt5_add_dbus_adaptor(kwin_KDEINIT_SRCS org.kde.KWin.xml dbusinterface.h KWin::DBusInterface) | 554 | qt5_add_dbus_adaptor(kwin_SRCS org.kde.KWin.xml dbusinterface.h KWin::DBusInterface) | ||
556 | qt5_add_dbus_adaptor(kwin_KDEINIT_SRCS org.kde.kwin.Compositing.xml dbusinterface.h KWin::CompositorDBusInterface) | 555 | qt5_add_dbus_adaptor(kwin_SRCS org.kde.kwin.Compositing.xml dbusinterface.h KWin::CompositorDBusInterface) | ||
557 | qt5_add_dbus_adaptor(kwin_KDEINIT_SRCS org.kde.kwin.ColorCorrect.xml colorcorrection/colorcorrectdbusinterface.h KWin::ColorCorrect::ColorCorrectDBusInterface) | 556 | qt5_add_dbus_adaptor(kwin_SRCS org.kde.kwin.ColorCorrect.xml colorcorrection/colorcorrectdbusinterface.h KWin::ColorCorrect::ColorCorrectDBusInterface) | ||
558 | qt5_add_dbus_adaptor(kwin_KDEINIT_SRCS ${kwin_effects_dbus_xml} effects.h KWin::EffectsHandlerImpl) | 557 | qt5_add_dbus_adaptor(kwin_SRCS ${kwin_effects_dbus_xml} effects.h KWin::EffectsHandlerImpl) | ||
559 | qt5_add_dbus_adaptor(kwin_KDEINIT_SRCS org.kde.kwin.OrientationSensor.xml orientation_sensor.h KWin::OrientationSensor) | 558 | qt5_add_dbus_adaptor(kwin_SRCS org.kde.kwin.OrientationSensor.xml orientation_sensor.h KWin::OrientationSensor) | ||
560 | qt5_add_dbus_adaptor(kwin_KDEINIT_SRCS org.kde.KWin.VirtualDesktopManager.xml dbusinterface.h KWin::VirtualDesktopManagerDBusInterface) | 559 | qt5_add_dbus_adaptor(kwin_SRCS org.kde.KWin.VirtualDesktopManager.xml dbusinterface.h KWin::VirtualDesktopManagerDBusInterface) | ||
561 | qt5_add_dbus_adaptor(kwin_KDEINIT_SRCS org.kde.KWin.Session.xml sm.h KWin::SessionManager) | 560 | qt5_add_dbus_adaptor(kwin_SRCS org.kde.KWin.Session.xml sm.h KWin::SessionManager) | ||
562 | 561 | | |||
563 | qt5_add_dbus_interface(kwin_KDEINIT_SRCS ${KSCREENLOCKER_DBUS_INTERFACES_DIR}/kf5_org.freedesktop.ScreenSaver.xml screenlocker_interface) | 562 | qt5_add_dbus_interface(kwin_SRCS ${KSCREENLOCKER_DBUS_INTERFACES_DIR}/kf5_org.freedesktop.ScreenSaver.xml screenlocker_interface) | ||
564 | qt5_add_dbus_interface(kwin_KDEINIT_SRCS ${KSCREENLOCKER_DBUS_INTERFACES_DIR}/org.kde.screensaver.xml kscreenlocker_interface) | 563 | qt5_add_dbus_interface(kwin_SRCS ${KSCREENLOCKER_DBUS_INTERFACES_DIR}/org.kde.screensaver.xml kscreenlocker_interface) | ||
565 | qt5_add_dbus_interface(kwin_KDEINIT_SRCS org.kde.kappmenu.xml appmenu_interface) | 564 | qt5_add_dbus_interface(kwin_SRCS org.kde.kappmenu.xml appmenu_interface) | ||
566 | 565 | | |||
567 | ki18n_wrap_ui(kwin_KDEINIT_SRCS | 566 | ki18n_wrap_ui(kwin_SRCS | ||
568 | debug_console.ui | 567 | debug_console.ui | ||
569 | shortcutdialog.ui | 568 | shortcutdialog.ui | ||
570 | ) | 569 | ) | ||
571 | 570 | | |||
572 | ########### target link libraries ############### | 571 | ########### target link libraries ############### | ||
573 | 572 | | |||
574 | set(kwin_OWN_LIBS | 573 | set(kwin_OWN_LIBS | ||
575 | kwineffects | 574 | kwineffects | ||
▲ Show 20 Lines • Show All 66 Lines • ▼ Show 20 Line(s) | 638 | set(kwinLibs | |||
642 | ${kwin_KDE_LIBS} | 641 | ${kwin_KDE_LIBS} | ||
643 | ${kwin_XLIB_LIBS} | 642 | ${kwin_XLIB_LIBS} | ||
644 | ${kwin_XCB_LIBS} | 643 | ${kwin_XCB_LIBS} | ||
645 | ${kwin_WAYLAND_LIBS} | 644 | ${kwin_WAYLAND_LIBS} | ||
646 | ${UDEV_LIBS} | 645 | ${UDEV_LIBS} | ||
647 | Libinput::Libinput | 646 | Libinput::Libinput | ||
648 | ) | 647 | ) | ||
649 | 648 | | |||
650 | add_library(kwin SHARED ${kwin_KDEINIT_SRCS}) | 649 | add_library(kwin SHARED ${kwin_SRCS}) | ||
651 | 650 | | |||
652 | set_target_properties(kwin PROPERTIES | 651 | set_target_properties(kwin PROPERTIES | ||
653 | VERSION ${PROJECT_VERSION} | 652 | VERSION ${PROJECT_VERSION} | ||
654 | SOVERSION ${PROJECT_VERSION_MAJOR} | 653 | SOVERSION ${PROJECT_VERSION_MAJOR} | ||
655 | ) | 654 | ) | ||
656 | 655 | | |||
657 | target_link_libraries(kwin ${kwinLibs}) | 656 | target_link_libraries(kwin ${kwinLibs}) | ||
658 | generate_export_header(kwin EXPORT_FILE_NAME kwin_export.h) | 657 | generate_export_header(kwin EXPORT_FILE_NAME kwin_export.h) | ||
659 | 658 | | |||
660 | target_link_libraries(kwin kwinglutils ${epoxy_LIBRARY}) | 659 | target_link_libraries(kwin kwinglutils ${epoxy_LIBRARY}) | ||
661 | 660 | | |||
662 | kf5_add_kdeinit_executable(kwin_x11 main_x11.cpp) | 661 | add_executable(kwin_x11 main_x11.cpp) | ||
663 | target_link_libraries(kdeinit_kwin_x11 kwin KF5::Crash Qt5::X11Extras) | 662 | target_link_libraries(kwin_x11 kwin KF5::Crash Qt5::X11Extras) | ||
664 | 663 | | |||
665 | install(TARGETS kwin ${INSTALL_TARGETS_DEFAULT_ARGS} LIBRARY NAMELINK_SKIP) | 664 | install(TARGETS kwin ${INSTALL_TARGETS_DEFAULT_ARGS} LIBRARY NAMELINK_SKIP) | ||
666 | install(TARGETS kdeinit_kwin_x11 ${INSTALL_TARGETS_DEFAULT_ARGS}) | | |||
667 | install(TARGETS kwin_x11 ${INSTALL_TARGETS_DEFAULT_ARGS}) | 665 | install(TARGETS kwin_x11 ${INSTALL_TARGETS_DEFAULT_ARGS}) | ||
668 | 666 | | |||
669 | set(kwin_XWAYLAND_SRCS | 667 | set(kwin_XWAYLAND_SRCS | ||
670 | ${CMAKE_CURRENT_SOURCE_DIR}/xwl/clipboard.cpp | 668 | ${CMAKE_CURRENT_SOURCE_DIR}/xwl/clipboard.cpp | ||
671 | ${CMAKE_CURRENT_SOURCE_DIR}/xwl/databridge.cpp | 669 | ${CMAKE_CURRENT_SOURCE_DIR}/xwl/databridge.cpp | ||
672 | ${CMAKE_CURRENT_SOURCE_DIR}/xwl/dnd.cpp | 670 | ${CMAKE_CURRENT_SOURCE_DIR}/xwl/dnd.cpp | ||
673 | ${CMAKE_CURRENT_SOURCE_DIR}/xwl/drag.cpp | 671 | ${CMAKE_CURRENT_SOURCE_DIR}/xwl/drag.cpp | ||
674 | ${CMAKE_CURRENT_SOURCE_DIR}/xwl/drag_wl.cpp | 672 | ${CMAKE_CURRENT_SOURCE_DIR}/xwl/drag_wl.cpp | ||
▲ Show 20 Lines • Show All 90 Lines • Show Last 20 Lines |