Commit fb49986e authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Install kpart into kf5/parts subdir, adding JSON metadata

parent 0bd8bae8
......@@ -9,7 +9,7 @@ set(RELEASE_SERVICE_VERSION "${RELEASE_SERVICE_VERSION_MAJOR}.${RELEASE_SERVICE_
project(kimagemapeditor VERSION ${RELEASE_SERVICE_VERSION})
set (QT_MIN_VERSION "5.7.0")
set (KF5_MIN_VERSION "5.15.0")
set (KF5_MIN_VERSION "5.44.0")
find_package(ECM ${KF5_MIN_VERSION} REQUIRED CONFIG)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH})
......@@ -91,14 +91,19 @@ install(TARGETS kimagemapeditor_bin ${INSTALL_TARGETS_DEFAULT_ARGS} )
set(kimagemapeditor_PART_SRCS ${libkimagemapeditorcommon_SRC})
add_library(kimagemapeditorpart MODULE ${kimagemapeditor_PART_SRCS})
kcoreaddons_desktop_to_json(kimagemapeditorpart kimagemapeditorpart.desktop)
add_library(kimagemapeditor MODULE ${kimagemapeditor_PART_SRCS})
target_link_libraries(kimagemapeditor KF5::CoreAddons KF5::IconThemes KF5::I18n KF5::ConfigCore KF5::Parts Qt5::WebEngineWidgets)
install(TARGETS kimagemapeditor DESTINATION ${PLUGIN_INSTALL_DIR})
target_link_libraries(kimagemapeditorpart
KF5::CoreAddons
KF5::IconThemes
KF5::I18n
KF5::ConfigCore
KF5::Parts
Qt5::WebEngineWidgets
)
install(TARGETS kimagemapeditorpart DESTINATION ${KDE_INSTALL_PLUGINDIR}/kf5/parts)
########### next target ###############
......
......@@ -76,7 +76,7 @@
#include "imagemapchoosedialog.h"
#include "kimagemapeditor_version.h"
K_PLUGIN_FACTORY(KImageMapEditorFactory, registerPlugin<KImageMapEditor>();)
K_PLUGIN_FACTORY_WITH_JSON(KImageMapEditorFactory, "kimagemapeditorpart.json", registerPlugin<KImageMapEditor>();)
KImageMapEditor::KImageMapEditor(QWidget *parentWidget,
QObject *parent, const QVariantList & )
......
......@@ -3,7 +3,7 @@ Type=Service
MimeType=text/html;
Icon=kimagemapeditor
X-KDE-ServiceTypes=KParts/ReadWritePart
X-KDE-Library=libkimagemapeditor
X-KDE-Library=kf5/parts/kimagemapeditorpart
Comment=An HTML imagemap editor
Comment[bg]=Редактор на маркирания на изображения за HTML
Comment[bs]=Uređivač HTML slikovnih mapa
......
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