aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/deployqtHelper_mac.sh
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@theqtcompany.com>2015-07-10 10:18:20 +0200
committerEike Ziller <eike.ziller@theqtcompany.com>2015-07-10 09:03:10 +0000
commit366f0dacdceb8521214445ded0e1e2e83cc5ed5e (patch)
treee9c5fa40b4009e7eb934b2b03d57d43aa5bdb840 /scripts/deployqtHelper_mac.sh
parent2205051eaca2784b3da33bb71bb99536493f4041 (diff)
Deploy only the clang binary and its link target
Instead of all clang* which is too much on Windows (because they are copies instead of links), and we don't want clang-check on Linux and OS X either anyhow Change-Id: Ia08cf09efa5a23ec6b83bc5df18d09558810f72d Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Diffstat (limited to 'scripts/deployqtHelper_mac.sh')
-rwxr-xr-xscripts/deployqtHelper_mac.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/deployqtHelper_mac.sh b/scripts/deployqtHelper_mac.sh
index 78c34ec91f..be7929a5ff 100755
--- a/scripts/deployqtHelper_mac.sh
+++ b/scripts/deployqtHelper_mac.sh
@@ -61,8 +61,12 @@ if [ $LLVM_INSTALL_DIR ]; then
# use recursive copy to make it copy symlinks as symlinks
cp -Rf "$LLVM_INSTALL_DIR"/lib/libclang.*dylib "$1/Contents/Frameworks/" || exit 1
cp -Rf "$LLVM_INSTALL_DIR"/lib/clang "$1/Contents/Resources/cplusplus/" || exit 1
- cp -Rf "$LLVM_INSTALL_DIR"/bin/clang* "$1/Contents/Resources/" || exit 1
- rm "$1/Contents/Resources/clang-check"
+ clangsource="$LLVM_INSTALL_DIR"/bin/clang
+ clanglinktarget="$(readlink "$clangsource")"
+ cp -Rf "$clangsource" "$1/Contents/Resources/" || exit 1
+ if [ $clanglinktarget ]; then
+ cp -Rf "$(dirname "$clangsource")/$clanglinktarget" "$1/Contents/Resources/$clanglinktarget" || exit 1
+ fi
fi
_CLANG_CODEMODEL_LIB="$1/Contents/PlugIns/libClangCodeModel_debug.dylib"
if [ ! -f "$_CLANG_CODEMODEL_LIB" ]; then