summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2007-08-22 20:51:36 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2007-08-22 20:51:36 +0000
commita3af8f1dce010c96a21b2a6d22693bc63268bc6a (patch)
treef31c29e08de17352c37351e6b9111f0de08e0717 /rbutil/rbutilqt
parentbef4c24f395b59be1316ab732f6bd81590df36fb (diff)
downloadrockbox-a3af8f1dce010c96a21b2a6d22693bc63268bc6a.tar.gz
rockbox-a3af8f1dce010c96a21b2a6d22693bc63268bc6a.tar.bz2
rockbox-a3af8f1dce010c96a21b2a6d22693bc63268bc6a.zip
add project file for including accessibility plugin when building static binary. As there is no way to distinguish between static and dynamic builds you need to select the project file manually.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14432 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt')
-rw-r--r--rbutil/rbutilqt/main.cpp4
-rw-r--r--rbutil/rbutilqt/rbutilqt-static.pro8
2 files changed, 12 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/main.cpp b/rbutil/rbutilqt/main.cpp
index d9c1b32e2e..a6b2a3e957 100644
--- a/rbutil/rbutilqt/main.cpp
+++ b/rbutil/rbutilqt/main.cpp
@@ -21,6 +21,10 @@
#include <QtGui>
#include "rbutilqt.h"
+#ifdef STATIC
+#include <QtPlugin>
+Q_IMPORT_PLUGIN(qtaccessiblewidgets)
+#endif
int main( int argc, char ** argv ) {
QApplication app( argc, argv );
diff --git a/rbutil/rbutilqt/rbutilqt-static.pro b/rbutil/rbutilqt/rbutilqt-static.pro
new file mode 100644
index 0000000000..4b0e51ae35
--- /dev/null
+++ b/rbutil/rbutilqt/rbutilqt-static.pro
@@ -0,0 +1,8 @@
+# project file for building static binary
+
+include(rbutilqt.pro)
+
+QTPLUGIN += qtaccessiblewidgets
+LIBS += -L$$(QT_BUILD_TREE)/plugins/accessible -lqtaccessiblewidgets
+DEFINES += STATIC
+