Fixed build when Qt is configured with -no-opengl.
authorSamuel Rødal <samuel.rodal@digia.com>
Tue, 19 Feb 2013 13:47:12 +0000 (14:47 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 20 Feb 2013 07:52:28 +0000 (08:52 +0100)
Task-number: QTBUG-28849
Change-Id: I331ebca76892ce7ffbc6f8e03ff4afe0c8e28d5e
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>

examples/examples.pro
examples/qml/qml.pro
src/src.pro
tools/tools.pro

index 1bcc66d..0712e81 100644 (file)
@@ -1,5 +1,4 @@
 TEMPLATE = subdirs
-SUBDIRS += \
-    qmltest \
-    qml \
-    quick
+qtHaveModule(qmltest): SUBDIRS += qmltest
+SUBDIRS += qml
+qtHaveModule(quick): SUBDIRS += quick
index e6591c8..34b2622 100644 (file)
@@ -1,11 +1,11 @@
 TEMPLATE = subdirs
 
+qtHaveModule(quick): SUBDIRS += networkaccessmanagerfactory xmlhttprequest
+
 SUBDIRS += \
-          networkaccessmanagerfactory \
           plugins \
           referenceexamples \
-          shell \
-          xmlhttprequest
+          shell
 
 EXAMPLE_FILES = \
     dynamicscene \
index f593eb8..7584823 100644 (file)
@@ -3,7 +3,7 @@ CONFIG += ordered
 SUBDIRS += \
     qml
 
-qtHaveModule(gui) {
+qtHaveModule(gui):contains(QT_CONFIG, opengl(es1|es2)?) {
     SUBDIRS += \
         quick \
         qmltest \
index c193cc9..86e2f38 100644 (file)
@@ -1,11 +1,8 @@
 TEMPLATE = subdirs
+qtHaveModule(quick): SUBDIRS += qmlscene qmlplugindump
+qtHaveModule(qmltest): SUBDIRS += qmltestrunner
 SUBDIRS += \
-    qmlscene \
-    qmlplugindump \
     qmlmin \
     qmlprofiler \
-    qmlbundle \
-    qmltestrunner
-qtHaveModule(widgets): SUBDIRS += qmleasing
-
-
+    qmlbundle
+qtHaveModule(quick):qtHaveModule(widgets): SUBDIRS += qmleasing