summaryrefslogtreecommitdiff
path: root/qbs/imports
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 /qbs/imports
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 'qbs/imports')
-rw-r--r--qbs/imports/QtcTool.qbs8
1 files changed, 4 insertions, 4 deletions
diff --git a/qbs/imports/QtcTool.qbs b/qbs/imports/QtcTool.qbs
index fbd9733600..a1f228e2b2 100644
--- a/qbs/imports/QtcTool.qbs
+++ b/qbs/imports/QtcTool.qbs
@@ -7,10 +7,10 @@ QtcProduct {
installDir: project.ide_libexec_path
cpp.rpaths: {
- var relativePathToLibs
- = FileInfo.relativePath(project.ide_libexec_path, project.ide_library_path);
- var relativePathToPlugins
- = FileInfo.relativePath(project.ide_libexec_path, project.ide_plugin_path);
+ var relativePathToLibs = FileInfo.relativePath('/' + project.ide_libexec_path,
+ '/' + project.ide_library_path);
+ var relativePathToPlugins = FileInfo.relativePath('/' + project.ide_libexec_path,
+ '/' + project.ide_plugin_path);
var prefix = qbs.targetOS.contains("osx") ? "@executable_path" : "$ORIGIN";
return [
FileInfo.joinPaths(prefix, relativePathToLibs),