Changeset View
Changeset View
Standalone View
Standalone View
CMakeLists.txt
Show First 20 Lines • Show All 319 Lines • ▼ Show 20 Line(s) | 319 | if (HAVE_PR_SET_DUMPABLE OR HAVE_PROC_TRACE_CTL) | |||
---|---|---|---|---|---|
320 | set(CAN_DISABLE_PTRACE TRUE) | 320 | set(CAN_DISABLE_PTRACE TRUE) | ||
321 | endif() | 321 | endif() | ||
322 | add_feature_info("prctl/procctl tracing control" | 322 | add_feature_info("prctl/procctl tracing control" | ||
323 | CAN_DISABLE_PTRACE | 323 | CAN_DISABLE_PTRACE | ||
324 | "Required for disallowing ptrace on kwin_wayland process") | 324 | "Required for disallowing ptrace on kwin_wayland process") | ||
325 | 325 | | |||
326 | configure_file(config-kwin.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-kwin.h ) | 326 | configure_file(config-kwin.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-kwin.h ) | ||
327 | 327 | | |||
328 | check_include_file("linux/vt.h" HAVE_LINUX_VT_H) | ||||
329 | add_feature_info("linux/vt.h" | ||||
330 | HAVE_LINUX_VT_H | ||||
331 | "Required for virtual terminal support under wayland") | ||||
332 | check_include_file("linux/fb.h" HAVE_LINUX_FB_H) | ||||
333 | add_feature_info("linux/fb.h" | ||||
334 | HAVE_LINUX_FB_H | ||||
335 | "Required for the fbdev backend") | ||||
328 | 336 | | |||
329 | ########### global ############### | 337 | ########### global ############### | ||
330 | set(kwin_effects_dbus_xml ${CMAKE_CURRENT_SOURCE_DIR}/org.kde.kwin.Effects.xml) | 338 | set(kwin_effects_dbus_xml ${CMAKE_CURRENT_SOURCE_DIR}/org.kde.kwin.Effects.xml) | ||
331 | 339 | | |||
332 | include_directories(BEFORE | 340 | include_directories(BEFORE | ||
333 | ${CMAKE_CURRENT_BINARY_DIR}/libkwineffects | 341 | ${CMAKE_CURRENT_BINARY_DIR}/libkwineffects | ||
334 | ${CMAKE_CURRENT_BINARY_DIR} | 342 | ${CMAKE_CURRENT_BINARY_DIR} | ||
335 | ${CMAKE_CURRENT_SOURCE_DIR}/libkwineffects | 343 | ${CMAKE_CURRENT_SOURCE_DIR}/libkwineffects | ||
▲ Show 20 Lines • Show All 139 Lines • ▼ Show 20 Line(s) | |||||
475 | if(HAVE_INPUT) | 483 | if(HAVE_INPUT) | ||
476 | set(kwin_KDEINIT_SRCS | 484 | set(kwin_KDEINIT_SRCS | ||
477 | ${kwin_KDEINIT_SRCS} | 485 | ${kwin_KDEINIT_SRCS} | ||
478 | libinput/context.cpp | 486 | libinput/context.cpp | ||
479 | libinput/connection.cpp | 487 | libinput/connection.cpp | ||
480 | libinput/device.cpp | 488 | libinput/device.cpp | ||
481 | libinput/events.cpp | 489 | libinput/events.cpp | ||
482 | libinput/libinput_logging.cpp | 490 | libinput/libinput_logging.cpp | ||
491 | ) | ||||
492 | if (HAVE_LINUX_VT_H) | ||||
graesslin: I would prefer to not go through system name, but rather on checking whether there is a… | |||||
virtual_terminal.cpp explicitely does #include <linux/foo.h> -- so I think it makes sense here to match for Linux. But we can also change it to check for for example linux/major.h. tcberner: `virtual_terminal.cpp` explicitely does `#include <linux/foo.h>` -- so I think it makes sense… | |||||
I would prefer a check on the include instead of name just for being future proof. Who knows which distribution thinks about changing Linux to MyAwesomeBrandingName ;-) (and no, just in case someone things that: I'm not thinking of Ubuntu here) graesslin: I would prefer a check on the include instead of name just for being future proof. Who knows… | |||||
493 | set(kwin_KDEINIT_SRCS | ||||
494 | ${kwin_KDEINIT_SRCS} | ||||
483 | virtual_terminal.cpp | 495 | virtual_terminal.cpp | ||
484 | ) | 496 | ) | ||
485 | endif() | 497 | endif() | ||
498 | endif() | ||||
486 | 499 | | |||
487 | kconfig_add_kcfg_files(kwin_KDEINIT_SRCS settings.kcfgc) | 500 | kconfig_add_kcfg_files(kwin_KDEINIT_SRCS settings.kcfgc) | ||
488 | 501 | | |||
489 | qt5_add_dbus_adaptor( kwin_KDEINIT_SRCS org.kde.KWin.xml dbusinterface.h KWin::DBusInterface ) | 502 | qt5_add_dbus_adaptor( kwin_KDEINIT_SRCS org.kde.KWin.xml dbusinterface.h KWin::DBusInterface ) | ||
490 | qt5_add_dbus_adaptor( kwin_KDEINIT_SRCS org.kde.kwin.Compositing.xml dbusinterface.h KWin::CompositorDBusInterface ) | 503 | qt5_add_dbus_adaptor( kwin_KDEINIT_SRCS org.kde.kwin.Compositing.xml dbusinterface.h KWin::CompositorDBusInterface ) | ||
491 | qt5_add_dbus_adaptor( kwin_KDEINIT_SRCS ${kwin_effects_dbus_xml} effects.h KWin::EffectsHandlerImpl ) | 504 | qt5_add_dbus_adaptor( kwin_KDEINIT_SRCS ${kwin_effects_dbus_xml} effects.h KWin::EffectsHandlerImpl ) | ||
492 | 505 | | |||
493 | qt5_add_dbus_interface( kwin_KDEINIT_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/org.freedesktop.ScreenSaver.xml screenlocker_interface) | 506 | qt5_add_dbus_interface( kwin_KDEINIT_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/org.freedesktop.ScreenSaver.xml screenlocker_interface) | ||
▲ Show 20 Lines • Show All 165 Lines • Show Last 20 Lines |
I would prefer to not go through system name, but rather on checking whether there is a specific header file available, or a symbol in the header