diff options
author | Christian Kandeler <christian.kandeler@theqtcompany.com> | 2016-05-12 14:06:42 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@theqtcompany.com> | 2016-05-13 10:42:18 +0000 |
commit | 87e8f03c0300360c9aff30a75e4bf86f1aa21ee0 (patch) | |
tree | 50bae69ec99ffd08f604a913774f8d0a8151ef0e /qbs | |
parent | 7c5836986f0fc188f7be4b660f9e55d925d87277 (diff) | |
download | qt-creator-87e8f03c0300360c9aff30a75e4bf86f1aa21ee0.tar.gz |
Set the right version number on our binaries.
While we have not encountered issues so far with using the default
values, it seems more correct to set the version so that e.g. on Unix
a library's soname contains the actual Qt Creator major version etc.
For good measure, also set the compatibility version on OS X.
Change-Id: I956c473e0b440fc87ffe1aaf99af626da733b5fb
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'qbs')
-rw-r--r-- | qbs/imports/QtcLibrary.qbs | 2 | ||||
-rw-r--r-- | qbs/imports/QtcPlugin.qbs | 2 | ||||
-rw-r--r-- | qbs/imports/QtcProduct.qbs | 1 |
3 files changed, 5 insertions, 0 deletions
diff --git a/qbs/imports/QtcLibrary.qbs b/qbs/imports/QtcLibrary.qbs index 42ab738f7d..98920ee87f 100644 --- a/qbs/imports/QtcLibrary.qbs +++ b/qbs/imports/QtcLibrary.qbs @@ -16,6 +16,8 @@ QtcProduct { var flags = base; if (qbs.buildVariant == "debug" && qbs.toolchain.contains("msvc")) flags.push("/INCREMENTAL:NO"); // Speed up startup time when debugging with cdb + if (qbs.targetOS.contains("osx")) + flags.push("-compatibility_version", project.qtcreator_compat_version); return flags; } cpp.installNamePrefix: "@rpath" diff --git a/qbs/imports/QtcPlugin.qbs b/qbs/imports/QtcPlugin.qbs index 3999a939c2..d1a3c6fd79 100644 --- a/qbs/imports/QtcPlugin.qbs +++ b/qbs/imports/QtcPlugin.qbs @@ -32,6 +32,8 @@ QtcProduct { var flags = base; if (qbs.buildVariant == "debug" && qbs.toolchain.contains("msvc")) flags.push("/INCREMENTAL:NO"); // Speed up startup time when debugging with cdb + if (qbs.targetOS.contains("osx")) + flags.push("-compatibility_version", project.qtcreator_compat_version); return flags; } diff --git a/qbs/imports/QtcProduct.qbs b/qbs/imports/QtcProduct.qbs index d38b7b0ecb..075237d463 100644 --- a/qbs/imports/QtcProduct.qbs +++ b/qbs/imports/QtcProduct.qbs @@ -2,6 +2,7 @@ import qbs 1.0 import QtcFunctions Product { + version: project.qtcreator_version property string installDir Depends { name: "cpp" } |