aboutsummaryrefslogtreecommitdiffstats
path: root/share/qbs/modules/qbs
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2018-05-22 16:23:17 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2018-06-01 11:14:13 +0000
commit17059ccd06e56010fa0d44ebcaf0be7b85d69703 (patch)
tree321e1b3bc972163c8fdb43a78c4c96d4720c665e /share/qbs/modules/qbs
parente655352e1ebfd09f2b08114f4d61c7a2f8dfc645 (diff)
Simplify installation of applications and libraries
Add "install" and "installDir" convenience properties to our Application, DynamicLibrary and StaticLibrary items, so users are no longer required to write groups with file tag filters for the normal installation case. The installDir property has a suitable default value for the respective target platform, as does qbs.installPrefix. [ChangeLog] The Application, DynamicLibrary and StaticLibrary items now have properties for more convenient installation of target binaries. Task-number: QBS-229 Change-Id: I9cfa4c02a7c555b0af637257da63967cd62cc119 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'share/qbs/modules/qbs')
-rw-r--r--share/qbs/modules/qbs/common.qbs2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/qbs/modules/qbs/common.qbs b/share/qbs/modules/qbs/common.qbs
index 86ce27c59..4e96a320b 100644
--- a/share/qbs/modules/qbs/common.qbs
+++ b/share/qbs/modules/qbs/common.qbs
@@ -102,7 +102,7 @@ Module {
property path installSourceBase
property string installRoot: project.buildDirectory + "/install-root"
property string installDir
- property string installPrefix: ""
+ property string installPrefix: qbs.targetOS.contains("unix") ? "/usr/local" : ""
property path sysroot
PropertyOptions {