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:
parent
87ade59aac
commit
4c2a5d1834
1 changed files with 13 additions and 1 deletions
14
Jamulus.pro
14
Jamulus.pro
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue