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"
"${QT_DIR}../bin/macdeployqt" "${APP}" -no-strip
"${QT_DIR}../bin/macdeployqt" "${APP}" -no-strip -verbose=2
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
if [ -f "${f}" ] && [ ! -L "${f}" ]
then
# Only process plain files
[ ! -L "${f}" ] && echo "* ${f}" && for g in $QT_LIBS
do
chmod +w "${f}"
echo "* ${f}"
for g in $QT_LIBS
do
install_name_tool -change \
"${QT_DIR}${g}.framework/Versions/5/${g}" \
@executable_path/../Frameworks/${g}.framework/Versions/5/${g} \
"${f}"
chmod -w "${f}"
done
chmod -w "${f}"
fi
done
echo "Copying SDL"