Commit 4d812390 authored by Christian Kandeler's avatar Christian Kandeler

Adapt RPATHs to new libexec path.

Task-number: QTCREATORBUG-14725
Change-Id: I4b5c76faa878897ca7fbf1fe01945550a2d82964
Reviewed-by: default avatarChristian Stenger <christian.stenger@theqtcompany.com>
parent c3192d90
import qbs 1.0
import qbs
import qbs.FileInfo
QtcProduct {
type: "application" // no Mac app bundle
installDir: project.ide_libexec_path
cpp.rpaths: qbs.targetOS.contains("osx")
? ["@executable_path/../" + project.ide_library_path]
: ["$ORIGIN/../" + project.ide_library_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 prefix = qbs.targetOS.contains("osx") ? "@executable_path" : "$ORIGIN";
return [
FileInfo.joinPaths(prefix, relativePathToLibs),
FileInfo.joinPaths(prefix, relativePathToPlugins)
];
}
}
......@@ -10,11 +10,6 @@ QtcTool {
Depends { name: "Core" }
Depends { name: "CppTools" }
cpp.rpaths: [
"$ORIGIN/../" + project.libDirName + "/qtcreator",
"$ORIGIN/../" + project.libDirName + "/qtcreator/plugins",
]
Group {
name: "Frontend Sources"
files: [
......
include(../qtcreator.pri)
include(rpath.pri)
TEMPLATE = app
......@@ -7,5 +6,15 @@ CONFIG += console
CONFIG -= app_bundle
DESTDIR = $$IDE_LIBEXEC_PATH
REL_PATH_TO_LIBS = $$relative_path($$IDE_LIBRARY_PATH, $$IDE_LIBEXEC_PATH)
REL_PATH_TO_PLUGINS = $$relative_path($$IDE_PLUGIN_PATH, $$IDE_LIBEXEC_PATH)
osx {
QMAKE_LFLAGS += -Wl,-rpath,@executable_path/$$REL_PATH_TO_LIBS,-rpath,@executable_path/$$REL_PATH_TO_PLUGINS
} else {
QMAKE_RPATHDIR += \$\$ORIGIN/$$REL_PATH_TO_LIBS
QMAKE_RPATHDIR += \$\$ORIGIN/$$REL_PATH_TO_PLUGINS
}
include(rpath.pri)
target.path = $$QTC_PREFIX/$$relative_path($$IDE_LIBEXEC_PATH, $$IDE_BUILD_TREE)
INSTALLS += target
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment