Make compile with -no-widgets
authorTasuku Suzuki <tasuku.suzuki@nokia.com>
Thu, 30 Aug 2012 15:51:20 +0000 (00:51 +0900)
committerQt by Nokia <qt-info@nokia.com>
Tue, 4 Sep 2012 08:29:23 +0000 (10:29 +0200)
Change-Id: I6a057950315a1e2084fd6fc130007f865d096f12
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
examples/examples.pro

index 92e530a..65b4d3f 100644 (file)
@@ -1,12 +1,13 @@
 TEMPLATE = subdirs
 
+SUBDIRS += audiodecoder
+
 # These examples all need widgets for now (using creator templates that use widgets)
 !isEmpty(QT.widgets.name) {
     SUBDIRS += \
         radio \
         camera \
         spectrum \
-        audiodecoder \
         audiorecorder \
         audiodevices \
         audioinput \
@@ -15,14 +16,15 @@ TEMPLATE = subdirs
         videowidget \
         player
 
-    contains(QT_CONFIG, qml) {
-        disabled:SUBDIRS += declarative-camera
-        SUBDIRS += \
-            declarative-radio \
-            video
-    }
-
     QT += widgets
 }
 
+!isEmpty(QT.gui.name):!isEmpty(QT.qml.name) {
+    disabled:SUBDIRS += declarative-camera
+    SUBDIRS += \
+        declarative-radio \
+        video
+}
+
 config_openal: SUBDIRS += audioengine
+