Clean up unneeded JSON parameter in kcoreaddons_add_plugin
The moc process already rebuilds the plugin when the JSON file changes, consequently the additional parameter is not needed. Task: https://phabricator.kde.org/T14649
This commit is contained in:
parent
ee40d1aea8
commit
30d895d868
28 changed files with 27 additions and 28 deletions
|
@ -10,7 +10,7 @@ set(kdeconnect_battery_SRCS
|
|||
${debug_file_SRCS}
|
||||
)
|
||||
|
||||
kdeconnect_add_plugin(kdeconnect_battery JSON kdeconnect_battery.json SOURCES ${kdeconnect_battery_SRCS})
|
||||
kdeconnect_add_plugin(kdeconnect_battery SOURCES ${kdeconnect_battery_SRCS})
|
||||
|
||||
target_link_libraries(kdeconnect_battery
|
||||
kdeconnectcore
|
||||
|
|
|
@ -2,6 +2,6 @@ set(kdeconnect_bigscreen_SRCS
|
|||
bigscreenplugin.cpp
|
||||
)
|
||||
|
||||
kdeconnect_add_plugin(kdeconnect_bigscreen JSON kdeconnect_bigscreen.json SOURCES ${kdeconnect_bigscreen_SRCS})
|
||||
kdeconnect_add_plugin(kdeconnect_bigscreen SOURCES ${kdeconnect_bigscreen_SRCS})
|
||||
|
||||
target_link_libraries(kdeconnect_bigscreen kdeconnectcore Qt5::DBus KF5::I18n)
|
||||
|
|
|
@ -28,7 +28,7 @@ if(UNIX AND NOT APPLE)
|
|||
endif()
|
||||
|
||||
|
||||
kdeconnect_add_plugin(kdeconnect_clipboard JSON kdeconnect_clipboard.json SOURCES ${kdeconnect_clipboard_SRCS})
|
||||
kdeconnect_add_plugin(kdeconnect_clipboard SOURCES ${kdeconnect_clipboard_SRCS})
|
||||
|
||||
target_link_libraries(kdeconnect_clipboard kdeconnectcore
|
||||
Qt5::Gui
|
||||
|
|
|
@ -10,7 +10,7 @@ set(kdeconnect_connectivity_report_SRCS
|
|||
${debug_file_SRCS}
|
||||
)
|
||||
|
||||
kdeconnect_add_plugin(kdeconnect_connectivity_report JSON kdeconnect_connectivity_report.json SOURCES ${kdeconnect_connectivity_report_SRCS})
|
||||
kdeconnect_add_plugin(kdeconnect_connectivity_report SOURCES ${kdeconnect_connectivity_report_SRCS})
|
||||
|
||||
target_link_libraries(kdeconnect_connectivity_report
|
||||
kdeconnectcore
|
||||
|
|
|
@ -10,7 +10,7 @@ set(kdeconnect_contacts_SRCS
|
|||
${debug_file_SRCS}
|
||||
)
|
||||
|
||||
kdeconnect_add_plugin(kdeconnect_contacts JSON kdeconnect_contacts.json SOURCES ${kdeconnect_contacts_SRCS})
|
||||
kdeconnect_add_plugin(kdeconnect_contacts SOURCES ${kdeconnect_contacts_SRCS})
|
||||
|
||||
target_link_libraries(kdeconnect_contacts
|
||||
kdeconnectcore
|
||||
|
|
|
@ -2,7 +2,7 @@ set(kdeconnect_findmyphone_SRCS
|
|||
findmyphoneplugin.cpp
|
||||
)
|
||||
|
||||
kdeconnect_add_plugin(kdeconnect_findmyphone JSON kdeconnect_findmyphone.json SOURCES ${kdeconnect_findmyphone_SRCS})
|
||||
kdeconnect_add_plugin(kdeconnect_findmyphone SOURCES ${kdeconnect_findmyphone_SRCS})
|
||||
|
||||
target_link_libraries(kdeconnect_findmyphone kdeconnectcore Qt5::Core Qt5::DBus)
|
||||
|
||||
|
|
|
@ -11,7 +11,6 @@ set(kdeconnect_findthisdevice_SRCS
|
|||
)
|
||||
|
||||
kdeconnect_add_plugin(kdeconnect_findthisdevice
|
||||
JSON kdeconnect_findthisdevice.json
|
||||
SOURCES ${kdeconnect_findthisdevice_SRCS})
|
||||
|
||||
target_link_libraries(kdeconnect_findthisdevice
|
||||
|
|
|
@ -14,7 +14,7 @@ else ()
|
|||
list(APPEND lockdevice_SRCS lockdeviceplugin.cpp)
|
||||
endif()
|
||||
|
||||
kdeconnect_add_plugin(kdeconnect_lockdevice JSON kdeconnect_lockdevice.json SOURCES ${lockdevice_SRCS} ${debug_file_SRCS})
|
||||
kdeconnect_add_plugin(kdeconnect_lockdevice SOURCES ${lockdevice_SRCS} ${debug_file_SRCS})
|
||||
|
||||
target_link_libraries(kdeconnect_lockdevice
|
||||
kdeconnectcore
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
kdeconnect_add_plugin(kdeconnect_mousepad JSON kdeconnect_mousepad.json SOURCES mousepadplugin.cpp abstractremoteinput.cpp)
|
||||
kdeconnect_add_plugin(kdeconnect_mousepad SOURCES mousepadplugin.cpp abstractremoteinput.cpp)
|
||||
|
||||
if(UNIX AND NOT APPLE)
|
||||
find_package(KF5 ${KF5_MIN_VERSION} QUIET OPTIONAL_COMPONENTS Wayland)
|
||||
|
|
|
@ -27,7 +27,7 @@ ecm_qt_declare_logging_category(
|
|||
DEFAULT_SEVERITY Warning
|
||||
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin mpris)")
|
||||
|
||||
kdeconnect_add_plugin(kdeconnect_mpriscontrol JSON kdeconnect_mpriscontrol.json SOURCES ${kdeconnect_mpriscontrol_SRCS} ${debug_file_SRCS})
|
||||
kdeconnect_add_plugin(kdeconnect_mpriscontrol SOURCES ${kdeconnect_mpriscontrol_SRCS} ${debug_file_SRCS})
|
||||
|
||||
if(WIN32)
|
||||
target_link_libraries(kdeconnect_mpriscontrol kdeconnectcore windowsapp)
|
||||
|
|
|
@ -5,7 +5,7 @@ ecm_qt_declare_logging_category(
|
|||
DEFAULT_SEVERITY Warning
|
||||
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin mprisremote)")
|
||||
|
||||
kdeconnect_add_plugin(kdeconnect_mprisremote JSON kdeconnect_mprisremote.json SOURCES mprisremoteplugin.cpp mprisremoteplayer.cpp mprisremoteplayermediaplayer2.cpp mprisremoteplayermediaplayer2player.cpp ${debug_file_SRCS})
|
||||
kdeconnect_add_plugin(kdeconnect_mprisremote SOURCES mprisremoteplugin.cpp mprisremoteplayer.cpp mprisremoteplayermediaplayer2.cpp mprisremoteplayermediaplayer2player.cpp ${debug_file_SRCS})
|
||||
|
||||
target_link_libraries(kdeconnect_mprisremote
|
||||
kdeconnectcore
|
||||
|
|
|
@ -14,7 +14,7 @@ set(kdeconnect_notifications_SRCS
|
|||
|
||||
ki18n_wrap_ui(kdeconnect_notifications_SRCS sendreplydialog.ui)
|
||||
|
||||
kdeconnect_add_plugin(kdeconnect_notifications JSON kdeconnect_notifications.json SOURCES ${kdeconnect_notifications_SRCS})
|
||||
kdeconnect_add_plugin(kdeconnect_notifications SOURCES ${kdeconnect_notifications_SRCS})
|
||||
|
||||
target_link_libraries(kdeconnect_notifications
|
||||
kdeconnectcore
|
||||
|
|
|
@ -17,7 +17,7 @@ ecm_qt_declare_logging_category(
|
|||
|
||||
qt5_add_dbus_interface(kdeconnect_pausemusic_SRCS org.mpris.MediaPlayer2.Player.xml mprisplayer)
|
||||
|
||||
kdeconnect_add_plugin(kdeconnect_pausemusic JSON kdeconnect_pausemusic.json SOURCES ${kdeconnect_pausemusic_SRCS} ${debug_file_SRCS})
|
||||
kdeconnect_add_plugin(kdeconnect_pausemusic SOURCES ${kdeconnect_pausemusic_SRCS} ${debug_file_SRCS})
|
||||
|
||||
target_link_libraries(kdeconnect_pausemusic
|
||||
kdeconnectcore
|
||||
|
|
|
@ -10,7 +10,7 @@ set(kdeconnect_photo_SRCS
|
|||
${debug_file_SRCS}
|
||||
)
|
||||
|
||||
kdeconnect_add_plugin(kdeconnect_photo JSON kdeconnect_photo.json SOURCES ${kdeconnect_photo_SRCS})
|
||||
kdeconnect_add_plugin(kdeconnect_photo SOURCES ${kdeconnect_photo_SRCS})
|
||||
|
||||
target_link_libraries(kdeconnect_photo
|
||||
kdeconnectcore
|
||||
|
|
|
@ -10,7 +10,7 @@ set(kdeconnect_ping_SRCS
|
|||
${debug_file_SRCS}
|
||||
)
|
||||
|
||||
kdeconnect_add_plugin(kdeconnect_ping JSON kdeconnect_ping.json SOURCES ${kdeconnect_ping_SRCS})
|
||||
kdeconnect_add_plugin(kdeconnect_ping SOURCES ${kdeconnect_ping_SRCS})
|
||||
|
||||
target_link_libraries(kdeconnect_ping
|
||||
kdeconnectcore
|
||||
|
|
|
@ -7,7 +7,7 @@ ecm_qt_declare_logging_category(
|
|||
DEFAULT_SEVERITY Warning
|
||||
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin presenter)")
|
||||
|
||||
kdeconnect_add_plugin(kdeconnect_presenter JSON kdeconnect_presenter.json SOURCES presenterplugin.cpp ${presenter_SRCS} ${debug_file_SRCS})
|
||||
kdeconnect_add_plugin(kdeconnect_presenter SOURCES presenterplugin.cpp ${presenter_SRCS} ${debug_file_SRCS})
|
||||
target_link_libraries(kdeconnect_presenter
|
||||
kdeconnectcore
|
||||
Qt5::DBus
|
||||
|
|
|
@ -5,7 +5,7 @@ ecm_qt_declare_logging_category(
|
|||
DEFAULT_SEVERITY Warning
|
||||
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin remotecommands)")
|
||||
|
||||
kdeconnect_add_plugin(kdeconnect_remotecommands JSON kdeconnect_remotecommands.json
|
||||
kdeconnect_add_plugin(kdeconnect_remotecommands
|
||||
SOURCES remotecommandsplugin.cpp ${debug_file_SRCS}
|
||||
)
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ ecm_qt_declare_logging_category(
|
|||
DEFAULT_SEVERITY Warning
|
||||
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin remotecontrol)")
|
||||
|
||||
kdeconnect_add_plugin(kdeconnect_remotecontrol JSON kdeconnect_remotecontrol.json SOURCES remotecontrolplugin.cpp ${debug_file_SRCS})
|
||||
kdeconnect_add_plugin(kdeconnect_remotecontrol SOURCES remotecontrolplugin.cpp ${debug_file_SRCS})
|
||||
|
||||
target_link_libraries(kdeconnect_remotecontrol
|
||||
kdeconnectcore
|
||||
|
|
|
@ -5,7 +5,7 @@ ecm_qt_declare_logging_category(
|
|||
DEFAULT_SEVERITY Warning
|
||||
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin remotekeyboard)")
|
||||
|
||||
kdeconnect_add_plugin(kdeconnect_remotekeyboard JSON kdeconnect_remotekeyboard.json
|
||||
kdeconnect_add_plugin(kdeconnect_remotekeyboard
|
||||
SOURCES remotekeyboardplugin.cpp ${debug_file_SRCS})
|
||||
|
||||
target_link_libraries(kdeconnect_remotekeyboard
|
||||
|
|
|
@ -10,7 +10,7 @@ set(kdeconnect_remotesystemvolume_SRCS
|
|||
${debug_file_SRCS}
|
||||
)
|
||||
|
||||
kdeconnect_add_plugin(kdeconnect_remotesystemvolume JSON kdeconnect_remotesystemvolume.json SOURCES ${kdeconnect_remotesystemvolume_SRCS})
|
||||
kdeconnect_add_plugin(kdeconnect_remotesystemvolume SOURCES ${kdeconnect_remotesystemvolume_SRCS})
|
||||
|
||||
target_link_libraries(kdeconnect_remotesystemvolume
|
||||
kdeconnectcore
|
||||
|
|
|
@ -10,7 +10,7 @@ set(kdeconnect_runcommand_SRCS
|
|||
${debug_file_SRCS}
|
||||
)
|
||||
|
||||
kdeconnect_add_plugin(kdeconnect_runcommand JSON kdeconnect_runcommand.json SOURCES ${kdeconnect_runcommand_SRCS})
|
||||
kdeconnect_add_plugin(kdeconnect_runcommand SOURCES ${kdeconnect_runcommand_SRCS})
|
||||
|
||||
target_link_libraries(kdeconnect_runcommand
|
||||
kdeconnectcore
|
||||
|
|
|
@ -20,7 +20,7 @@ ecm_qt_declare_logging_category(
|
|||
DEFAULT_SEVERITY Warning
|
||||
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin screensaverinhibit)")
|
||||
|
||||
kdeconnect_add_plugin(kdeconnect_screensaver_inhibit JSON kdeconnect_screensaver_inhibit.json SOURCES ${kdeconnect_screensaver_inhibit_SRCS} ${debug_file_SRCS})
|
||||
kdeconnect_add_plugin(kdeconnect_screensaver_inhibit SOURCES ${kdeconnect_screensaver_inhibit_SRCS} ${debug_file_SRCS})
|
||||
|
||||
target_link_libraries(kdeconnect_screensaver_inhibit kdeconnectcore)
|
||||
if(NOT APPLE AND NOT WIN32)
|
||||
|
|
|
@ -21,7 +21,7 @@ set(kdeconnect_sendnotifications_SRCS
|
|||
${debug_file_SRCS}
|
||||
)
|
||||
|
||||
kdeconnect_add_plugin(kdeconnect_sendnotifications JSON "${CMAKE_CURRENT_BINARY_DIR}/kdeconnect_sendnotifications.json" SOURCES ${kdeconnect_sendnotifications_SRCS})
|
||||
kdeconnect_add_plugin(kdeconnect_sendnotifications SOURCES ${kdeconnect_sendnotifications_SRCS})
|
||||
|
||||
target_link_libraries(kdeconnect_sendnotifications
|
||||
kdeconnectcore
|
||||
|
|
|
@ -21,7 +21,7 @@ ecm_qt_declare_logging_category(
|
|||
DEFAULT_SEVERITY Warning
|
||||
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin sftp)")
|
||||
|
||||
kdeconnect_add_plugin(kdeconnect_sftp JSON kdeconnect_sftp.json SOURCES ${kdeconnect_sftp_SRCS} ${debug_file_SRCS})
|
||||
kdeconnect_add_plugin(kdeconnect_sftp SOURCES ${kdeconnect_sftp_SRCS} ${debug_file_SRCS})
|
||||
|
||||
target_link_libraries(kdeconnect_sftp
|
||||
kdeconnectcore
|
||||
|
|
|
@ -10,7 +10,7 @@ set(kdeconnect_share_SRCS
|
|||
${debug_file_SRCS}
|
||||
)
|
||||
|
||||
kdeconnect_add_plugin(kdeconnect_share JSON kdeconnect_share.json SOURCES ${kdeconnect_share_SRCS})
|
||||
kdeconnect_add_plugin(kdeconnect_share SOURCES ${kdeconnect_share_SRCS})
|
||||
|
||||
target_link_libraries(kdeconnect_share
|
||||
kdeconnectcore
|
||||
|
|
|
@ -18,7 +18,7 @@ set(kdeconnect_sms_SRCS
|
|||
${debug_file_SRCS}
|
||||
)
|
||||
|
||||
kdeconnect_add_plugin(kdeconnect_sms JSON kdeconnect_sms.json SOURCES ${kdeconnect_sms_SRCS})
|
||||
kdeconnect_add_plugin(kdeconnect_sms SOURCES ${kdeconnect_sms_SRCS})
|
||||
|
||||
target_link_libraries(kdeconnect_sms
|
||||
kdeconnectcore
|
||||
|
|
|
@ -18,7 +18,7 @@ ecm_qt_declare_logging_category(
|
|||
IDENTIFIER KDECONNECT_PLUGIN_SYSTEMVOLUME CATEGORY_NAME kdeconnect.plugin.systemvolume
|
||||
DEFAULT_SEVERITY Warning
|
||||
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin systemvolume)")
|
||||
kdeconnect_add_plugin(kdeconnect_systemvolume JSON kdeconnect_systemvolume.json SOURCES ${kdeconnect_systemvolume_SRCS} ${debug_file_SRCS})
|
||||
kdeconnect_add_plugin(kdeconnect_systemvolume SOURCES ${kdeconnect_systemvolume_SRCS} ${debug_file_SRCS})
|
||||
|
||||
if(WIN32)
|
||||
target_link_libraries(kdeconnect_systemvolume
|
||||
|
|
|
@ -10,7 +10,7 @@ set(kdeconnect_telephony_SRCS
|
|||
${debug_file_SRCS}
|
||||
)
|
||||
|
||||
kdeconnect_add_plugin(kdeconnect_telephony JSON kdeconnect_telephony.json SOURCES ${kdeconnect_telephony_SRCS})
|
||||
kdeconnect_add_plugin(kdeconnect_telephony SOURCES ${kdeconnect_telephony_SRCS})
|
||||
|
||||
target_link_libraries(kdeconnect_telephony
|
||||
kdeconnectcore
|
||||
|
|
Loading…
Reference in a new issue