Details
-
Type:
Task
-
Status: In Progress
-
Priority:
P2: Important
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: some future version
-
Component/s: General
-
Labels:None
Description
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.