Skip to content

Commit

Permalink
qtscript: Check for QtGui before building the examples
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Vicente Olivert Riera authored and The Qt Project committed Apr 17, 2014
1 parent 08d9ef7 commit e4453c9
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions examples/script/script.pro
@@ -1,7 +1,7 @@
TEMPLATE = subdirs
SUBDIRS = \
customclass \
qsdbg
SUBDIRS = customclass

qtHaveModule(gui): SUBDIRS += qsdbg

qtHaveModule(widgets) {
SUBDIRS += \
Expand All @@ -22,8 +22,7 @@ qtHaveModule(widgets) {
}

!wince {
SUBDIRS += \
marshal
qtHaveModule(gui): SUBDIRS += marshal
}

maemo5: CONFIG += qt_example

0 comments on commit e4453c9

Please sign in to comment.