rbutil: include the qt accessible plugin into the mac bundle. (Enables screenreader support on macs)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18800 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dominik Wenger 2008-10-13 17:19:45 +00:00
parent 5aa0665b5b
commit 7470797b37
2 changed files with 18 additions and 2 deletions

View file

@ -28,7 +28,12 @@ Q_IMPORT_PLUGIN(qtaccessiblewidgets)
int main( int argc, char ** argv ) { int main( int argc, char ** argv ) {
QApplication app( argc, argv ); QApplication app( argc, argv );
#if defined(Q_OS_MAC)
QDir dir(QApplication::applicationDirPath());
dir.cdUp();
dir.cd("plugins");
QApplication::addLibraryPath(dir.absolutePath());
#endif
QString absolutePath = QCoreApplication::instance()->applicationDirPath(); QString absolutePath = QCoreApplication::instance()->applicationDirPath();
// portable installation: // portable installation:
// check for a configuration file in the program folder. // check for a configuration file in the program folder.

View file

@ -83,5 +83,16 @@ install_name_tool -change $QTDIR/lib/QtNetwork.framework/Versions/4/QtNetwork @
install_name_tool -change $QTDIR/lib/QtCore.framework/Versions/4/QtCore @executable_path/../Frameworks/QtCore.framework/Versions/4/QtCore rbutilqt.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui install_name_tool -change $QTDIR/lib/QtCore.framework/Versions/4/QtCore @executable_path/../Frameworks/QtCore.framework/Versions/4/QtCore rbutilqt.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui
install_name_tool -change $QTDIR/lib/QtCore.framework/Versions/4/QtCore @executable_path/../Frameworks/QtCore.framework/Versions/4/QtCore rbutilqt.app/Contents/Frameworks/QtNetwork.framework/Versions/4/QtNetwork install_name_tool -change $QTDIR/lib/QtCore.framework/Versions/4/QtCore @executable_path/../Frameworks/QtCore.framework/Versions/4/QtCore rbutilqt.app/Contents/Frameworks/QtNetwork.framework/Versions/4/QtNetwork
echo "insert accessibility plugins"
mkdir -p rbutilqt.app/Contents/plugins/accessible
cp $QTDIR/plugins/accessible/*.dylib rbutilqt.app/Contents/plugins/accessible
install_name_tool -change $QTDIR/lib/QtCore.framework/Versions/4/QtCore @executable_path/../Frameworks/QtCore.framework/Versions/4/QtCore rbutilqt.app/Contents/plugins/accessible/libqtaccessiblewidgets.dylib
install_name_tool -change $QTDIR/lib/QtGui.framework/Versions/4/QtGui @executable_path/../Frameworks/QtGui.framework/Versions/4/QtGui rbutilqt.app/Contents/plugins/accessible/libqtaccessiblewidgets.dylib
install_name_tool -change $QTDIR/lib/QtCore.framework/Versions/4/QtCore @executable_path/../Frameworks/QtCore.framework/Versions/4/QtCore rbutilqt.app/Contents/plugins/accessible/libqtaccessiblecompatwidgets.dylib
install_name_tool -change $QTDIR/lib/QtGui.framework/Versions/4/QtGui @executable_path/../Frameworks/QtGui.framework/Versions/4/QtGui rbutilqt.app/Contents/plugins/accessible/libqtaccessiblecompatwidgets.dylib
echo "Creating disk image" echo "Creating disk image"
hdiutil create -srcfolder rbutilqt.app -ov rbutilqt.dmg hdiutil create -srcfolder rbutilqt.app -ov rbutilqt.dmg