Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Network
Telepathy Contact Runner
Commits
0d8156cd
Commit
0d8156cd
authored
Oct 10, 2020
by
Alexander Lohnau
💬
Browse files
Port to K_EXPORT_PLASMA_RUNNER_WITH_JSON
parent
fef8a60c
Changes
2
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
0d8156cd
...
...
@@ -36,6 +36,10 @@ include_directories(
set
(
runner_SRCS src/contactrunner.cpp
)
add_library
(
krunner_ktp_contacts MODULE
${
runner_SRCS
}
)
configure_file
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/plasma-runner-ktp-contact.desktop.cmake
${
CMAKE_CURRENT_BINARY_DIR
}
/plasma-runner-ktp-contact.desktop
@ONLY
)
kcoreaddons_desktop_to_json
(
krunner_ktp_contacts
${
CMAKE_CURRENT_BINARY_DIR
}
/plasma-runner-ktp-contact.desktop
)
target_link_libraries
(
krunner_ktp_contacts
Qt5::Widgets
KF5::I18n
...
...
@@ -44,16 +48,7 @@ target_link_libraries(krunner_ktp_contacts
KTp::Models
KTp::CommonInternals
)
install
(
TARGETS krunner_ktp_contacts
DESTINATION
${
PLUGIN_INSTALL_DIR
}
)
configure_file
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/plasma-runner-ktp-contact.desktop.cmake
${
CMAKE_CURRENT_BINARY_DIR
}
/plasma-runner-ktp-contact.desktop
@ONLY
)
install
(
FILES
${
CMAKE_CURRENT_BINARY_DIR
}
/plasma-runner-ktp-contact.desktop
DESTINATION
${
SERVICES_INSTALL_DIR
}
)
install
(
TARGETS krunner_ktp_contacts DESTINATION
"
${
KDE_INSTALL_PLUGINDIR
}
/kf5/krunner"
)
feature_summary
(
WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES
)
src/contactrunner.cpp
View file @
0d8156cd
...
...
@@ -545,6 +545,6 @@ void ContactRunner::matchPresence(Plasma::RunnerContext &context)
}
K_EXPORT_PLASMA_RUNNER
(
ktp_contacts
,
ContactRunner
)
K_EXPORT_PLASMA_RUNNER
_WITH_JSON
(
ContactRunner
,
"plasma-runner-ktp-contact.json"
)
#include "contactrunner.moc"
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment