mirror of
https://gitlab.com/then-try-this/samplebrain.git
synced 2025-05-12 02:27:21 +00:00
build: allow setting installation prefix
Allow $PREFIX to be set during compilation, changing where the app is installed. This is used to change where the app is installed inside the Flatpak sandbox.
This commit is contained in:
parent
6bc1cbeec3
commit
74b00570dd
@ -50,12 +50,17 @@ QMAKE_CXXFLAGS += -O3 -Wall -Wno-unused -std=c++11
|
||||
# assets
|
||||
RESOURCES = app/samplebrain.qrc
|
||||
|
||||
unix:desktopfile.path = /usr/share/applications/
|
||||
PREFIX = $$(PREFIX)
|
||||
isEmpty(PREFIX) {
|
||||
PREFIX = /usr
|
||||
}
|
||||
|
||||
unix:desktopfile.path = $$PREFIX/share/applications/
|
||||
unix:desktopfile.files = desktop/samplebrain.desktop
|
||||
unix:iconfile.path = /usr/share/icons/hicolor/scalable/apps
|
||||
unix:iconfile.path = $$PREFIX/share/icons/hicolor/scalable/apps
|
||||
unix:iconfile.files = desktop/samplebrain.svg
|
||||
|
||||
target.path = /usr/bin
|
||||
target.path = $$PREFIX/bin
|
||||
INSTALLS += target desktopfile iconfile
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user