mirror of
https://git.outfoxxed.me/quickshell/quickshell.git
synced 2025-11-06 19:14:57 +11:00
service/notifications: add notifications service
This commit is contained in:
parent
79cbfba48a
commit
d630cc7f76
15 changed files with 1249 additions and 0 deletions
29
src/services/notifications/CMakeLists.txt
Normal file
29
src/services/notifications/CMakeLists.txt
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
qt_add_dbus_adaptor(DBUS_INTERFACES
|
||||
org.freedesktop.Notifications.xml
|
||||
server.hpp
|
||||
qs::service::notifications::NotificationServer
|
||||
dbus_notifications
|
||||
DBusNotificationServer
|
||||
)
|
||||
|
||||
qt_add_library(quickshell-service-notifications STATIC
|
||||
server.cpp
|
||||
notification.cpp
|
||||
dbusimage.cpp
|
||||
qml.cpp
|
||||
${DBUS_INTERFACES}
|
||||
)
|
||||
|
||||
# dbus headers
|
||||
target_include_directories(quickshell-service-notifications PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
|
||||
|
||||
qt_add_qml_module(quickshell-service-notifications
|
||||
URI Quickshell.Services.Notifications
|
||||
VERSION 0.1
|
||||
)
|
||||
|
||||
target_link_libraries(quickshell-service-notifications PRIVATE ${QT_DEPS} quickshell-dbus)
|
||||
target_link_libraries(quickshell PRIVATE quickshell-service-notificationsplugin)
|
||||
|
||||
qs_pch(quickshell-service-notifications)
|
||||
qs_pch(quickshell-service-notificationsplugin)
|
||||
Loading…
Add table
Add a link
Reference in a new issue