Changeset View
Changeset View
Standalone View
Standalone View
CMakeLists.txt
Show First 20 Lines • Show All 362 Lines • ▼ Show 20 Line(s) | 362 | add_feature_info("linux/fb.h" | |||
---|---|---|---|---|---|
363 | HAVE_LINUX_FB_H | 363 | HAVE_LINUX_FB_H | ||
364 | "Required for the fbdev backend") | 364 | "Required for the fbdev backend") | ||
365 | 365 | | |||
366 | check_symbol_exists(SCHED_RESET_ON_FORK "sched.h" HAVE_SCHED_RESET_ON_FORK) | 366 | check_symbol_exists(SCHED_RESET_ON_FORK "sched.h" HAVE_SCHED_RESET_ON_FORK) | ||
367 | add_feature_info("SCHED_RESET_ON_FORK" | 367 | add_feature_info("SCHED_RESET_ON_FORK" | ||
368 | HAVE_SCHED_RESET_ON_FORK | 368 | HAVE_SCHED_RESET_ON_FORK | ||
369 | "Required for running kwin_wayland with real-time scheduling") | 369 | "Required for running kwin_wayland with real-time scheduling") | ||
370 | 370 | | |||
371 | | ||||
372 | option(ENABLE_PIPEWIRE "Disable PipeWire support. PipeWire is needed for screen sharing and remote desktop" ON) | ||||
373 | if(ENABLE_PIPEWIRE) | ||||
374 | set(HAVE_PIPEWIRE_SUPPORT 1) | ||||
375 | else() | ||||
376 | message(STATUS "Disabling PipeWire support") | ||||
377 | set(HAVE_PIPEWIRE_SUPPORT 0) | ||||
378 | endif() | ||||
379 | add_definitions(-DHAVE_PIPEWIRE_SUPPORT=${HAVE_PIPEWIRE_SUPPORT}) | ||||
380 | | ||||
381 | if(HAVE_PIPEWIRE_SUPPORT) | ||||
382 | pkg_check_modules(PipeWire IMPORTED_TARGET libpipewire-0.3) | ||||
383 | add_feature_info(PipeWire PipeWire_FOUND "Required for screencast portal") | ||||
384 | endif() | ||||
385 | | ||||
371 | configure_file(config-kwin.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-kwin.h) | 386 | configure_file(config-kwin.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-kwin.h) | ||
372 | 387 | | |||
373 | ########### global ############### | 388 | ########### global ############### | ||
374 | set(kwin_effects_dbus_xml ${CMAKE_CURRENT_SOURCE_DIR}/org.kde.kwin.Effects.xml) | 389 | set(kwin_effects_dbus_xml ${CMAKE_CURRENT_SOURCE_DIR}/org.kde.kwin.Effects.xml) | ||
375 | qt5_add_dbus_interface(effects_interface_SRCS ${kwin_effects_dbus_xml} kwineffects_interface) | 390 | qt5_add_dbus_interface(effects_interface_SRCS ${kwin_effects_dbus_xml} kwineffects_interface) | ||
376 | add_library(KWinEffectsInterface STATIC ${effects_interface_SRCS}) | 391 | add_library(KWinEffectsInterface STATIC ${effects_interface_SRCS}) | ||
377 | target_link_libraries(KWinEffectsInterface Qt5::DBus) | 392 | target_link_libraries(KWinEffectsInterface Qt5::DBus) | ||
378 | 393 | | |||
▲ Show 20 Lines • Show All 397 Lines • Show Last 20 Lines |