summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorVicente Olivert Riera <Vincent.Riera@imgtec.com>2014-04-16 12:19:17 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-04-17 13:37:14 +0200
commite4453c92ee41943a3a1d67a725804a44e747f64e (patch)
tree7e60f94c12d29af388be52da078527d2b4c80860 /examples
parent08d9ef715265d33f4cf04693b0787fd75994dc42 (diff)
downloadqtscript-e4453c92ee41943a3a1d67a725804a44e747f64e.tar.gz
qtscript: Check for QtGui before building the examples
qsdbg and marshal examples need QtGui module. If QtGui is not installed they fail to compile. Change-Id: I1af6a8b39a0848c8208fe94a26ee57409dfd9b41 Reviewed-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/script/script.pro9
1 files changed, 4 insertions, 5 deletions
diff --git a/examples/script/script.pro b/examples/script/script.pro
index 3e1eae6..cc97233 100644
--- a/examples/script/script.pro
+++ b/examples/script/script.pro
@@ -1,7 +1,7 @@
TEMPLATE = subdirs
-SUBDIRS = \
- customclass \
- qsdbg
+SUBDIRS = customclass
+
+qtHaveModule(gui): SUBDIRS += qsdbg
qtHaveModule(widgets) {
SUBDIRS += \
@@ -22,8 +22,7 @@ qtHaveModule(widgets) {
}
!wince {
- SUBDIRS += \
- marshal
+ qtHaveModule(gui): SUBDIRS += marshal
}
maemo5: CONFIG += qt_example