Changeset View
Changeset View
Standalone View
Standalone View
CMakeLists.txt
Show First 20 Lines • Show All 269 Lines • ▼ Show 20 Line(s) | |||||
270 | 270 | | |||
271 | find_package(Libcap) | 271 | find_package(Libcap) | ||
272 | set_package_properties(Libcap PROPERTIES | 272 | set_package_properties(Libcap PROPERTIES | ||
273 | TYPE OPTIONAL | 273 | TYPE OPTIONAL | ||
274 | PURPOSE "Needed for running kwin_wayland with real-time scheduling policy" | 274 | PURPOSE "Needed for running kwin_wayland with real-time scheduling policy" | ||
275 | ) | 275 | ) | ||
276 | set(HAVE_LIBCAP ${Libcap_FOUND}) | 276 | set(HAVE_LIBCAP ${Libcap_FOUND}) | ||
277 | 277 | | |||
278 | find_package(epoll) | ||||
graesslin: If this is FreeBSD specific it should be indicated so. Don't list it as an optional feature on… | |||||
279 | set_package_properties(epoll PROPERTIES DESCRIPTION "I/O event notification facility" | ||||
280 | TYPE OPTIONAL | ||||
281 | PURPOSE "Needed for running kwin_wayland" | ||||
282 | ) | ||||
283 | | ||||
278 | include(ECMQMLModules) | 284 | include(ECMQMLModules) | ||
279 | ecm_find_qmlmodule(QtQuick 2.3) | 285 | ecm_find_qmlmodule(QtQuick 2.3) | ||
280 | ecm_find_qmlmodule(QtQuick.Controls 1.2) | 286 | ecm_find_qmlmodule(QtQuick.Controls 1.2) | ||
281 | ecm_find_qmlmodule(QtQuick.Layouts 1.3) | 287 | ecm_find_qmlmodule(QtQuick.Layouts 1.3) | ||
282 | ecm_find_qmlmodule(QtQuick.VirtualKeyboard 2.1) | 288 | ecm_find_qmlmodule(QtQuick.VirtualKeyboard 2.1) | ||
283 | ecm_find_qmlmodule(QtQuick.Window 2.1) | 289 | ecm_find_qmlmodule(QtQuick.Window 2.1) | ||
284 | ecm_find_qmlmodule(QtMultimedia 5.0) | 290 | ecm_find_qmlmodule(QtMultimedia 5.0) | ||
285 | ecm_find_qmlmodule(org.kde.kquickcontrolsaddons 2.0) | 291 | ecm_find_qmlmodule(org.kde.kquickcontrolsaddons 2.0) | ||
▲ Show 20 Lines • Show All 50 Lines • ▼ Show 20 Line(s) | |||||
336 | 342 | | |||
337 | check_include_file("sys/sysmacros.h" HAVE_SYS_SYSMACROS_H) | 343 | check_include_file("sys/sysmacros.h" HAVE_SYS_SYSMACROS_H) | ||
338 | configure_file(config-kwin.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-kwin.h ) | 344 | configure_file(config-kwin.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-kwin.h ) | ||
339 | 345 | | |||
340 | check_include_file("linux/vt.h" HAVE_LINUX_VT_H) | 346 | check_include_file("linux/vt.h" HAVE_LINUX_VT_H) | ||
341 | add_feature_info("linux/vt.h" | 347 | add_feature_info("linux/vt.h" | ||
342 | HAVE_LINUX_VT_H | 348 | HAVE_LINUX_VT_H | ||
343 | "Required for virtual terminal support under wayland") | 349 | "Required for virtual terminal support under wayland") | ||
350 | | ||||
344 | check_include_file("linux/fb.h" HAVE_LINUX_FB_H) | 351 | check_include_file("linux/fb.h" HAVE_LINUX_FB_H) | ||
345 | add_feature_info("linux/fb.h" | 352 | add_feature_info("linux/fb.h" | ||
346 | HAVE_LINUX_FB_H | 353 | HAVE_LINUX_FB_H | ||
347 | "Required for the fbdev backend") | 354 | "Required for the fbdev backend") | ||
348 | 355 | | |||
349 | check_symbol_exists(SCHED_RESET_ON_FORK "sched.h" HAVE_SCHED_RESET_ON_FORK) | 356 | check_symbol_exists(SCHED_RESET_ON_FORK "sched.h" HAVE_SCHED_RESET_ON_FORK) | ||
350 | add_feature_info("SCHED_RESET_ON_FORK" | 357 | add_feature_info("SCHED_RESET_ON_FORK" | ||
351 | HAVE_SCHED_RESET_ON_FORK | 358 | HAVE_SCHED_RESET_ON_FORK | ||
▲ Show 20 Lines • Show All 161 Lines • ▼ Show 20 Line(s) | |||||
513 | 520 | | |||
514 | if(KWIN_BUILD_ACTIVITIES) | 521 | if(KWIN_BUILD_ACTIVITIES) | ||
515 | set( | 522 | set( | ||
516 | kwin_KDEINIT_SRCS ${kwin_KDEINIT_SRCS} | 523 | kwin_KDEINIT_SRCS ${kwin_KDEINIT_SRCS} | ||
517 | activities.cpp | 524 | activities.cpp | ||
518 | ) | 525 | ) | ||
519 | endif() | 526 | endif() | ||
520 | 527 | | |||
521 | if (HAVE_LINUX_VT_H) | 528 | if (HAVE_LINUX_VT_H OR HAVE_epoll) | ||
and if epoll becomes a required feature on FreeBSD we can remove this check here. No need to keep the special if for freebsd. graesslin: and if epoll becomes a required feature on FreeBSD we can remove this check here. No need to… | |||||
522 | set(kwin_KDEINIT_SRCS | 529 | set(kwin_KDEINIT_SRCS | ||
523 | ${kwin_KDEINIT_SRCS} | 530 | ${kwin_KDEINIT_SRCS} | ||
524 | virtual_terminal.cpp | 531 | virtual_terminal.cpp | ||
525 | ) | 532 | ) | ||
526 | endif() | 533 | endif() | ||
527 | 534 | | |||
528 | kconfig_add_kcfg_files(kwin_KDEINIT_SRCS settings.kcfgc) | 535 | kconfig_add_kcfg_files(kwin_KDEINIT_SRCS settings.kcfgc) | ||
529 | kconfig_add_kcfg_files(kwin_KDEINIT_SRCS colorcorrection/colorcorrect_settings.kcfgc) | 536 | kconfig_add_kcfg_files(kwin_KDEINIT_SRCS colorcorrection/colorcorrect_settings.kcfgc) | ||
▲ Show 20 Lines • Show All 98 Lines • ▼ Show 20 Line(s) | 633 | set_target_properties(kwin PROPERTIES | |||
628 | SOVERSION ${PROJECT_VERSION_MAJOR} | 635 | SOVERSION ${PROJECT_VERSION_MAJOR} | ||
629 | ) | 636 | ) | ||
630 | 637 | | |||
631 | target_link_libraries(kwin ${kwinLibs}) | 638 | target_link_libraries(kwin ${kwinLibs}) | ||
632 | generate_export_header(kwin EXPORT_FILE_NAME kwin_export.h) | 639 | generate_export_header(kwin EXPORT_FILE_NAME kwin_export.h) | ||
633 | 640 | | |||
634 | target_link_libraries(kwin kwinglutils ${epoxy_LIBRARY}) | 641 | target_link_libraries(kwin kwinglutils ${epoxy_LIBRARY}) | ||
635 | 642 | | |||
643 | if (epoll_FOUND) | ||||
644 | # Link against epoll if it is provided by a library rather than the kernel | ||||
645 | if (epoll_LIBRARIES) | ||||
646 | target_link_libraries(kwin ${kwinLibs} ${epoll_LIBRARIES}) | ||||
647 | endif() | ||||
648 | endif() | ||||
649 | | ||||
636 | kf5_add_kdeinit_executable(kwin_x11 main_x11.cpp) | 650 | kf5_add_kdeinit_executable(kwin_x11 main_x11.cpp) | ||
637 | target_link_libraries(kdeinit_kwin_x11 kwin KF5::Crash Qt5::X11Extras) | 651 | target_link_libraries(kdeinit_kwin_x11 kwin KF5::Crash Qt5::X11Extras) | ||
638 | 652 | | |||
639 | install(TARGETS kwin ${INSTALL_TARGETS_DEFAULT_ARGS} LIBRARY NAMELINK_SKIP ) | 653 | install(TARGETS kwin ${INSTALL_TARGETS_DEFAULT_ARGS} LIBRARY NAMELINK_SKIP ) | ||
640 | install(TARGETS kdeinit_kwin_x11 ${INSTALL_TARGETS_DEFAULT_ARGS} ) | 654 | install(TARGETS kdeinit_kwin_x11 ${INSTALL_TARGETS_DEFAULT_ARGS} ) | ||
641 | install(TARGETS kwin_x11 ${INSTALL_TARGETS_DEFAULT_ARGS} ) | 655 | install(TARGETS kwin_x11 ${INSTALL_TARGETS_DEFAULT_ARGS} ) | ||
642 | 656 | | |||
643 | add_executable(kwin_wayland tabletmodemanager.cpp main_wayland.cpp) | 657 | add_executable(kwin_wayland tabletmodemanager.cpp main_wayland.cpp) | ||
▲ Show 20 Lines • Show All 74 Lines • Show Last 20 Lines |
If this is FreeBSD specific it should be indicated so. Don't list it as an optional feature on platforms not affected. Please check whether it's needed and then turn it into a required feature on FreeBSD.