optional INSTALL_PATH qmake flag (on unix)

I packaged Jamulus for nix/nixos and it would
be neat if there was an option to specify a
path at which to install the binary. I'm not
really familiar with qmake -- is this a good
way to achieve this?

(nixpkgs pull request: https://github.com/NixOS/nixpkgs/pull/87914)
This commit is contained in:
seb314 2020-05-19 00:53:09 +02:00
parent d21acb0a7f
commit 278925edb7
1 changed files with 6 additions and 0 deletions

View File

@ -301,6 +301,12 @@ DISTFILES_OBOE += libs/oboe/AUTHORS \
android/AndroidManifest.xml \
android/sound.h \
android/sound.cpp
# could this also be done for all platforms?
defined(INSTALL_PATH, var) {
INSTALLS += target
target.path = $$INSTALL_PATH
}
}
RCC_DIR = src/res