summaryrefslogtreecommitdiff
path: root/src/src.qbs
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@theqtcompany.com>2016-03-01 16:08:38 +0100
committerChristian Kandeler <christian.kandeler@theqtcompany.com>2016-03-02 09:46:37 +0000
commita57f930036172cec4e1778ba79b4c41e55fbaf93 (patch)
treeb39b6b7721d334bbc9f57ecba230ca55e65b7635 /src/src.qbs
parenteaabc261265340c94b770997f6893e82c3423276 (diff)
downloadqt-creator-a57f930036172cec4e1778ba79b4c41e55fbaf93.tar.gz
qbs build: Adapt to new implementation of qbs.FileInfo.
We cannot pass in a relative path as the first argument of FileInfo.relativePath() anymore, which we relied on in some places. The old implementation assumed that if both arguments were relative paths, they had an implicit common base directory. Change-Id: I55ee62e478da761cf085587c57220d5fb1ac990e Reviewed-by: Jake Petroules <jake.petroules@theqtcompany.com>
Diffstat (limited to 'src/src.qbs')
-rw-r--r--src/src.qbs12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/src.qbs b/src/src.qbs
index c1dd5905d4..ff8007be73 100644
--- a/src/src.qbs
+++ b/src/src.qbs
@@ -29,16 +29,18 @@ Project {
property bool installApiHeaders: false
property string libInstallDir: project.ide_library_path
property stringList libRPaths: qbs.targetOS.contains("osx")
- ? ["@loader_path/" + FileInfo.relativePath(appInstallDir, libInstallDir)]
+ ? ["@loader_path/" + FileInfo.relativePath('/' + appInstallDir, '/' + libInstallDir)]
: ["$ORIGIN/..", "$ORIGIN/../" + project.ide_library_path]
property string resourcesInstallDir: project.ide_data_path + "/qbs"
property string pluginsInstallDir: project.ide_plugin_path
property string appInstallDir: project.ide_bin_path
property string libexecInstallDir: project.ide_libexec_path
- property string relativeLibexecPath: FileInfo.relativePath(appInstallDir, libexecInstallDir)
- property string relativePluginsPath: FileInfo.relativePath(appInstallDir, pluginsInstallDir)
- property string relativeSearchPath: FileInfo.relativePath(appInstallDir,
- resourcesInstallDir)
+ property string relativeLibexecPath: FileInfo.relativePath('/' + appInstallDir,
+ '/' + libexecInstallDir)
+ property string relativePluginsPath: FileInfo.relativePath('/' + appInstallDir,
+ '/' + pluginsInstallDir)
+ property string relativeSearchPath: FileInfo.relativePath('/' + appInstallDir,
+ '/' + resourcesInstallDir)
references: [
qbsBaseDir + "/src/lib/libs.qbs",