summaryrefslogtreecommitdiff
path: root/examples/script/script.pro
diff options
context:
space:
mode:
Diffstat (limited to 'examples/script/script.pro')
-rw-r--r--examples/script/script.pro38
1 files changed, 22 insertions, 16 deletions
diff --git a/examples/script/script.pro b/examples/script/script.pro
index 9e66a61..3e1eae6 100644
--- a/examples/script/script.pro
+++ b/examples/script/script.pro
@@ -1,23 +1,29 @@
TEMPLATE = subdirs
-SUBDIRS = customclass
-!contains(QT_CONFIG, no-gui):SUBDIRS += helloscript context2d defaultprototypes
+SUBDIRS = \
+ customclass \
+ qsdbg
-!wince*:!contains(QT_CONFIG, no-gui):SUBDIRS += qscript marshal
-!wince*:SUBDIRS *= marshal
+qtHaveModule(widgets) {
+ SUBDIRS += \
+ helloscript \
+ context2d \
+ defaultprototypes
-symbian: SUBDIRS = context2d
+ qtHaveModule(uitools) {
+ SUBDIRS += \
+ calculator \
+ qstetrix
+ }
-isEmpty(QT.widgets.name):SUBDIRS -= \
- context2d \
- defaultprototypes \
- helloscript \
- qscript
+ !wince {
+ SUBDIRS += \
+ qscript
+ }
+}
-# install
-target.path = $$[QT_INSTALL_EXAMPLES]/qtscript/script
-sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS script.pro README
-sources.path = $$[QT_INSTALL_EXAMPLES]/qtscript/script
-INSTALLS += target sources
+!wince {
+ SUBDIRS += \
+ marshal
+}
-symbian: CONFIG += qt_example
maemo5: CONFIG += qt_example