2019-08-21 03:38:35 +01:00
|
|
|
if(WIN32)
|
|
|
|
set(kdeconnect_pausemusic_SRCS
|
2020-01-21 02:55:46 +00:00
|
|
|
pausemusicplugin-win.cpp
|
2019-08-21 03:38:35 +01:00
|
|
|
)
|
|
|
|
else()
|
|
|
|
set(kdeconnect_pausemusic_SRCS
|
|
|
|
pausemusicplugin.cpp
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2022-10-29 15:51:41 +01:00
|
|
|
qt_add_dbus_interface(kdeconnect_pausemusic_SRCS org.mpris.MediaPlayer2.Player.xml mprisplayer)
|
2020-01-21 02:55:46 +00:00
|
|
|
|
2023-07-20 14:31:40 +01:00
|
|
|
kdeconnect_add_plugin(kdeconnect_pausemusic SOURCES ${kdeconnect_pausemusic_SRCS})
|
2013-08-13 05:35:58 +01:00
|
|
|
|
2023-07-20 14:31:40 +01:00
|
|
|
ecm_qt_declare_logging_category(kdeconnect_pausemusic
|
|
|
|
HEADER plugin_pausemusic_debug.h
|
|
|
|
IDENTIFIER KDECONNECT_PLUGIN_PAUSEMUSIC CATEGORY_NAME kdeconnect.plugin.pausemusic
|
|
|
|
DEFAULT_SEVERITY Warning
|
|
|
|
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin pausemusic)")
|
2013-08-13 05:35:58 +01:00
|
|
|
target_link_libraries(kdeconnect_pausemusic
|
2015-03-14 04:19:39 +00:00
|
|
|
kdeconnectcore
|
2022-10-29 15:51:41 +01:00
|
|
|
Qt::Core
|
|
|
|
Qt::DBus
|
2013-08-13 05:35:58 +01:00
|
|
|
)
|
2019-08-21 03:38:35 +01:00
|
|
|
if (NOT WIN32)
|
|
|
|
target_link_libraries(kdeconnect_pausemusic
|
2023-04-15 11:57:52 +01:00
|
|
|
KF${QT_MAJOR_VERSION}::PulseAudioQt
|
2019-08-21 03:38:35 +01:00
|
|
|
)
|
2021-06-22 08:27:13 +01:00
|
|
|
else()
|
|
|
|
target_link_libraries(kdeconnect_pausemusic
|
|
|
|
windowsapp
|
|
|
|
)
|
|
|
|
target_compile_features(kdeconnect_pausemusic PUBLIC cxx_std_17)
|
2019-08-21 03:38:35 +01:00
|
|
|
endif()
|
2013-08-13 05:35:58 +01:00
|
|
|
|
2013-11-22 21:49:40 +00:00
|
|
|
#######################################
|
|
|
|
# Config
|
|
|
|
|
2021-11-18 10:05:09 +00:00
|
|
|
set( kdeconnect_pausemusic_config_SRCS )
|
|
|
|
|
|
|
|
kcoreaddons_add_plugin(kdeconnect_pausemusic_config SOURCES pausemusic_config.cpp INSTALL_NAMESPACE "kdeconnect/kcms")
|
|
|
|
|
|
|
|
ki18n_wrap_ui(kdeconnect_pausemusic_config pausemusic_config.ui)
|
2013-11-22 21:49:40 +00:00
|
|
|
|
|
|
|
target_link_libraries( kdeconnect_pausemusic_config
|
2015-03-14 04:19:39 +00:00
|
|
|
kdeconnectcore
|
|
|
|
kdeconnectpluginkcm
|
2023-04-15 11:57:52 +01:00
|
|
|
KF${QT_MAJOR_VERSION}::I18n
|
|
|
|
KF${QT_MAJOR_VERSION}::KCMUtils
|
2013-11-22 21:49:40 +00:00
|
|
|
)
|