2018-11-20 00:14:17 +00:00
|
|
|
if(WIN32)
|
|
|
|
set(kdeconnect_systemvolume_SRCS
|
|
|
|
systemvolumeplugin-win.cpp
|
|
|
|
)
|
2019-07-02 13:37:01 +01:00
|
|
|
elseif(APPLE)
|
|
|
|
set(kdeconnect_systemvolume_SRCS
|
|
|
|
systemvolumeplugin-macos.cpp
|
|
|
|
)
|
2018-11-20 00:14:17 +00:00
|
|
|
else()
|
|
|
|
set(kdeconnect_systemvolume_SRCS
|
|
|
|
systemvolumeplugin-pulse.cpp
|
|
|
|
)
|
|
|
|
endif()
|
Add systemvolume plugin
Summary: This plugin allows controlling the system value from a remote device.
Test Plan: Apply Android patch, open up MPRIS Activity and play with the slider
Reviewers: #kde_connect, mtijink, albertvaka
Reviewed By: #kde_connect, albertvaka
Subscribers: kdeconnect, apol, zhigalin, albertvaka, davidedmundson, mtijink, #kde_connect
Tags: #kde_connect
Maniphest Tasks: T4659
Differential Revision: https://phabricator.kde.org/D7992
2018-07-27 07:39:46 +01:00
|
|
|
|
2023-07-20 14:31:40 +01:00
|
|
|
kdeconnect_add_plugin(kdeconnect_systemvolume SOURCES ${kdeconnect_systemvolume_SRCS})
|
|
|
|
|
2018-11-20 00:14:17 +00:00
|
|
|
if(WIN32)
|
|
|
|
target_link_libraries(kdeconnect_systemvolume
|
|
|
|
kdeconnectcore
|
2022-10-29 15:51:41 +01:00
|
|
|
Qt::Core
|
2018-11-20 00:14:17 +00:00
|
|
|
ole32
|
|
|
|
)
|
2019-07-02 13:37:01 +01:00
|
|
|
elseif(APPLE)
|
|
|
|
target_link_libraries(kdeconnect_systemvolume
|
|
|
|
kdeconnectcore
|
2022-10-29 15:51:41 +01:00
|
|
|
Qt::Core
|
2019-07-02 13:37:01 +01:00
|
|
|
"-framework CoreAudio"
|
2023-07-31 21:01:12 +01:00
|
|
|
"-framework CoreFoundation"
|
2019-07-02 13:37:01 +01:00
|
|
|
)
|
2018-11-20 00:14:17 +00:00
|
|
|
else()
|
|
|
|
target_link_libraries(kdeconnect_systemvolume
|
|
|
|
kdeconnectcore
|
2022-10-29 15:51:41 +01:00
|
|
|
Qt::Core
|
2023-12-28 16:37:31 +00:00
|
|
|
KF6::PulseAudioQt
|
2018-11-20 00:14:17 +00:00
|
|
|
)
|
|
|
|
endif()
|