-
Task
-
Resolution: Fixed
-
P2: Important
-
None
-
None
-
None
QBS should use reasonable defaults for the destinationDirectory / qbs.installDir. This varies greatly by OS and product type.
I propose that destinationDirectory and qbs.installDir should both have the following defaults, based on the product type where applicable. These paths are relative to the install prefix.
| Product type | Variable | Value |
|---|---|---|
| application | executableInstallDir | qbs.targetOS.contains("windows") ? "." : "bin" |
| - | systemExecutableInstallDir | qbs.targetOS.contains("windows") ? "." : "sbin" |
| applicationbundle | applicationInstallDir | "Applications" |
| frameworkbundle | frameworkInstallDir | "Library/Frameworks" |
| dynamiclibrary staticlibrary |
libraryInstallDir | qbs.targetOS.contains("windows") ? "." : "lib" |
| msi wixsetup nsissetup dmg pkg mpkg deb rpm |
packageInstallDir | "dist" |
Artifacts that go into packageInstallDir should not be installed by default.