From: David Faure Date: Tue, 25 Jul 2017 09:39:57 +0000 (+0200) Subject: Bundle the XMLGUI files into qrc resources. X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/cf273cd8a90178460c29b97b115a876fbef10295?hp=-c Bundle the XMLGUI files into qrc resources. This is a step towards being able to run applications uninstalled, and it simplifies deployment on non-linux. --- cf273cd8a90178460c29b97b115a876fbef10295 diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index bc6f75d62..13b94f73b 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -180,6 +180,8 @@ set(dolphinpart_SRCS dolphindebug.cpp ) +qt5_add_resources(dolphinpart_SRCS dolphinpart.qrc) + add_library(dolphinpart MODULE ${dolphinpart_SRCS}) target_link_libraries(dolphinpart @@ -188,7 +190,6 @@ target_link_libraries(dolphinpart install(TARGETS dolphinpart DESTINATION ${KDE_INSTALL_PLUGINDIR}) -install(FILES dolphinpart.rc DESTINATION ${KDE_INSTALL_KXMLGUI5DIR}/dolphinpart) install(FILES dolphinpart.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) ########################################## @@ -267,6 +268,8 @@ if(NOT WIN32) set(dolphinstatic_SRCS ${dolphinstatic_SRCS} panels/terminal/terminalpanel.cpp) endif() +qt5_add_resources(dolphinstatic_SRCS dolphin.qrc) + add_library(dolphinstatic STATIC ${dolphinstatic_SRCS}) target_include_directories(dolphinstatic PRIVATE ${PHONON_INCLUDES}) @@ -389,7 +392,6 @@ install( FILES settings/dolphin_directoryviewpropertysettings.kcfg settings/dolphin_detailsmodesettings.kcfg settings/dolphin_versioncontrolsettings.kcfg DESTINATION ${KDE_INSTALL_KCFGDIR} ) -install( FILES dolphinui.rc DESTINATION ${KDE_INSTALL_KXMLGUI5DIR}/dolphin ) install( FILES org.kde.dolphin.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR} ) install( FILES settings/kcm/kcmdolphinviewmodes.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} ) diff --git a/src/dolphin.qrc b/src/dolphin.qrc new file mode 100644 index 000000000..55cae54b9 --- /dev/null +++ b/src/dolphin.qrc @@ -0,0 +1,5 @@ + + +dolphinui.rc + + diff --git a/src/dolphinpart.qrc b/src/dolphinpart.qrc new file mode 100644 index 000000000..b525da13a --- /dev/null +++ b/src/dolphinpart.qrc @@ -0,0 +1,5 @@ + + +dolphinpart.rc + +