1
0
mirror of https://invent.kde.org/system/dolphin synced 2024-07-04 17:30:55 +00:00

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.
This commit is contained in:
David Faure 2017-07-25 11:39:57 +02:00
parent 286eaa7402
commit cf273cd8a9
3 changed files with 14 additions and 2 deletions

View File

@ -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} )

5
src/dolphin.qrc Normal file
View File

@ -0,0 +1,5 @@
<RCC>
<qresource prefix="/kxmlgui5/dolphin">
<file>dolphinui.rc</file>
</qresource>
</RCC>

5
src/dolphinpart.qrc Normal file
View File

@ -0,0 +1,5 @@
<RCC>
<qresource prefix="/kxmlgui5/dolphinpart">
<file>dolphinpart.rc</file>
</qresource>
</RCC>