diff options
| author | David Faure <[email protected]> | 2017-07-25 11:39:57 +0200 |
|---|---|---|
| committer | David Faure <[email protected]> | 2017-07-25 11:39:57 +0200 |
| commit | cf273cd8a90178460c29b97b115a876fbef10295 (patch) | |
| tree | edc7499958bd56554f3615909e06c5cd2a59354b | |
| parent | 286eaa7402346a364219bece7221c25e02228cba (diff) | |
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.
| -rw-r--r-- | src/CMakeLists.txt | 6 | ||||
| -rw-r--r-- | src/dolphin.qrc | 5 | ||||
| -rw-r--r-- | src/dolphinpart.qrc | 5 |
3 files changed, 14 insertions, 2 deletions
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 @@ +<RCC> +<qresource prefix="/kxmlgui5/dolphin"> +<file>dolphinui.rc</file> +</qresource> +</RCC> 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 @@ +<RCC> +<qresource prefix="/kxmlgui5/dolphinpart"> +<file>dolphinpart.rc</file> +</qresource> +</RCC> |
