4 PLUGINS
="${APP}/Contents/Plugins"
5 OP_PLUGINS
="${APP}/Contents/Plugins/OpenPilot"
6 QT_LIBS
="QtCore QtGui QtMultimedia QtMultimediaWidgets QtNetwork QtOpenGL QtPrintSupport QtQml QtQuick QtScript QtSerialPort QtSql QtSvg QtWidgets QtV8 QtXml"
7 QT_EXTRA
="accessible/libqtaccessiblewidgets.dylib bearer/libqgenericbearer.dylib imageformats/libqgif.dylib imageformats/libqico.dylib imageformats/libqjpeg.dylib imageformats/libqmng.dylib imageformats/libqtiff.dylib imageformats/libqsvg.dylib qmltooling/libqmldbg_tcp.dylib sqldrivers/libqsqlodbc.dylib sqldrivers/libqsqlpsql.dylib sqldrivers/libqsqlite.dylib imageformats/libqtga.dylib iconengines/libqsvgicon.dylib"
9 OSG_EXTRA
="libosgViewer.90.dylib"
13 # QT_DIR is empty, then we have (presumably):
14 QT_FRAMEWORKS
="/Library/Frameworks"
15 QT_PLUGINS
="/Developer/Applications/Qt/plugins"
17 # Typical Nokia SDK paths
18 QT_FRAMEWORKS
="${QT_DIR}"
19 QT_PLUGINS
="${QT_DIR}/../plugins"
23 echo "Qt library directory is \"${QT_DIR}\""
25 echo "Running macdeployqt from ${QT_DIR}../bin/macdeployqt"
27 "${QT_DIR}../bin/macdeployqt" "${APP}" -no-strip -verbose=2
29 #Append Qml2Imports config to qt.conf
30 echo "Qml2Imports = Imports" >> "${APP}/"Contents
/Resources
/qt.conf
32 echo "Processing Qt libraries paths in ${APP}"
33 for f
in "${PLUGINS}/"*.dylib "${OP_PLUGINS}/"*.dylib "${APP}/"Contents/Imports/QtQuick.2/*.dylib "${APP}/"Contents
/Imports
/QtQuick
/*/*.dylib
35 if [ -f "${f}" ] && [ ! -L "${f}" ]
37 # Only process plain files
42 install_name_tool
-change \
43 "${QT_DIR}${g}.framework/Versions/5/${g}" \
44 @executable_path
/..
/Frameworks
/${g}.framework
/Versions
/5/${g} \
52 cp -a "/Library/Frameworks/SDL.framework" "${APP}/Contents/Frameworks/"
53 chmod +w
"${APP}/Contents/Plugins/libsdlgamepad.1.dylib"
54 chmod +w
"${APP}/Contents/Frameworks/SDL.framework/SDL"
55 echo "Changing package identification of SDL"
56 install_name_tool
-id \
57 @executable_path
/..
/Frameworks
/SDL.framework
/SDL \
58 "${APP}/Contents/Frameworks/SDL.framework/SDL"
59 install_name_tool
-change \
60 @rpath
/SDL.framework
/Versions
/A
/SDL \
61 "@executable_path/../Frameworks/SDL.framework/SDL" \
62 "${APP}/Contents/Plugins/libsdlgamepad.1.dylib"
63 chmod -w "${APP}/Contents/Plugins/libsdlgamepad.1.dylib"
64 chmod -w "${APP}/Contents/Frameworks/SDL.framework/SDL"
66 # deleting unnecessary files
67 echo "Deleting unnecessary files"
68 find "${APP}/Contents/Frameworks" -iname "*_debug" -exec rm -rf \
{\
} \
;