summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPeter Hartmann <phartmann@blackberry.com>2013-11-04 14:56:18 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-11-15 09:22:48 +0100
commit49b020db22028b3f4de96769d42fcc98ffb3f4e6 (patch)
treec53dc8ea80ac4ea6d3e3cbba323db69594902741 /tools
parent97f266a006d82cc8554915cba6bf767b93d71a06 (diff)
downloadqtxmlpatterns-49b020db22028b3f4de96769d42fcc98ffb3f4e6.tar.gz
make it possible to disable XML schema usage
Removing XML schema functionality reduces the size of libQt5XmlPatterns.so considerably: Linux desktop release mode: with XML schema: 4.3 MB without XML schema: 3.2 MB BlackBerry10 release mode: with XML schema: 2.6 MB without XML schema: 1.9 MB XML schema might not be used, especially on a mobile / embedded device, as opposed to the rest of xmlpatterns (e.g. XPath through QML XmlListModel). Task-number: QTBUG-28068 Change-Id: I5024a822179e7241e592f079efe3adef8f661c70 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/tools.pro9
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/tools.pro b/tools/tools.pro
index 121bed8..92bbaca 100644
--- a/tools/tools.pro
+++ b/tools/tools.pro
@@ -1,2 +1,9 @@
TEMPLATE = subdirs
-!android|android_app: SUBDIRS += xmlpatterns xmlpatternsvalidator
+
+load(qfeatures)
+!android|android_app {
+ SUBDIRS += xmlpatterns
+ !contains(QT_DISABLED_FEATURES, xmlschema) {
+ SUBDIRS += xmlpatternsvalidator
+ }
+}