diff options
author | Cristian Adam <cristian.adam@qt.io> | 2022-05-24 13:35:00 +0200 |
---|---|---|
committer | Cristian Adam <cristian.adam@qt.io> | 2022-05-25 09:45:10 +0000 |
commit | 28497d928b49fb93e2d7622b3e0934d3c12ad3f5 (patch) | |
tree | cef84a18addf4a5140ac9306c0a463f4b57f1ae6 /scripts | |
parent | 6310b84594ba68775624e9f0a89ed2eace8724e0 (diff) |
Scripts: Do not deploy libclang anymore
Since libclang is no longer needed, we don't need to deploy the
library anymore.
Change-Id: Ia7bdb7e089ec95b8252efbfa1c607d03082a99e6
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/deployqt.py | 12 | ||||
-rwxr-xr-x | scripts/deployqtHelper_mac.sh | 7 |
2 files changed, 6 insertions, 13 deletions
diff --git a/scripts/deployqt.py b/scripts/deployqt.py index d18b3cc2893..33d216751fd 100755 --- a/scripts/deployqt.py +++ b/scripts/deployqt.py @@ -227,7 +227,7 @@ def copyPreservingLinks(source, destination): else: shutil.copy(source, destination) -def deploy_libclang(install_dir, llvm_install_dir, chrpath_bin): +def deploy_clang(install_dir, llvm_install_dir, chrpath_bin): # contains pairs of (source, target directory) deployinfo = [] resourcesource = os.path.join(llvm_install_dir, 'lib', 'clang') @@ -238,18 +238,12 @@ def deploy_libclang(install_dir, llvm_install_dir, chrpath_bin): clanglibdirtarget = os.path.join(install_dir, 'bin', 'clang', 'lib') if not os.path.exists(clanglibdirtarget): os.makedirs(clanglibdirtarget) - deployinfo.append((os.path.join(llvm_install_dir, 'bin', 'libclang.dll'), - os.path.join(install_dir, 'bin'))) for binary in ['clang', 'clang-cl', 'clangd', 'clang-tidy', 'clazy-standalone']: binary_filepath = os.path.join(llvm_install_dir, 'bin', binary + '.exe') if os.path.exists(binary_filepath): deployinfo.append((binary_filepath, clangbindirtarget)) resourcetarget = os.path.join(clanglibdirtarget, 'clang') else: - # libclang -> Qt Creator libraries - libsources = glob(os.path.join(llvm_install_dir, 'lib', 'libclang.so*')) - for libsource in libsources: - deployinfo.append((libsource, os.path.join(install_dir, 'lib', 'qtcreator'))) # clang binaries -> clang libexec clangbinary_targetdir = os.path.join(install_dir, 'libexec', 'qtcreator', 'clang', 'bin') if not os.path.exists(clangbinary_targetdir): @@ -273,7 +267,7 @@ def deploy_libclang(install_dir, llvm_install_dir, chrpath_bin): deployinfo.append((lib, clanglibs_targetdir)) resourcetarget = os.path.join(install_dir, 'libexec', 'qtcreator', 'clang', 'lib', 'clang') - print("copying libclang...") + print("copying clang...") for source, target in deployinfo: print(source, '->', target) copyPreservingLinks(source, target) @@ -403,7 +397,7 @@ def main(): copy_qt_libs(qt_deploy_prefix, qt_install.bin, qt_install.lib, qt_install.plugins, qt_install.qml, plugins) copy_translations(install_dir, qt_install.translations) if args.llvm_path: - deploy_libclang(install_dir, args.llvm_path, chrpath_bin) + deploy_clang(install_dir, args.llvm_path, chrpath_bin) if args.elfutils_path: deploy_elfutils(install_dir, chrpath_bin, args) diff --git a/scripts/deployqtHelper_mac.sh b/scripts/deployqtHelper_mac.sh index e85c48ef203..8e6880f7d99 100755 --- a/scripts/deployqtHelper_mac.sh +++ b/scripts/deployqtHelper_mac.sh @@ -109,15 +109,14 @@ if [ ! -f "$resource_path/translations/qt_de.qm" ]; then cp "$translation_src"/*.qm "$resource_path/translations/" || exit 1 fi -# copy libclang if needed +# copy clang if needed if [ $LLVM_INSTALL_DIR ]; then - if [ "$LLVM_INSTALL_DIR"/lib/libclang.dylib -nt "$app_path/Contents/PlugIns"/libclang.dylib ]; then - echo "- Copying libclang" + if [ "$LLVM_INSTALL_DIR"/lib/libclang-cpp.dylib -nt "$libexec_path"/clang/lib/libclang-cpp.dylib ]; then + echo "- Copying clang" mkdir -p "$app_path/Contents/Frameworks" || exit 1 # use recursive copy to make it copy symlinks as symlinks mkdir -p "$libexec_path/clang/bin" mkdir -p "$libexec_path/clang/lib" - cp -Rf "$LLVM_INSTALL_DIR"/lib/libclang.*dylib "$app_path/Contents/Frameworks/" || exit 1 cp -Rf "$LLVM_INSTALL_DIR"/lib/clang "$libexec_path/clang/lib/" || exit 1 cp -Rf "$LLVM_INSTALL_DIR"/lib/libclang-cpp.dylib "$libexec_path/clang/lib/" || exit 1 cp -Rf "$LLVM_INSTALL_DIR"/lib/ClazyPlugin.dylib "$libexec_path/clang/lib/" || exit 1 |