summaryrefslogtreecommitdiff
path: root/examples
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 /examples
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 'examples')
-rw-r--r--examples/xmlpatterns/xmlpatterns.pro7
1 files changed, 6 insertions, 1 deletions
diff --git a/examples/xmlpatterns/xmlpatterns.pro b/examples/xmlpatterns/xmlpatterns.pro
index ca63f69..bfc3a3e 100644
--- a/examples/xmlpatterns/xmlpatterns.pro
+++ b/examples/xmlpatterns/xmlpatterns.pro
@@ -1,6 +1,11 @@
TEMPLATE = subdirs
SUBDIRS += xquery
-qtHaveModule(widgets): SUBDIRS += filetree schema recipes
+qtHaveModule(widgets) {
+ SUBDIRS += recipes
+
+ load(qfeatures)
+ !contains(QT_DISABLED_FEATURES, xmlschema): SUBDIRS += filetree schema
+}
EXAMPLE_FILES = \
shared