From 49b020db22028b3f4de96769d42fcc98ffb3f4e6 Mon Sep 17 00:00:00 2001 From: Peter Hartmann Date: Mon, 4 Nov 2013 14:56:18 +0100 Subject: 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 --- tests/auto/auto.pro | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/auto/auto.pro b/tests/auto/auto.pro index 8f0a1e7..df80f80 100644 --- a/tests/auto/auto.pro +++ b/tests/auto/auto.pro @@ -21,19 +21,23 @@ SUBDIRS=\ qxmlnodemodelindex \ qxmlquery \ qxmlresultitems \ - qxmlschema \ - qxmlschemavalidator \ qxmlserializer \ xmlpatterns \ xmlpatternsdiagnosticsts \ - xmlpatternsschema \ - xmlpatternsschemats \ xmlpatternssdk \ xmlpatternsvalidator \ xmlpatternsview \ xmlpatternsxqts \ xmlpatternsxslts \ +load(qfeatures) +!contains(QT_DISABLED_FEATURES, xmlschema) { + SUBDIRS += qxmlschema \ + qxmlschemavalidator \ + xmlpatternsschema \ + xmlpatternsschemats +} + xmlpatternsdiagnosticsts.depends = xmlpatternssdk xmlpatternsview.depends = xmlpatternssdk xmlpatternsxslts.depends = xmlpatternssdk -- cgit v1.2.1