Install jamulus.desktop.

Because this assumes the binary is called jamulus, and qmake doesn't
have a mechanism for string expansion, only do so if noupcasename is
set.
This commit is contained in:
Adam Sampson 2020-06-04 18:07:57 +01:00
parent 87ade59aac
commit 4c2a5d1834

View file

@ -295,12 +295,24 @@ win32 {
isEmpty(PREFIX) { isEmpty(PREFIX) {
PREFIX = /usr/local PREFIX = /usr/local
} }
isEmpty(BINDIR) { isEmpty(BINDIR) {
BINDIR = bin BINDIR = bin
} }
BINDIR = $$absolute_path($$BINDIR, $$PREFIX) BINDIR = $$absolute_path($$BINDIR, $$PREFIX)
INSTALLS += target
target.path = $$BINDIR target.path = $$BINDIR
INSTALLS += target
isEmpty(APPSDIR) {
APPSDIR = share/applications
}
APPSDIR = $$absolute_path($$APPSDIR, $$PREFIX)
desktop.path = $$APPSDIR
desktop.files = distributions/jamulus.desktop
# the .desktop file assumes the binary is called jamulus
contains(CONFIG, "noupcasename") {
INSTALLS += desktop
}
} }
RCC_DIR = src/res RCC_DIR = src/res