aboutsummaryrefslogtreecommitdiffstats
path: root/qbs-resources
diff options
context:
space:
mode:
authorRichard Weickelt <richard@weickelt.de>2019-07-08 01:49:19 +0200
committerRichard Weickelt <richard@weickelt.de>2019-10-10 08:05:15 +0000
commit905ee49fabe197bfe4537c1f10df9d7c48f731c2 (patch)
tree57acb908ac5449be8ddb84e01e00e52d7ce07755 /qbs-resources
parent73ed687cf11cb2d4e7f263ef5754039b96b69aaa (diff)
Bundle Qt libraries on all platforms
This patch allows us to deploy a self-containing Qbs package on all host platforms that are supported by the official Qt binary packages. Although not all (Linux) distributions make use of it, this will be helpful to - provide at least some binary convenience packages for the most important distributions, - perform building and testing in different environments, for instance build Qbs in one stage and then run autotests for desktop, iOS, android in parallel on multiple machines, - avoid windeployqt which does not work when cross-building for Windows on a Linux hosts. Change-Id: I63de4ea2240b37d8bd465cbbf4ddff3d01eeac7e Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'qbs-resources')
-rw-r--r--qbs-resources/imports/QbsAutotest.qbs6
-rw-r--r--qbs-resources/modules/qbsbuildconfig/qbsbuildconfig.qbs2
2 files changed, 5 insertions, 3 deletions
diff --git a/qbs-resources/imports/QbsAutotest.qbs b/qbs-resources/imports/QbsAutotest.qbs
index 78db72d11..5d4143a41 100644
--- a/qbs-resources/imports/QbsAutotest.qbs
+++ b/qbs-resources/imports/QbsAutotest.qbs
@@ -7,6 +7,7 @@ QtApplication {
consoleApplication: true
property string testName
name: "tst_" + testName
+ property string targetInstallDir: qbsbuildconfig.appInstallDir
Depends { name: "Qt.testlib" }
Depends { name: "qbscore" }
Depends { name: "qbsbuildconfig" }
@@ -28,13 +29,14 @@ QtApplication {
"consolelogger.h"
]
}
- cpp.rpaths: [FileInfo.joinPaths(qbs.installRoot, qbs.installPrefix, qbsbuildconfig.libDirName)]
+ cpp.rpaths: qbsbuildconfig.libRPaths
+
qbs.commonRunEnvironment: ({
"QBS_INSTALL_DIR": FileInfo.joinPaths(qbs.installRoot, qbs.installPrefix)
})
Group {
fileTagsFilter: product.type
qbs.install: true
- qbs.installDir: qbsbuildconfig.appInstallDir
+ qbs.installDir: targetInstallDir
}
}
diff --git a/qbs-resources/modules/qbsbuildconfig/qbsbuildconfig.qbs b/qbs-resources/modules/qbsbuildconfig/qbsbuildconfig.qbs
index c2db0189f..7fe735ad9 100644
--- a/qbs-resources/modules/qbsbuildconfig/qbsbuildconfig.qbs
+++ b/qbs-resources/modules/qbsbuildconfig/qbsbuildconfig.qbs
@@ -12,7 +12,7 @@ Module {
property bool enableProjectFileUpdates: false
property bool enableRPath: true
property bool installApiHeaders: true
- property bool enableBundledQt: true
+ property bool enableBundledQt: false
property bool useBundledQtScript: false
property bool staticBuild: false
property string libDirName: "lib"