Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 9b769c4a authored by Elvis Angelaccio's avatar Elvis Angelaccio

Bundle kxmlgui files in a QRC

This makes the UI functional even if ark is not installed.
parent 9df9c8a2
......@@ -9,6 +9,8 @@ set(ark_SRCS
mainwindow.cpp
)
qt5_add_resources(ark_SRCS ark.qrc)
ecm_qt_declare_logging_category(ark_SRCS
HEADER ark_debug.h
IDENTIFIER ARK
......@@ -63,7 +65,6 @@ configure_file(
install(TARGETS ark ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/org.kde.ark.desktop DESTINATION ${KDE_INSTALL_APPDIR})
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/org.kde.ark.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
install(FILES arkui.rc DESTINATION ${KDE_INSTALL_KXMLGUI5DIR}/ark)
############ ark_extract_here plugin ###############
......
<RCC>
<qresource prefix="/kxmlgui5/ark">
<file>arkui.rc</file>
</qresource>
</RCC>
......@@ -10,6 +10,8 @@ set(arkpart_PART_SRCS
overwritedialog.cpp
)
qt5_add_resources(arkpart_PART_SRCS arkpart.qrc)
ecm_qt_declare_logging_category(arkpart_PART_SRCS
HEADER ark_debug.h
IDENTIFIER ARK
......@@ -38,5 +40,4 @@ install(TARGETS arkpart DESTINATION ${KDE_INSTALL_PLUGINDIR})
########### install files ###############
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/ark_part.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR})
install(FILES ark_part.rc DESTINATION ${KDE_INSTALL_KXMLGUI5DIR}/ark)
install(FILES ark_viewer.rc DESTINATION ${KDE_INSTALL_KXMLGUI5DIR}/ark)
<RCC>
<qresource prefix="/kxmlgui5/ark">
<file>ark_part.rc</file>
</qresource>
</RCC>
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