Commit 4d3ca31a authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port to new non deprecated api

parent 00aa74c7
...@@ -14,6 +14,7 @@ set(pimcontactsrunner_SRCS ...@@ -14,6 +14,7 @@ set(pimcontactsrunner_SRCS
) )
add_library(krunner_pimcontacts MODULE ${pimcontactsrunner_SRCS}) add_library(krunner_pimcontacts MODULE ${pimcontactsrunner_SRCS})
kcoreaddons_desktop_to_json(krunner_pimcontacts plasma-krunner-pimcontacts.desktop)
target_link_libraries(krunner_pimcontacts target_link_libraries(krunner_pimcontacts
KF5::Runner KF5::Runner
KF5::AkonadiCore KF5::AkonadiCore
...@@ -35,12 +36,12 @@ target_link_libraries(kcm_krunner_pimcontacts ...@@ -35,12 +36,12 @@ target_link_libraries(kcm_krunner_pimcontacts
KF5::I18n KF5::I18n
) )
install(TARGETS krunner_pimcontacts DESTINATION "${KDE_INSTALL_PLUGINDIR}/kf5/krunner")
install(TARGETS krunner_pimcontacts install(TARGETS
kcm_krunner_pimcontacts kcm_krunner_pimcontacts
DESTINATION ${PLUGIN_INSTALL_DIR} DESTINATION ${PLUGIN_INSTALL_DIR}
) )
install(FILES plasma-krunner-pimcontacts.desktop install(FILES
plasma-krunner-pimcontacts_config.desktop plasma-krunner-pimcontacts_config.desktop
DESTINATION ${SERVICES_INSTALL_DIR} DESTINATION ${SERVICES_INSTALL_DIR}
) )
......
...@@ -250,6 +250,6 @@ void PIMContactsRunner::run(const Plasma::RunnerContext &context, const Plasma:: ...@@ -250,6 +250,6 @@ void PIMContactsRunner::run(const Plasma::RunnerContext &context, const Plasma::
} }
} }
K_EXPORT_PLASMA_RUNNER(pimcontactsrunner, PIMContactsRunner) K_EXPORT_PLASMA_RUNNER_WITH_JSON(PIMContactsRunner, "plasma-krunner-pimcontacts.json")
#include "pimcontactsrunner.moc" #include "pimcontactsrunner.moc"
...@@ -69,7 +69,6 @@ Type=Service ...@@ -69,7 +69,6 @@ Type=Service
Icon=view-pim-contacts Icon=view-pim-contacts
X-KDE-ServiceTypes=Plasma/Runner X-KDE-ServiceTypes=Plasma/Runner
X-KDE-Library=krunner_pimcontacts
X-KDE-PluginInfo-Author=Daniel Vrátil X-KDE-PluginInfo-Author=Daniel Vrátil
X-KDE-PluginInfo-Email=dvratil@kde.org X-KDE-PluginInfo-Email=dvratil@kde.org
X-KDE-PluginInfo-Name=PIM Contacts Search Runner X-KDE-PluginInfo-Name=PIM Contacts Search Runner
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment