aboutsummaryrefslogtreecommitdiffstats
path: root/qbs.qbs
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@digia.com>2013-07-04 10:40:48 +0200
committerJoerg Bornemann <joerg.bornemann@digia.com>2013-07-04 11:34:03 +0200
commit2b4a3b49f8ac33ea5b4ec36e175e3c3de1d1fdab (patch)
tree909f1e58703baf12ffdbdde7ab2443ae69ad4c31 /qbs.qbs
parent4a577b2acc20e6715c15de1bdcf5c4bdd75386e4 (diff)
Fix rpath on OSX for the qbs build.
Change-Id: I0e8867d3736c4597a1a0e114252a086fdb4a0487 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'qbs.qbs')
-rw-r--r--qbs.qbs10
1 files changed, 8 insertions, 2 deletions
diff --git a/qbs.qbs b/qbs.qbs
index 62864d87f..62ee68f51 100644
--- a/qbs.qbs
+++ b/qbs.qbs
@@ -5,8 +5,14 @@ Project {
property bool enableRPath: true
property bool installApiHeaders: true
property path libInstallDir: qbs.targetOS.contains("windows") ? "bin" : "lib"
- property path libRPaths: (project.enableRPath && qbs.targetOS.contains("linux"))
- ? ["$ORIGIN/../lib"] : undefined
+ property path libRPaths: {
+ if (!project.enableRPath)
+ return undefined;
+ if (qbs.targetOS.contains("linux"))
+ return ["$ORIGIN/../lib"];
+ if (qbs.targetOS.contains("osx"))
+ return ["@loader_path/../lib"]
+ }
property path resourcesInstallDir: ""
references: [