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()
|
|
|
|
|
2020-05-26 17:55:47 +01:00
|
|
|
set(debug_file_SRCS)
|
|
|
|
ecm_qt_declare_logging_category(
|
|
|
|
debug_file_SRCS HEADER plugin_pausemusic_debug.h
|
|
|
|
IDENTIFIER KDECONNECT_PLUGIN_PAUSEMUSIC CATEGORY_NAME kdeconnect.plugin.pausemusic
|
|
|
|
DEFAULT_SEVERITY Warning
|
|
|
|
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin pausemusic)")
|
|
|
|
|
2020-01-21 02:55:46 +00:00
|
|
|
qt5_add_dbus_interface(kdeconnect_pausemusic_SRCS org.mpris.MediaPlayer2.Player.xml mprisplayer)
|
|
|
|
|
2020-05-26 17:55:47 +01:00
|
|
|
kdeconnect_add_plugin(kdeconnect_pausemusic JSON kdeconnect_pausemusic.json SOURCES ${kdeconnect_pausemusic_SRCS} ${debug_file_SRCS})
|
2013-08-13 05:35:58 +01:00
|
|
|
|
|
|
|
target_link_libraries(kdeconnect_pausemusic
|
2015-03-14 04:19:39 +00:00
|
|
|
kdeconnectcore
|
2014-09-22 01:37:10 +01:00
|
|
|
Qt5::Core
|
|
|
|
Qt5::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
|
|
|
|
KF5::PulseAudioQt
|
|
|
|
)
|
|
|
|
endif()
|
2013-08-13 05:35:58 +01:00
|
|
|
|
2013-11-22 21:49:40 +00:00
|
|
|
#######################################
|
|
|
|
# Config
|
|
|
|
|
|
|
|
set( kdeconnect_pausemusic_config_SRCS pausemusic_config.cpp )
|
2014-09-08 02:09:18 +01:00
|
|
|
ki18n_wrap_ui( kdeconnect_pausemusic_config_SRCS pausemusic_config.ui )
|
2013-11-22 21:49:40 +00:00
|
|
|
|
2014-06-16 19:02:07 +01:00
|
|
|
add_library(kdeconnect_pausemusic_config MODULE ${kdeconnect_pausemusic_config_SRCS} )
|
2013-11-22 21:49:40 +00:00
|
|
|
target_link_libraries( kdeconnect_pausemusic_config
|
2015-03-14 04:19:39 +00:00
|
|
|
kdeconnectcore
|
|
|
|
kdeconnectpluginkcm
|
2014-09-22 08:43:01 +01:00
|
|
|
KF5::I18n
|
|
|
|
KF5::KCMUtils
|
2013-11-22 21:49:40 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
install( TARGETS kdeconnect_pausemusic_config DESTINATION ${PLUGIN_INSTALL_DIR} )
|
|
|
|
install( FILES kdeconnect_pausemusic_config.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
|