diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2017-08-02 10:03:31 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2017-08-03 11:09:55 +0000 |
commit | 8b8a32ba0ec372e84c189228fde2b1a8d204f6f4 (patch) | |
tree | dba34d184f87fd4b1456c0a8692292405823e273 /src | |
parent | 2d27c5531027368eaa41d26ced4dceb936f9c7a3 (diff) |
qbs build: Do not access the bundle module unconditionally
We should not rely on its presence on non-Darwin platforms.
Change-Id: I3fa722038f9c2d1139f6e1dc8c49d1c4d2fe0bee
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/app/app.qbs | 7 | ||||
-rw-r--r-- | src/tools/qml2puppet/qml2puppet.qbs | 5 |
2 files changed, 8 insertions, 4 deletions
diff --git a/src/app/app.qbs b/src/app/app.qbs index b67ff28a2c..d0c2885c46 100644 --- a/src/app/app.qbs +++ b/src/app/app.qbs @@ -20,9 +20,10 @@ QtcProduct { targetName: qtc.ide_app_target version: qtc.qtcreator_version - installDir: bundle.isBundle ? qtc.ide_app_path : qtc.ide_bin_path - installTags: bundle.isBundle ? ["bundle.content"] : base - installSourceBase: bundle.isBundle ? buildDirectory : base + property bool isBundle: qbs.targetOS.contains("darwin") && bundle.isBundle + installDir: isBundle ? qtc.ide_app_path : qtc.ide_bin_path + installTags: isBundle ? ["bundle.content"] : base + installSourceBase: isBundle ? buildDirectory : base property bool qtcRunnable: true cpp.rpaths: qbs.targetOS.contains("macos") ? ["@executable_path/../Frameworks"] diff --git a/src/tools/qml2puppet/qml2puppet.qbs b/src/tools/qml2puppet/qml2puppet.qbs index feaa14bb6b..bb3d0726d3 100644 --- a/src/tools/qml2puppet/qml2puppet.qbs +++ b/src/tools/qml2puppet/qml2puppet.qbs @@ -20,7 +20,10 @@ QtcTool { condition: qbs.targetOS.contains("unix") && !qbs.targetOS.contains("bsd") cpp.dynamicLibraries: base.concat("rt") } - bundle.embedInfoPlist: true + Properties { + condition: qbs.targetOS.contains("darwin") + bundle.embedInfoPlist: true + } property path puppetDir: "../../../share/qtcreator/qml/qmlpuppet" cpp.includePaths: base.concat([ |