summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt
diff options
context:
space:
mode:
authorDominik Wenger <domonoky@googlemail.com>2008-10-13 17:19:45 +0000
committerDominik Wenger <domonoky@googlemail.com>2008-10-13 17:19:45 +0000
commit7470797b3757e851fe88d713aaa832d18be17c7a (patch)
tree82759788c0d96c8ba956aae99feb3328fb4e63db /rbutil/rbutilqt
parent5aa0665b5b5522f7867e0ba26ab14e30712f9829 (diff)
downloadrockbox-7470797b3757e851fe88d713aaa832d18be17c7a.tar.gz
rockbox-7470797b3757e851fe88d713aaa832d18be17c7a.tar.bz2
rockbox-7470797b3757e851fe88d713aaa832d18be17c7a.zip
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
Diffstat (limited to 'rbutil/rbutilqt')
-rw-r--r--rbutil/rbutilqt/main.cpp7
-rwxr-xr-xrbutil/rbutilqt/osx_deploy.sh13
2 files changed, 18 insertions, 2 deletions
diff --git a/rbutil/rbutilqt/main.cpp b/rbutil/rbutilqt/main.cpp
index 124d103885..0b720d60f6 100644
--- a/rbutil/rbutilqt/main.cpp
+++ b/rbutil/rbutilqt/main.cpp
@@ -28,7 +28,12 @@ Q_IMPORT_PLUGIN(qtaccessiblewidgets)
int main( int argc, char ** 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();
// portable installation:
// check for a configuration file in the program folder.
diff --git a/rbutil/rbutilqt/osx_deploy.sh b/rbutil/rbutilqt/osx_deploy.sh
index f40516aabe..7969685ea6 100755
--- a/rbutil/rbutilqt/osx_deploy.sh
+++ b/rbutil/rbutilqt/osx_deploy.sh
@@ -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/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"
-hdiutil create -srcfolder rbutilqt.app -ov rbutilqt.dmg \ No newline at end of file
+hdiutil create -srcfolder rbutilqt.app -ov rbutilqt.dmg