summaryrefslogtreecommitdiffstats
path: root/src/corelib/global/qconfig-small.h
diff options
context:
space:
mode:
authorSérgio Martins <sergio.martins@kdab.com>2015-02-15 16:39:13 +0000
committerSérgio Martins <sergio.martins@kdab.com>2015-02-17 00:06:47 +0000
commitfbeeaf23fe1755bc28185781d8182ddcb4e7985a (patch)
treef6bcacd7251bfcf6bde3587e86ba3502f9a2033e /src/corelib/global/qconfig-small.h
parent3c1d9911c4c327ebc8180efb31fa8e83b1f932fd (diff)
Introduce QT_NO_MIMETYPE
The mime type stuff generates one of the biggest translation units in QtCore due to the compressed 1.7MB freedesktop.org.xml resource. With QT_NO_MIMETYPE, libQt5Core.so is almost 400Kb smaller (4.8MB->4.4MB gcc 4.9 stripped release build) Change-Id: I5339090994034355724ff4deddb64720e81baeaf Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com> Reviewed-by: David Faure <david.faure@kdab.com> Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Diffstat (limited to 'src/corelib/global/qconfig-small.h')
-rw-r--r--src/corelib/global/qconfig-small.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/corelib/global/qconfig-small.h b/src/corelib/global/qconfig-small.h
index 48c08e4f36..43ae101515 100644
--- a/src/corelib/global/qconfig-small.h
+++ b/src/corelib/global/qconfig-small.h
@@ -187,6 +187,9 @@
#ifndef QT_NO_DESKTOPSERVICES
# define QT_NO_DESKTOPSERVICES
#endif
+#ifndef QT_NO_MIMETYPE
+# define QT_NO_MIMETYPE
+#endif
#ifndef QT_NO_SYSTEMTRAYICON
# define QT_NO_SYSTEMTRAYICON
#endif