5a27c93538
This sends generic multimedia keyboard events, since the implementation using GlobalSystemMediaTransportControlsSessionManager had some problems: the SessionsChanged event doesn't work on recent Windows versions, plus many players don't implement this API (eg: VLC, Windows Media).
17 lines
488 B
CMake
17 lines
488 B
CMake
if(WIN32)
|
|
set(kdeconnect_mpriscontrol_SRCS
|
|
mpriscontrolplugin-win.cpp
|
|
)
|
|
else()
|
|
set(kdeconnect_mpriscontrol_SRCS
|
|
mpriscontrolplugin.cpp
|
|
)
|
|
endif()
|
|
|
|
kdeconnect_add_plugin(kdeconnect_mpriscontrol SOURCES ${kdeconnect_mpriscontrol_SRCS})
|
|
|
|
if(WIN32)
|
|
target_link_libraries(kdeconnect_mpriscontrol kdeconnectcore windowsapp KF${QT_MAJOR_VERSION}::I18n)
|
|
else()
|
|
target_link_libraries(kdeconnect_mpriscontrol Qt::DBus kdeconnectcore kdeconnectinterfaces)
|
|
endif()
|