aboutsummaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2018-04-10 13:09:05 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2018-04-20 10:57:26 +0000
commita63bf4c49d29747ac1cfeaae2e802ad7ccd34336 (patch)
tree91a5b003964a53252bcfffe6bdf8b2cc697b9bf4 /setup.py
parente755915872c57d5091b1dfc643f12ade8f567ba6 (diff)
Fix rpath for QWebEngineProcess on macOS non-framework build
Change-Id: Ic7e9768490c2aa84f26bbdee20c0635a82fbb641 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/setup.py b/setup.py
index 46291353..947f7810 100644
--- a/setup.py
+++ b/setup.py
@@ -1635,6 +1635,14 @@ class pyside_build(_build):
recursive=False,
vars=vars)
+ # Fix rpath for WebEngine process executable.
+ pyside_package_dir = vars['pyside_package_dir']
+ qt_libexec_path = "{}/PySide2/Qt/libexec".format(pyside_package_dir)
+ binary = "QtWebEngineProcess"
+ final_path = os.path.join(qt_libexec_path, binary)
+ rpath = "@loader_path/../lib"
+ osx_fix_rpaths_for_library(final_path, rpath)
+
# <qt>/plugins/* -> <setup>/PySide2/Qt/plugins
copydir("{qt_plugins_dir}",
"{pyside_package_dir}/PySide2/Qt/plugins",