4b5bde4858
Configurably attach icons as payload to notification packages. By design and due to restrictions on mobile devices *only* png is sent. As KIconLoader preferably returns svg icons from iconPath() we fall back to loading from "hicolor" using KIconTheme directly. Otherwise *many* icons are dropped because of svg format. This also improves slightly the test-case to use a tweaked TestDevice to allow for inspecting sent NetworkPackage-s. REVIEW: 126666
40 lines
1.2 KiB
CMake
40 lines
1.2 KiB
CMake
find_package(KF5 REQUIRED COMPONENTS Notifications KCMUtils I18n IconThemes)
|
|
|
|
set(kdeconnect_notifications_SRCS
|
|
notification.cpp
|
|
notificationsplugin.cpp
|
|
notificationsdbusinterface.cpp
|
|
notificationslistener.cpp
|
|
notifyingapplication.cpp
|
|
)
|
|
|
|
kdeconnect_add_plugin(kdeconnect_notifications JSON kdeconnect_notifications.json SOURCES ${kdeconnect_notifications_SRCS})
|
|
|
|
target_link_libraries(kdeconnect_notifications
|
|
kdeconnectcore
|
|
Qt5::DBus
|
|
KF5::Notifications
|
|
KF5::I18n
|
|
KF5::IconThemes
|
|
)
|
|
|
|
#######################################
|
|
# Config
|
|
|
|
set( kdeconnect_notifications_config_SRCS
|
|
notifications_config.cpp
|
|
notifyingapplication.cpp
|
|
notifyingapplicationmodel.cpp
|
|
)
|
|
ki18n_wrap_ui( kdeconnect_notifications_config_SRCS notifications_config.ui )
|
|
|
|
add_library(kdeconnect_notifications_config MODULE ${kdeconnect_notifications_config_SRCS} )
|
|
target_link_libraries( kdeconnect_notifications_config
|
|
kdeconnectcore
|
|
kdeconnectpluginkcm
|
|
KF5::I18n
|
|
KF5::KCMUtils
|
|
)
|
|
|
|
install( TARGETS kdeconnect_notifications_config DESTINATION ${PLUGIN_INSTALL_DIR} )
|
|
install( FILES kdeconnect_notifications_config.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
|