Changeset View
Changeset View
Standalone View
Standalone View
CMakeLists.txt
Show First 20 Lines • Show All 368 Lines • ▼ Show 20 Line(s) | 368 | add_feature_info("linux/fb.h" | |||
---|---|---|---|---|---|
369 | HAVE_LINUX_FB_H | 369 | HAVE_LINUX_FB_H | ||
370 | "Required for the fbdev backend") | 370 | "Required for the fbdev backend") | ||
371 | 371 | | |||
372 | check_symbol_exists(SCHED_RESET_ON_FORK "sched.h" HAVE_SCHED_RESET_ON_FORK) | 372 | check_symbol_exists(SCHED_RESET_ON_FORK "sched.h" HAVE_SCHED_RESET_ON_FORK) | ||
373 | add_feature_info("SCHED_RESET_ON_FORK" | 373 | add_feature_info("SCHED_RESET_ON_FORK" | ||
374 | HAVE_SCHED_RESET_ON_FORK | 374 | HAVE_SCHED_RESET_ON_FORK | ||
375 | "Required for running kwin_wayland with real-time scheduling") | 375 | "Required for running kwin_wayland with real-time scheduling") | ||
376 | 376 | | |||
377 | | ||||
378 | option(ENABLE_PIPEWIRE "Disable PipeWire support. PipeWire is needed for screen sharing and remote desktop" ON) | ||||
379 | if(ENABLE_PIPEWIRE) | ||||
380 | set(HAVE_PIPEWIRE_SUPPORT 1) | ||||
381 | else() | ||||
382 | message(STATUS "Disabling PipeWire support") | ||||
383 | set(HAVE_PIPEWIRE_SUPPORT 0) | ||||
384 | endif() | ||||
385 | add_definitions(-DHAVE_PIPEWIRE_SUPPORT=${HAVE_PIPEWIRE_SUPPORT}) | ||||
386 | | ||||
387 | if(HAVE_PIPEWIRE_SUPPORT) | ||||
388 | pkg_check_modules(PipeWire IMPORTED_TARGET libpipewire-0.3) | ||||
389 | add_feature_info(PipeWire PipeWire_FOUND "Required for screencast portal") | ||||
390 | endif() | ||||
391 | | ||||
377 | configure_file(config-kwin.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-kwin.h) | 392 | configure_file(config-kwin.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-kwin.h) | ||
378 | 393 | | |||
379 | ########### global ############### | 394 | ########### global ############### | ||
380 | set(kwin_effects_dbus_xml ${CMAKE_CURRENT_SOURCE_DIR}/org.kde.kwin.Effects.xml) | 395 | set(kwin_effects_dbus_xml ${CMAKE_CURRENT_SOURCE_DIR}/org.kde.kwin.Effects.xml) | ||
381 | qt5_add_dbus_interface(effects_interface_SRCS ${kwin_effects_dbus_xml} kwineffects_interface) | 396 | qt5_add_dbus_interface(effects_interface_SRCS ${kwin_effects_dbus_xml} kwineffects_interface) | ||
382 | add_library(KWinEffectsInterface STATIC ${effects_interface_SRCS}) | 397 | add_library(KWinEffectsInterface STATIC ${effects_interface_SRCS}) | ||
383 | target_link_libraries(KWinEffectsInterface Qt5::DBus) | 398 | target_link_libraries(KWinEffectsInterface Qt5::DBus) | ||
384 | 399 | | |||
▲ Show 20 Lines • Show All 130 Lines • ▼ Show 20 Line(s) | 424 | set(kwin_SRCS | |||
515 | x11eventfilter.cpp | 530 | x11eventfilter.cpp | ||
516 | xcbutils.cpp | 531 | xcbutils.cpp | ||
517 | xdgshellclient.cpp | 532 | xdgshellclient.cpp | ||
518 | xkb.cpp | 533 | xkb.cpp | ||
519 | xwaylandclient.cpp | 534 | xwaylandclient.cpp | ||
520 | xwl/xwayland_interface.cpp | 535 | xwl/xwayland_interface.cpp | ||
521 | ) | 536 | ) | ||
522 | 537 | | |||
538 | if(HAVE_PIPEWIRE_SUPPORT) | ||||
539 | set(kwin_SRCS ${kwin_SRCS} | ||||
540 | screencaststream.cpp | ||||
541 | ) | ||||
542 | endif() | ||||
543 | | ||||
523 | if (CMAKE_SYSTEM_NAME MATCHES "Linux") | 544 | if (CMAKE_SYSTEM_NAME MATCHES "Linux") | ||
524 | set(kwin_SRCS | 545 | set(kwin_SRCS | ||
525 | ${kwin_SRCS} | 546 | ${kwin_SRCS} | ||
526 | colorcorrection/clockskewnotifierengine_linux.cpp | 547 | colorcorrection/clockskewnotifierengine_linux.cpp | ||
527 | ) | 548 | ) | ||
528 | endif() | 549 | endif() | ||
529 | 550 | | |||
530 | include(ECMQtDeclareLoggingCategory) | 551 | include(ECMQtDeclareLoggingCategory) | ||
▲ Show 20 Lines • Show All 140 Lines • ▼ Show 20 Line(s) | |||||
671 | endif () | 692 | endif () | ||
672 | 693 | | |||
673 | set_target_properties(kwin PROPERTIES | 694 | set_target_properties(kwin PROPERTIES | ||
674 | VERSION ${PROJECT_VERSION} | 695 | VERSION ${PROJECT_VERSION} | ||
675 | SOVERSION ${PROJECT_VERSION_MAJOR} | 696 | SOVERSION ${PROJECT_VERSION_MAJOR} | ||
676 | ) | 697 | ) | ||
677 | 698 | | |||
678 | target_link_libraries(kwin ${kwinLibs}) | 699 | target_link_libraries(kwin ${kwinLibs}) | ||
700 | | ||||
701 | if(HAVE_PIPEWIRE_SUPPORT) | ||||
702 | target_link_libraries(kwin PkgConfig::PipeWire) | ||||
703 | endif() | ||||
704 | | ||||
679 | generate_export_header(kwin EXPORT_FILE_NAME kwin_export.h) | 705 | generate_export_header(kwin EXPORT_FILE_NAME kwin_export.h) | ||
680 | 706 | | |||
681 | target_link_libraries(kwin kwinglutils ${epoxy_LIBRARY}) | 707 | target_link_libraries(kwin kwinglutils ${epoxy_LIBRARY}) | ||
682 | 708 | | |||
683 | add_executable(kwin_x11 main_x11.cpp) | 709 | add_executable(kwin_x11 main_x11.cpp) | ||
684 | target_link_libraries(kwin_x11 kwin KF5::Crash Qt5::X11Extras) | 710 | target_link_libraries(kwin_x11 kwin KF5::Crash Qt5::X11Extras) | ||
685 | 711 | | |||
686 | install(TARGETS kwin ${INSTALL_TARGETS_DEFAULT_ARGS} LIBRARY NAMELINK_SKIP) | 712 | install(TARGETS kwin ${INSTALL_TARGETS_DEFAULT_ARGS} LIBRARY NAMELINK_SKIP) | ||
▲ Show 20 Lines • Show All 98 Lines • Show Last 20 Lines |