aboutsummaryrefslogtreecommitdiffstats
path: root/build_scripts/platforms/macos.py
diff options
context:
space:
mode:
authorCristián Maureira-Fredes <cristian.maureira-fredes@qt.io>2020-01-07 11:00:16 +0100
committerCristian Maureira-Fredes <cristian.maureira-fredes@qt.io>2020-01-27 22:39:56 +0000
commit491eb18eaecfae83aae117bbe85de0f352ee2c0d (patch)
tree9d09e3c5770037a44cf9f72b804c708bf533bec1 /build_scripts/platforms/macos.py
parentdeeadb8e5d04975916e3949416d0308b080b389b (diff)
designer: patch rpath for unix
Designer is not statically compiled, so we need to add a RUNPATH to use the Qt libraries we ship with the wheel. Change-Id: I715fcd852b63da99104198be2a4587b042a1eab7 Fixes: PYSIDE-1165 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'build_scripts/platforms/macos.py')
-rw-r--r--build_scripts/platforms/macos.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/build_scripts/platforms/macos.py b/build_scripts/platforms/macos.py
index 159364d9a..7932db337 100644
--- a/build_scripts/platforms/macos.py
+++ b/build_scripts/platforms/macos.py
@@ -39,7 +39,7 @@
import fnmatch
import os
-from ..utils import copydir, copyfile, macos_fix_rpaths_for_library
+from ..utils import copydir, copyfile, macos_fix_rpaths_for_library, macos_add_rpath
from ..config import config
@@ -77,6 +77,13 @@ def prepare_standalone_package_macos(self, vars):
return False
return True
+ # Patching designer to use the Qt libraries provided in the wheel
+ if config.is_internal_pyside_build():
+ designer_bundle = "{st_build_dir}/{st_package_name}/Designer.app".format(**vars)
+ designer_binary = "{}/Contents/MacOS/Designer".format(designer_bundle)
+ rpath = "@loader_path/../../../Qt/lib"
+ macos_add_rpath(rpath, designer_binary)
+
# <qt>/lib/* -> <setup>/{st_package_name}/Qt/lib
if self.qt_is_framework_build():
def framework_dir_filter(dir_name, parent_full_path, dir_full_path):