summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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
+