summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/auto/auto.pro8
-rw-r--r--tests/auto/headersclean/tst_headersclean.cpp5
2 files changed, 12 insertions, 1 deletions
diff --git a/tests/auto/auto.pro b/tests/auto/auto.pro
index b5936c0..1d4d614 100644
--- a/tests/auto/auto.pro
+++ b/tests/auto/auto.pro
@@ -23,4 +23,12 @@ SUBDIRS=\
qtipc \
qscriptengineagent
+isEmpty(QT.widgets.name):SUBDIRS -= \
+ qscriptable \
+ qscriptengine \
+ qscriptenginedebugger \
+ qscriptextqobject \
+ qscriptqwidgets \
+ qscriptvalue
+
!cross_compile: SUBDIRS += host.pro
diff --git a/tests/auto/headersclean/tst_headersclean.cpp b/tests/auto/headersclean/tst_headersclean.cpp
index e964f30..facfa55 100644
--- a/tests/auto/headersclean/tst_headersclean.cpp
+++ b/tests/auto/headersclean/tst_headersclean.cpp
@@ -50,7 +50,10 @@
#include <QtTest/QtTest>
#include <QtScript/QtScript>
-#include <QtScriptTools/QtScriptTools>
+
+#ifdef QT_SCRIPTTOOLS_LIB
+# include <QtScriptTools/QtScriptTools>
+#endif
class tst_HeadersClean: public QObject
{