ee52c8cd03
Summary: Main change is to use libkeepalive to wake up the system to ensure connections stay alive Other minor changes are: -Log daemon messages for debugging purposes -Add way to forece refresh of device list -Minor spec improvements The keepalive changes certainly seem to help, not sure if it completely solves the problems The logging changes are temporary, and I could use them locally, but they only affect sailfish users Im not sure if the refresh method is correct, but seems to force the daemon to check for devices Reviewers: #kde_connect, nicolasfella, albertvaka Reviewed By: #kde_connect, albertvaka Subscribers: kdeconnect Tags: #kde_connect Differential Revision: https://phabricator.kde.org/D15414
29 lines
1.2 KiB
CMake
29 lines
1.2 KiB
CMake
find_package(Qt5 5.2 REQUIRED COMPONENTS DBus)
|
|
|
|
pkg_check_modules(NNQT5 REQUIRED nemonotifications-qt5)
|
|
include_directories(${NNQT5_INCLUDE_DIRS})
|
|
|
|
pkg_check_modules(KEEPALIVE REQUIRED keepalive)
|
|
include_directories(${KEEPALIVE_INCLUDE_DIRS})
|
|
|
|
set(kdeconnectsfos_SRCS
|
|
kdeconnect-sfos.cpp
|
|
)
|
|
|
|
add_executable(kdeconnect-sfos ${kdeconnectsfos_SRCS})
|
|
target_link_libraries(kdeconnect-sfos Qt5::Quick sailfishapp)
|
|
|
|
install(TARGETS kdeconnect-sfos ${INSTALL_TARGETS_DEFAULT_ARGS})
|
|
install(PROGRAMS kdeconnect-sfos.desktop DESTINATION ${XDG_APPS_INSTALL_DIR})
|
|
INSTALL( DIRECTORY qml DESTINATION ${SHARE_INSTALL_PREFIX}/kdeconnect-sfos/ )
|
|
|
|
#Daemon
|
|
add_executable(kdeconnectd sailfishdaemon.cpp)
|
|
target_link_libraries(kdeconnectd kdeconnectcore KF5::DBusAddons ${NNQT5_LIBRARIES} KF5::I18n ${KEEPALIVE_LIBRARIES})
|
|
|
|
configure_file(kdeconnectd.desktop.cmake ${CMAKE_CURRENT_BINARY_DIR}/kdeconnectd.desktop)
|
|
configure_file(org.kde.kdeconnect.service.in ${CMAKE_CURRENT_BINARY_DIR}/org.kde.kdeconnect.service)
|
|
|
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/kdeconnectd.desktop DESTINATION ${AUTOSTART_INSTALL_DIR})
|
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/org.kde.kdeconnect.service DESTINATION ${DBUS_SERVICES_INSTALL_DIR})
|
|
install(TARGETS kdeconnectd DESTINATION ${LIBEXEC_INSTALL_DIR})
|