1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-29 07:24:13 +01:00

OP-1155 OSX Package: Provision for running install_name_tool on QTQuick plugins dylib.

This commit is contained in:
a*morale 2014-01-10 01:04:44 +01:00
parent bab382a3df
commit 6231b6f85d

View File

@ -25,21 +25,25 @@ echo "Qt library directory is \"${QT_DIR}\""
echo "Running macdeployqt from ${QT_DIR}../bin/macdeployqt" echo "Running macdeployqt from ${QT_DIR}../bin/macdeployqt"
"${QT_DIR}../bin/macdeployqt" "${APP}" -no-strip "${QT_DIR}../bin/macdeployqt" "${APP}" -no-strip -verbose=2
echo "Processing Qt libraries paths in ${APP}" echo "Processing Qt libraries paths in ${APP}"
for f in "${PLUGINS}/"*.dylib "${OP_PLUGINS}/"*.dylib for f in "${PLUGINS}/"*.dylib "${OP_PLUGINS}/"*.dylib "${APP}/"Contents/MacOS/QtQuick.2/*.dylib "${APP}/"Contents/MacOS/QtQuick/*/*.dylib
do do
# Only process plain files if [ -f "${f}" ] && [ ! -L "${f}" ]
[ ! -L "${f}" ] && echo "* ${f}" && for g in $QT_LIBS then
do # Only process plain files
chmod +w "${f}" chmod +w "${f}"
install_name_tool -change \ echo "* ${f}"
"${QT_DIR}${g}.framework/Versions/5/${g}" \ for g in $QT_LIBS
@executable_path/../Frameworks/${g}.framework/Versions/5/${g} \ do
"${f}" install_name_tool -change \
"${QT_DIR}${g}.framework/Versions/5/${g}" \
@executable_path/../Frameworks/${g}.framework/Versions/5/${g} \
"${f}"
done
chmod -w "${f}" chmod -w "${f}"
done fi
done done
echo "Copying SDL" echo "Copying SDL"