Skip to content

Commit

Permalink
Merge pull request wang-bin#1286 from maxrd2/install-fix
Browse files Browse the repository at this point in the history
Fix make install with alernate root path
  • Loading branch information
wang-bin authored Mar 11, 2020
2 parents acf9a30 039be0b commit a20b33d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
14 changes: 7 additions & 7 deletions deploy.pri
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 4,30 @@ INSTALL_PREFIX = /usr/local
share.files = $$PROJECTROOT/qtc_packaging/common/changelog \
$$PROJECTROOT/qtc_packaging/common/copyright \
$$PROJECTROOT/qtc_packaging/common/README
share.path = /usr/share/doc/$${TARGET}
share.path = $$[QT_INSTALL_PREFIX]/share/doc/$${TARGET}

isEqual(TEMPLATE, app) {
unix:!symbian {
!isEmpty(MEEGO_VERSION_MAJOR) {
DEFINES = CACHE_APPDIR
INSTALL_PREFIX = /opt/$${TARGET}
desktopfile.files = $$PROJECTROOT/qtc_packaging/debian_harmattan/$${TARGET}.desktop
desktopfile.path = /usr/share/applications
desktopfile.path = $$[QT_INSTALL_PREFIX]/share/applications
icon.files = $$PROJECTROOT/qtc_packaging/debian_harmattan/$${TARGET}.png
icon.path = /usr/share/icons/hicolor/80x80/apps
icon.path = $$[QT_INSTALL_PREFIX]/share/icons/hicolor/80x80/apps
#debian.files = $$PROJECTROOT/qtc_packaging/harmattan/control
} else:maemo5 {
INSTALL_PREFIX = /opt/$${TARGET}
desktopfile.files = $$PROJECTROOT/qtc_packaging/debian_fremantle/$${TARGET}.desktop
desktopfile.path = /usr/share/applications/hildon
desktopfile.path = $$[QT_INSTALL_PREFIX]/share/applications/hildon
icon.files = $$PROJECTROOT/qtc_packaging/debian_fremantle/$${TARGET}.png
icon.path = /usr/share/icons/hicolor/64x64/apps
icon.path = $$[QT_INSTALL_PREFIX]/share/icons/hicolor/64x64/apps
#debian.files = $$PROJECTROOT/qtc_packaging/fremantle/control
} else {
desktopfile.files = $$PROJECTROOT/qtc_packaging/debian_generic/$${TARGET}.desktop
desktopfile.path = /usr/share/applications
desktopfile.path = $$[QT_INSTALL_PREFIX]/share/applications
icon.files = $$PROJECTROOT/qtc_packaging/debian_generic/$${TARGET}.png
icon.path = /usr/share/icons/hicolor/64x64/apps
icon.path = $$[QT_INSTALL_PREFIX]/share/icons/hicolor/64x64/apps
#debian.files = $$PROJECTROOT/qtc_packaging/generic/control
}
INSTALLS = desktopfile icon
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 104,14 @@ android-no-sdk {
} else:unix {
maemo5 {
desktopfile.files = $${TARGET}.desktop
desktopfile.path = /usr/share/applications/hildon
desktopfile.path = $$[QT_INSTALL_PREFIX]/share/applications/hildon
icon.files = $${TARGET}64.png
icon.path = /usr/share/icons/hicolor/64x64/apps
icon.path = $$[QT_INSTALL_PREFIX]/share/icons/hicolor/64x64/apps
} else:!isEmpty(MEEGO_VERSION_MAJOR) {
desktopfile.files = $${TARGET}_harmattan.desktop
desktopfile.path = /usr/share/applications
desktopfile.path = $$[QT_INSTALL_PREFIX]/share/applications
icon.files = $${TARGET}80.png
icon.path = /usr/share/icons/hicolor/80x80/apps
icon.path = $$[QT_INSTALL_PREFIX]/share/icons/hicolor/80x80/apps
} else { # Assumed to be a Desktop Unix
copyCommand =
for(deploymentfolder, DEPLOYMENTFOLDERS) {
Expand Down
2 changes: 1 addition & 1 deletion src/libQtAV.pro
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 621,7 @@ mac {

unix:!mac:!cross_compile {
icon.files = $$PWD/$${TARGET}.svg
icon.path = /usr/share/icons/hicolor/scalable/apps
icon.path = $$[QT_INSTALL_PREFIX]/share/icons/hicolor/scalable/apps
INSTALLS = icon
#debian
DEB_INSTALL_LIST = .$$[QT_INSTALL_LIBS]/libQt*AV.so.*
Expand Down

0 comments on commit a20b33d

Please sign in to comment.