diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/deployqtHelper_mac.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/deployqtHelper_mac.sh b/scripts/deployqtHelper_mac.sh index daa73bf12db..ca73dac3839 100755 --- a/scripts/deployqtHelper_mac.sh +++ b/scripts/deployqtHelper_mac.sh @@ -54,3 +54,14 @@ cp -f "$(dirname "${BASH_SOURCE[0]}")/../dist/installer/mac/ios_qt.conf" "$1/Con # copy Qt translations cp "$2"/*.qm "$1/Contents/Resources/translations/" || exit 1 + +# copy libclang if needed +if [ $LLVM_INSTALL_DIR ]; then + cp -f "$LLVM_INSTALL_DIR"/lib/libclang.dylib "$1/Contents/PlugIns/" || exit 1 + _CLANG_CODEMODEL_LIB="$1/Contents/PlugIns/QtProject/libClangCodeModel_debug.dylib" + if [ ! -f "$_CLANG_CODEMODEL_LIB" ]; then + _CLANG_CODEMODEL_LIB="$1/Contents/PlugIns/QtProject/libClangCodeModel.dylib" + fi + xcrun install_name_tool -delete_rpath "$LLVM_INSTALL_DIR/lib" -add_rpath "@loader_path/.." "$_CLANG_CODEMODEL_LIB" +fi + |