summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNikos Chantziaras <realnc@arcor.de>2011-06-28 18:59:03 (GMT)
committerNikos Chantziaras <realnc@arcor.de>2011-06-28 18:59:03 (GMT)
commit5ca5beebb263d64115071e8156e175c371dff2f6 (patch)
tree2744e9b081c45d7a7d723b8e315c64febd65f169 /src
parent3521599db7e84a6cc813f2ab041514be5012fc7e (diff)
downloadmxe-5ca5beebb263d64115071e8156e175c371dff2f6.zip
mxe-5ca5beebb263d64115071e8156e175c371dff2f6.tar.gz
mxe-5ca5beebb263d64115071e8156e175c371dff2f6.tar.bz2
package qt: build with -no-iconv
mingw-cross-env should build Qt with "-no-iconv". That way, the programmer will get linker errors when trying to build his application. That way, he will know that he *must* include the text codec plugins.
Diffstat (limited to 'src')
-rw-r--r--src/qt-test.cpp6
-rw-r--r--src/qt-test.pro1
-rw-r--r--src/qt.mk3
3 files changed, 9 insertions, 1 deletions
diff --git a/src/qt-test.cpp b/src/qt-test.cpp
index 6f3797a..b29c6e4 100644
--- a/src/qt-test.cpp
+++ b/src/qt-test.cpp
@@ -2,6 +2,7 @@
/* See doc/index.html for further information. */
#include <QApplication>
+#include <QtPlugin>
#include "ui_qt-test.h"
#ifdef Q_OS_AIX
@@ -144,6 +145,11 @@
#error "Q_WS_WIN is not defined"
#endif
+Q_IMPORT_PLUGIN(qcncodecs)
+Q_IMPORT_PLUGIN(qjpcodecs)
+Q_IMPORT_PLUGIN(qtwcodecs)
+Q_IMPORT_PLUGIN(qkrcodecs)
+
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
diff --git a/src/qt-test.pro b/src/qt-test.pro
index 4da2835..9eb301c 100644
--- a/src/qt-test.pro
+++ b/src/qt-test.pro
@@ -4,3 +4,4 @@
TARGET = test-qt
SOURCES += qt-test.cpp
FORMS += qt-test.ui
+QTPLUGIN += qcncodecs qjpcodecs qtwcodecs qkrcodecs
diff --git a/src/qt.mk b/src/qt.mk
index 2e3f57a..17e7e8a 100644
--- a/src/qt.mk
+++ b/src/qt.mk
@@ -10,7 +10,7 @@ $(PKG)_SUBDIR := $(PKG)-everywhere-opensource-src-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-everywhere-opensource-src-$($(PKG)_VERSION).tar.gz
$(PKG)_WEBSITE := http://qt.nokia.com/
$(PKG)_URL := http://get.qt.nokia.com/qt/source/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc libodbc++ postgresql freetds openssl zlib libpng jpeg libmng tiff sqlite libiconv dbus
+$(PKG)_DEPS := gcc libodbc++ postgresql freetds openssl zlib libpng jpeg libmng tiff sqlite dbus
define $(PKG)_UPDATE
wget -q -O- 'http://qt.gitorious.org/qt/qt/commits' | \
@@ -41,6 +41,7 @@ define $(PKG)_BUILD
-prefix '$(PREFIX)/$(TARGET)' \
-prefix-install \
-script \
+ -no-iconv \
-opengl desktop \
-webkit \
-no-glib \