2018-12-21 18:23:49 +00:00
|
|
|
if(WIN32)
|
|
|
|
set(kdeconnect_mpriscontrol_SRCS
|
|
|
|
mpriscontrolplugin-win.cpp
|
|
|
|
)
|
|
|
|
else()
|
|
|
|
set(kdeconnect_mpriscontrol_SRCS
|
|
|
|
mpriscontrolplugin.cpp
|
|
|
|
)
|
2013-08-13 05:35:58 +01:00
|
|
|
|
2020-01-20 16:36:44 +00:00
|
|
|
set_source_files_properties(
|
|
|
|
org.freedesktop.DBus.Properties.xml
|
|
|
|
org.mpris.MediaPlayer2.Player.xml
|
|
|
|
org.mpris.MediaPlayer2.xml
|
|
|
|
PROPERTIES
|
|
|
|
NO_NAMESPACE ON)
|
|
|
|
|
2022-10-29 15:51:41 +01:00
|
|
|
qt_add_dbus_interface(kdeconnect_mpriscontrol_SRCS org.freedesktop.DBus.Properties.xml dbusproperties)
|
|
|
|
qt_add_dbus_interface(kdeconnect_mpriscontrol_SRCS org.mpris.MediaPlayer2.Player.xml mprisplayer)
|
|
|
|
qt_add_dbus_interface(kdeconnect_mpriscontrol_SRCS org.mpris.MediaPlayer2.xml mprisroot)
|
2013-08-13 05:35:58 +01:00
|
|
|
|
2018-12-21 18:23:49 +00:00
|
|
|
endif()
|
2013-08-13 05:35:58 +01:00
|
|
|
|
2023-07-20 14:31:40 +01:00
|
|
|
kdeconnect_add_plugin(kdeconnect_mpriscontrol SOURCES ${kdeconnect_mpriscontrol_SRCS})
|
|
|
|
|
|
|
|
ecm_qt_declare_logging_category(kdeconnect_mpriscontrol
|
|
|
|
HEADER plugin_mpris_debug.h
|
2020-05-26 17:55:47 +01:00
|
|
|
IDENTIFIER KDECONNECT_PLUGIN_MPRIS CATEGORY_NAME kdeconnect.plugin.mpris
|
|
|
|
DEFAULT_SEVERITY Warning
|
|
|
|
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin mpris)")
|
2018-12-21 18:23:49 +00:00
|
|
|
if(WIN32)
|
2020-05-29 17:49:20 +01:00
|
|
|
target_link_libraries(kdeconnect_mpriscontrol kdeconnectcore windowsapp)
|
|
|
|
target_compile_features(kdeconnect_mpriscontrol PUBLIC cxx_std_17)
|
2018-12-21 18:23:49 +00:00
|
|
|
else()
|
2022-10-29 15:51:41 +01:00
|
|
|
target_link_libraries(kdeconnect_mpriscontrol Qt::DBus kdeconnectcore)
|
2019-12-22 07:49:55 +00:00
|
|
|
endif()
|