diff options
author | Eike Ziller <eike.ziller@qt.io> | 2020-02-18 12:14:02 +0100 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2020-02-18 12:14:02 +0100 |
commit | 75972f04f631fd37c7d7737f2a3d268f30a2c52d (patch) | |
tree | 7dc5020e326e324e59fe9034b04e48de30191ea9 /scripts/packagePlugins.py | |
parent | e2fad3afa41770977390884e4a30dc99e6f53fe1 (diff) | |
parent | cde9f31068bed64bc06fd75fc3fc95418bee9f3d (diff) | |
download | qt-creator-75972f04f631fd37c7d7737f2a3d268f30a2c52d.tar.gz |
Merge remote-tracking branch 'origin/4.11' into 4.12
Change-Id: I0d2977a2ed6f73cbc1e3cb5f1bf7e2e923a35305
Diffstat (limited to 'scripts/packagePlugins.py')
-rwxr-xr-x | scripts/packagePlugins.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/scripts/packagePlugins.py b/scripts/packagePlugins.py index d70de8e33d..5cbace790c 100755 --- a/scripts/packagePlugins.py +++ b/scripts/packagePlugins.py @@ -28,7 +28,6 @@ import argparse import os import subprocess -import sys import common @@ -45,10 +44,16 @@ def parse_arguments(): if __name__ == "__main__": arguments = parse_arguments() + qt_install_info = common.get_qt_install_info(arguments.qmake_binary) if common.is_linux_platform(): - qt_install_info = common.get_qt_install_info(arguments.qmake_binary) common.fix_rpaths(arguments.source_directory, os.path.join(arguments.source_directory, 'lib', 'Qt', 'lib'), qt_install_info) + if common.is_mac_platform(): + # remove Qt rpath + lib_path = qt_install_info['QT_INSTALL_LIBS'] + common.os_walk(arguments.source_directory, + lambda fp: fp.endswith('.dylib'), + lambda fp: subprocess.call(['install_name_tool', '-delete_rpath', lib_path, fp])) subprocess.check_call([arguments.sevenzip, 'a', '-mx9', arguments.target_file, os.path.join(arguments.source_directory, '*')]) |