mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
* Allow to enable/disable suspend & lock event handling * Fix Windows * Refactor event handling incl.CEC * Revert "Auxiliary commit to revert individual files from 0d9a8b8a3a4a09609a339f54c7d8a9384c561282" This reverts commit 80737d926ad151a07b2493dd1685ed502975cb2e. * Support Events for Grabbers generically * Have CECEvent to actions configurable, further clean-ups * Remove handleEvent from V4L2grabber, as grabber will be stopped on suspend * Validate that one CEC Event can only trigger one action * MacOS lock/unlock added * fast windows fix * Corrections * Fix CodeQL findings * add macos lock/unlock handler * Migration of CEC-config and have default actions * Correct target_link_libraries * Include Foundation * macOS include AppKit * Support Scheduled Events, cleanups. * Fix destructing * Fix coredump during free * Consider additional error sceanrio * Fix missing code * install desktop icons * correct bash logic --------- Co-authored-by: Paulchen-Panther <16664240+Paulchen-Panther@users.noreply.github.com>
28 lines
889 B
CMake
28 lines
889 B
CMake
add_library(events
|
|
${CMAKE_SOURCE_DIR}/include/events/EventEnum.h
|
|
${CMAKE_SOURCE_DIR}/include/events/EventHandler.h
|
|
${CMAKE_SOURCE_DIR}/include/events/OsEventHandler.h
|
|
${CMAKE_SOURCE_DIR}/include/events/EventScheduler.h
|
|
${CMAKE_SOURCE_DIR}/libsrc/events/EventHandler.cpp
|
|
${CMAKE_SOURCE_DIR}/libsrc/events/OsEventHandler.cpp
|
|
${CMAKE_SOURCE_DIR}/libsrc/events/EventScheduler.cpp
|
|
)
|
|
|
|
if(UNIX AND NOT APPLE)
|
|
find_package(Qt${QT_VERSION_MAJOR} COMPONENTS DBus QUIET)
|
|
if(Qt${QT_VERSION_MAJOR}DBus_FOUND)
|
|
target_link_libraries(events Qt${QT_VERSION_MAJOR}::DBus)
|
|
target_compile_definitions(events PRIVATE HYPERION_HAS_DBUS)
|
|
endif()
|
|
endif()
|
|
|
|
target_link_libraries(events
|
|
hyperion-utils
|
|
Qt${QT_VERSION_MAJOR}::Widgets
|
|
)
|
|
|
|
if(APPLE)
|
|
set_source_files_properties(OsEventHandler.cpp PROPERTIES COMPILE_FLAGS "-x objective-c++")
|
|
target_link_libraries(events "-framework AppKit")
|
|
endif()
|