summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@digia.com>2013-01-25 09:33:53 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-01-30 13:50:11 +0100
commitf241b08b6e2078e0ff25419f554ea03279a69021 (patch)
treefdaa40d1f99b83cac8ab891ff5d8b3a19b64c94a
parent6d613d589135d43e77d2987aef4f773e9f23dc07 (diff)
remove pointless conditionals
it's not entirely clear why anything inside the declarative module would have a conditional on the presence of the declarative module ... Change-Id: Ie6e22840b6d1d63da90c7d02aedb14fd870191af Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
-rw-r--r--tests/auto/declarative/examples/examples.pro3
-rw-r--r--tests/auto/declarative/moduleqt47/moduleqt47.pro3
-rw-r--r--tests/auto/declarative/parserstress/parserstress.pro3
-rw-r--r--tests/auto/declarative/qdeclarativeanchors/qdeclarativeanchors.pro3
-rw-r--r--tests/auto/declarative/qdeclarativeanimatedimage/qdeclarativeanimatedimage.pro3
-rw-r--r--tests/auto/declarative/qdeclarativeanimations/qdeclarativeanimations.pro3
-rw-r--r--tests/auto/declarative/qdeclarativeapplication/qdeclarativeapplication.pro3
-rw-r--r--tests/auto/declarative/qdeclarativebehaviors/qdeclarativebehaviors.pro3
-rw-r--r--tests/auto/declarative/qdeclarativebinding/qdeclarativebinding.pro3
-rw-r--r--tests/auto/declarative/qdeclarativeborderimage/qdeclarativeborderimage.pro3
-rw-r--r--tests/auto/declarative/qdeclarativecomponent/qdeclarativecomponent.pro3
-rw-r--r--tests/auto/declarative/qdeclarativeconnection/qdeclarativeconnection.pro3
-rw-r--r--tests/auto/declarative/qdeclarativecontext/qdeclarativecontext.pro3
-rw-r--r--tests/auto/declarative/qdeclarativedebug/qdeclarativedebug.pro3
-rw-r--r--tests/auto/declarative/qdeclarativedebugclient/qdeclarativedebugclient.pro3
-rw-r--r--tests/auto/declarative/qdeclarativedebughelper/qdeclarativedebughelper.pro3
-rw-r--r--tests/auto/declarative/qdeclarativedebugjs/tst_qdeclarativedebugjs.pro3
-rw-r--r--tests/auto/declarative/qdeclarativedebugobservermode/tst_qdeclarativedebugobservermode.pro3
-rw-r--r--tests/auto/declarative/qdeclarativedebugservice/qdeclarativedebugservice.pro3
-rw-r--r--tests/auto/declarative/qdeclarativedom/qdeclarativedom.pro3
-rw-r--r--tests/auto/declarative/qdeclarativeecmascript/qdeclarativeecmascript.pro3
-rw-r--r--tests/auto/declarative/qdeclarativeengine/qdeclarativeengine.pro3
-rw-r--r--tests/auto/declarative/qdeclarativeerror/qdeclarativeerror.pro3
-rw-r--r--tests/auto/declarative/qdeclarativeflickable/qdeclarativeflickable.pro3
-rw-r--r--tests/auto/declarative/qdeclarativeflipable/qdeclarativeflipable.pro3
-rw-r--r--tests/auto/declarative/qdeclarativefocusscope/qdeclarativefocusscope.pro3
-rw-r--r--tests/auto/declarative/qdeclarativefolderlistmodel/qdeclarativefolderlistmodel.pro3
-rw-r--r--tests/auto/declarative/qdeclarativefontloader/qdeclarativefontloader.pro3
-rw-r--r--tests/auto/declarative/qdeclarativegridview/qdeclarativegridview.pro3
-rw-r--r--tests/auto/declarative/qdeclarativeimage/qdeclarativeimage.pro3
-rw-r--r--tests/auto/declarative/qdeclarativeimageprovider/qdeclarativeimageprovider.pro3
-rw-r--r--tests/auto/declarative/qdeclarativeimportorder/qdeclarativeimportorder.pro3
-rw-r--r--tests/auto/declarative/qdeclarativeinfo/qdeclarativeinfo.pro3
-rw-r--r--tests/auto/declarative/qdeclarativeinstruction/qdeclarativeinstruction.pro3
-rw-r--r--tests/auto/declarative/qdeclarativeitem/qdeclarativeitem.pro3
-rw-r--r--tests/auto/declarative/qdeclarativelanguage/qdeclarativelanguage.pro3
-rw-r--r--tests/auto/declarative/qdeclarativelayoutitem/qdeclarativelayoutitem.pro3
-rw-r--r--tests/auto/declarative/qdeclarativelistmodel/qdeclarativelistmodel.pro3
-rw-r--r--tests/auto/declarative/qdeclarativelistreference/qdeclarativelistreference.pro3
-rw-r--r--tests/auto/declarative/qdeclarativelistview/qdeclarativelistview.pro3
-rw-r--r--tests/auto/declarative/qdeclarativeloader/qdeclarativeloader.pro3
-rw-r--r--tests/auto/declarative/qdeclarativemetatype/qdeclarativemetatype.pro3
-rw-r--r--tests/auto/declarative/qdeclarativemousearea/qdeclarativemousearea.pro3
-rw-r--r--tests/auto/declarative/qdeclarativeparticles/qdeclarativeparticles.pro3
-rw-r--r--tests/auto/declarative/qdeclarativepathview/qdeclarativepathview.pro3
-rw-r--r--tests/auto/declarative/qdeclarativepincharea/qdeclarativepincharea.pro3
-rw-r--r--tests/auto/declarative/qdeclarativepixmapcache/qdeclarativepixmapcache.pro3
-rw-r--r--tests/auto/declarative/qdeclarativepositioners/qdeclarativepositioners.pro3
-rw-r--r--tests/auto/declarative/qdeclarativeproperty/qdeclarativeproperty.pro3
-rw-r--r--tests/auto/declarative/qdeclarativepropertymap/qdeclarativepropertymap.pro3
-rw-r--r--tests/auto/declarative/qdeclarativeqt/qdeclarativeqt.pro3
-rw-r--r--tests/auto/declarative/qdeclarativerepeater/qdeclarativerepeater.pro3
-rw-r--r--tests/auto/declarative/qdeclarativesmoothedanimation/qdeclarativesmoothedanimation.pro3
-rw-r--r--tests/auto/declarative/qdeclarativespringanimation/qdeclarativespringanimation.pro3
-rw-r--r--tests/auto/declarative/qdeclarativestates/qdeclarativestates.pro3
-rw-r--r--tests/auto/declarative/qdeclarativestyledtext/qdeclarativestyledtext.pro3
-rw-r--r--tests/auto/declarative/qdeclarativesystempalette/qdeclarativesystempalette.pro3
-rw-r--r--tests/auto/declarative/qdeclarativetext/qdeclarativetext.pro3
-rw-r--r--tests/auto/declarative/qdeclarativetextedit/qdeclarativetextedit.pro3
-rw-r--r--tests/auto/declarative/qdeclarativetextinput/qdeclarativetextinput.pro3
-rw-r--r--tests/auto/declarative/qdeclarativetimer/qdeclarativetimer.pro3
-rw-r--r--tests/auto/declarative/qdeclarativevaluetypes/qdeclarativevaluetypes.pro3
-rw-r--r--tests/auto/declarative/qdeclarativeview/qdeclarativeview.pro3
-rw-r--r--tests/auto/declarative/qdeclarativeviewer/qdeclarativeviewer.pro3
-rw-r--r--tests/auto/declarative/qdeclarativevisualdatamodel/qdeclarativevisualdatamodel.pro3
-rw-r--r--tests/auto/declarative/qdeclarativeworkerscript/qdeclarativeworkerscript.pro3
-rw-r--r--tests/auto/declarative/qdeclarativexmlhttprequest/qdeclarativexmlhttprequest.pro3
-rw-r--r--tests/auto/declarative/qdeclarativexmllistmodel/qdeclarativexmllistmodel.pro3
-rw-r--r--tests/auto/declarative/qmlshadersplugin/qmlshadersplugin.pro3
-rw-r--r--tests/auto/declarative/qmlvisual/qmlvisual.pro3
-rw-r--r--tests/auto/declarative/qpacketprotocol/qpacketprotocol.pro3
71 files changed, 71 insertions, 142 deletions
diff --git a/tests/auto/declarative/examples/examples.pro b/tests/auto/declarative/examples/examples.pro
index f20c3415..043fa5d0 100644
--- a/tests/auto/declarative/examples/examples.pro
+++ b/tests/auto/declarative/examples/examples.pro
@@ -5,8 +5,7 @@ TARGET = tst_examples
!qtHaveModule(webkit): DEFINES += QT_NO_WEBKIT
!qtHaveModule(xmlpatterns): DEFINES += QT_NO_XMLPATTERNS
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative
+QT += testlib declarative
macx:CONFIG -= app_bundle
SOURCES += tst_examples.cpp
diff --git a/tests/auto/declarative/moduleqt47/moduleqt47.pro b/tests/auto/declarative/moduleqt47/moduleqt47.pro
index 93da5262..9cb96f01 100644
--- a/tests/auto/declarative/moduleqt47/moduleqt47.pro
+++ b/tests/auto/declarative/moduleqt47/moduleqt47.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_moduleqt47
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative gui widgets
+QT += testlib declarative gui widgets
macx:CONFIG -= app_bundle
SOURCES += tst_moduleqt47.cpp
diff --git a/tests/auto/declarative/parserstress/parserstress.pro b/tests/auto/declarative/parserstress/parserstress.pro
index e314f426..dde784e4 100644
--- a/tests/auto/declarative/parserstress/parserstress.pro
+++ b/tests/auto/declarative/parserstress/parserstress.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_parserstress
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative
+QT += testlib declarative
macx:CONFIG -= app_bundle
SOURCES += tst_parserstress.cpp
diff --git a/tests/auto/declarative/qdeclarativeanchors/qdeclarativeanchors.pro b/tests/auto/declarative/qdeclarativeanchors/qdeclarativeanchors.pro
index 912676d0..470d7da4 100644
--- a/tests/auto/declarative/qdeclarativeanchors/qdeclarativeanchors.pro
+++ b/tests/auto/declarative/qdeclarativeanchors/qdeclarativeanchors.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativeanchors
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private widgets widgets-private gui gui-private core-private
+QT += testlib declarative declarative-private widgets widgets-private gui gui-private core-private
SOURCES += tst_qdeclarativeanchors.cpp
macx:CONFIG -= app_bundle
diff --git a/tests/auto/declarative/qdeclarativeanimatedimage/qdeclarativeanimatedimage.pro b/tests/auto/declarative/qdeclarativeanimatedimage/qdeclarativeanimatedimage.pro
index c49b305b..9fb6ac1b 100644
--- a/tests/auto/declarative/qdeclarativeanimatedimage/qdeclarativeanimatedimage.pro
+++ b/tests/auto/declarative/qdeclarativeanimatedimage/qdeclarativeanimatedimage.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativeanimatedimage
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private network widgets
+QT += testlib declarative declarative-private network widgets
HEADERS += ../shared/testhttpserver.h
SOURCES += tst_qdeclarativeanimatedimage.cpp ../shared/testhttpserver.cpp
macx:CONFIG -= app_bundle
diff --git a/tests/auto/declarative/qdeclarativeanimations/qdeclarativeanimations.pro b/tests/auto/declarative/qdeclarativeanimations/qdeclarativeanimations.pro
index 77fc0707..d6ff8a20 100644
--- a/tests/auto/declarative/qdeclarativeanimations/qdeclarativeanimations.pro
+++ b/tests/auto/declarative/qdeclarativeanimations/qdeclarativeanimations.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativeanimations
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private core-private gui-private widgets-private
+QT += testlib declarative declarative-private core-private gui-private widgets-private
SOURCES += tst_qdeclarativeanimations.cpp
macx:CONFIG -= app_bundle
diff --git a/tests/auto/declarative/qdeclarativeapplication/qdeclarativeapplication.pro b/tests/auto/declarative/qdeclarativeapplication/qdeclarativeapplication.pro
index cd896bb1..09cdfea6 100644
--- a/tests/auto/declarative/qdeclarativeapplication/qdeclarativeapplication.pro
+++ b/tests/auto/declarative/qdeclarativeapplication/qdeclarativeapplication.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativeapplication
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative gui-private widgets
+QT += testlib declarative gui-private widgets
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativeapplication.cpp
diff --git a/tests/auto/declarative/qdeclarativebehaviors/qdeclarativebehaviors.pro b/tests/auto/declarative/qdeclarativebehaviors/qdeclarativebehaviors.pro
index 18b04f57..2bef1495 100644
--- a/tests/auto/declarative/qdeclarativebehaviors/qdeclarativebehaviors.pro
+++ b/tests/auto/declarative/qdeclarativebehaviors/qdeclarativebehaviors.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativebehaviors
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private core-private widgets-private gui-private
+QT += testlib declarative declarative-private core-private widgets-private gui-private
SOURCES += tst_qdeclarativebehaviors.cpp
macx:CONFIG -= app_bundle
diff --git a/tests/auto/declarative/qdeclarativebinding/qdeclarativebinding.pro b/tests/auto/declarative/qdeclarativebinding/qdeclarativebinding.pro
index 09446c74..eef87e3e 100644
--- a/tests/auto/declarative/qdeclarativebinding/qdeclarativebinding.pro
+++ b/tests/auto/declarative/qdeclarativebinding/qdeclarativebinding.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativebinding
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private widgets
+QT += testlib declarative declarative-private widgets
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativebinding.cpp
diff --git a/tests/auto/declarative/qdeclarativeborderimage/qdeclarativeborderimage.pro b/tests/auto/declarative/qdeclarativeborderimage/qdeclarativeborderimage.pro
index 0ed28acf..722a8bc1 100644
--- a/tests/auto/declarative/qdeclarativeborderimage/qdeclarativeborderimage.pro
+++ b/tests/auto/declarative/qdeclarativeborderimage/qdeclarativeborderimage.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativeborderimage
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private widgets network
+QT += testlib declarative declarative-private widgets network
macx:CONFIG -= app_bundle
HEADERS += ../shared/testhttpserver.h
diff --git a/tests/auto/declarative/qdeclarativecomponent/qdeclarativecomponent.pro b/tests/auto/declarative/qdeclarativecomponent/qdeclarativecomponent.pro
index 5bd9e282..953993ed 100644
--- a/tests/auto/declarative/qdeclarativecomponent/qdeclarativecomponent.pro
+++ b/tests/auto/declarative/qdeclarativecomponent/qdeclarativecomponent.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativecomponent
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative
+QT += testlib declarative
QT += script network widgets
macx:CONFIG -= app_bundle
diff --git a/tests/auto/declarative/qdeclarativeconnection/qdeclarativeconnection.pro b/tests/auto/declarative/qdeclarativeconnection/qdeclarativeconnection.pro
index e71c6327..e88d371b 100644
--- a/tests/auto/declarative/qdeclarativeconnection/qdeclarativeconnection.pro
+++ b/tests/auto/declarative/qdeclarativeconnection/qdeclarativeconnection.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativeconnection
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private gui core-private script-private gui-private widgets-private
+QT += testlib declarative declarative-private gui core-private script-private gui-private widgets-private
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativeconnection.cpp
diff --git a/tests/auto/declarative/qdeclarativecontext/qdeclarativecontext.pro b/tests/auto/declarative/qdeclarativecontext/qdeclarativecontext.pro
index ef0ff142..2fb1ece9 100644
--- a/tests/auto/declarative/qdeclarativecontext/qdeclarativecontext.pro
+++ b/tests/auto/declarative/qdeclarativecontext/qdeclarativecontext.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativecontext
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative
+QT += testlib declarative
SOURCES += tst_qdeclarativecontext.cpp
macx:CONFIG -= app_bundle
diff --git a/tests/auto/declarative/qdeclarativedebug/qdeclarativedebug.pro b/tests/auto/declarative/qdeclarativedebug/qdeclarativedebug.pro
index 70b12e8b..e3bd07e3 100644
--- a/tests/auto/declarative/qdeclarativedebug/qdeclarativedebug.pro
+++ b/tests/auto/declarative/qdeclarativedebug/qdeclarativedebug.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativedebug
-QT += testlib
-contains(QT_CONFIG,declarative): QT += network declarative declarative-private core-private script-private gui-private widgets-private
+QT += testlib network declarative declarative-private core-private script-private gui-private widgets-private
macx:CONFIG -= app_bundle
HEADERS += ../shared/debugutil_p.h
diff --git a/tests/auto/declarative/qdeclarativedebugclient/qdeclarativedebugclient.pro b/tests/auto/declarative/qdeclarativedebugclient/qdeclarativedebugclient.pro
index c99265b5..1e2ecc35 100644
--- a/tests/auto/declarative/qdeclarativedebugclient/qdeclarativedebugclient.pro
+++ b/tests/auto/declarative/qdeclarativedebugclient/qdeclarativedebugclient.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativedebugclient
-QT += testlib
-contains(QT_CONFIG,declarative): QT += network declarative declarative-private core-private gui-private widgets-private
+QT += testlib network declarative declarative-private core-private gui-private widgets-private
macx:CONFIG -= app_bundle
HEADERS += ../shared/debugutil_p.h
diff --git a/tests/auto/declarative/qdeclarativedebughelper/qdeclarativedebughelper.pro b/tests/auto/declarative/qdeclarativedebughelper/qdeclarativedebughelper.pro
index 1cde1be0..f6ee976b 100644
--- a/tests/auto/declarative/qdeclarativedebughelper/qdeclarativedebughelper.pro
+++ b/tests/auto/declarative/qdeclarativedebughelper/qdeclarativedebughelper.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativedebughelper
-QT += testlib
-contains(QT_CONFIG,declarative): QT += network declarative declarative-private script script-private core-private
+QT += testlib network declarative declarative-private script script-private core-private
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativedebughelper.cpp
diff --git a/tests/auto/declarative/qdeclarativedebugjs/tst_qdeclarativedebugjs.pro b/tests/auto/declarative/qdeclarativedebugjs/tst_qdeclarativedebugjs.pro
index 4f972747..1257d2c6 100644
--- a/tests/auto/declarative/qdeclarativedebugjs/tst_qdeclarativedebugjs.pro
+++ b/tests/auto/declarative/qdeclarativedebugjs/tst_qdeclarativedebugjs.pro
@@ -2,8 +2,7 @@ CONFIG += testcase
testcase.timeout = 600 # this test is slow
TARGET = tst_qdeclarativedebugjs
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private network script core-private gui-private widgets-private
+QT += testlib declarative declarative-private network script core-private gui-private widgets-private
macx:CONFIG -= app_bundle
HEADERS += ../shared/debugutil_p.h
diff --git a/tests/auto/declarative/qdeclarativedebugobservermode/tst_qdeclarativedebugobservermode.pro b/tests/auto/declarative/qdeclarativedebugobservermode/tst_qdeclarativedebugobservermode.pro
index 008708be..a28aefdb 100644
--- a/tests/auto/declarative/qdeclarativedebugobservermode/tst_qdeclarativedebugobservermode.pro
+++ b/tests/auto/declarative/qdeclarativedebugobservermode/tst_qdeclarativedebugobservermode.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativedebugobservermode
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private network script core-private gui-private widgets-private
+QT += testlib declarative declarative-private network script core-private gui-private widgets-private
macx:CONFIG -= app_bundle
HEADERS += ../shared/debugutil_p.h
diff --git a/tests/auto/declarative/qdeclarativedebugservice/qdeclarativedebugservice.pro b/tests/auto/declarative/qdeclarativedebugservice/qdeclarativedebugservice.pro
index e27b324e..79b24a3b 100644
--- a/tests/auto/declarative/qdeclarativedebugservice/qdeclarativedebugservice.pro
+++ b/tests/auto/declarative/qdeclarativedebugservice/qdeclarativedebugservice.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativedebugservice
-QT += testlib
-contains(QT_CONFIG,declarative): QT += network declarative declarative-private core-private gui-private widgets-private
+QT += testlib network declarative declarative-private core-private gui-private widgets-private
macx:CONFIG -= app_bundle
HEADERS += ../shared/debugutil_p.h
diff --git a/tests/auto/declarative/qdeclarativedom/qdeclarativedom.pro b/tests/auto/declarative/qdeclarativedom/qdeclarativedom.pro
index 480ac463..db3abe1f 100644
--- a/tests/auto/declarative/qdeclarativedom/qdeclarativedom.pro
+++ b/tests/auto/declarative/qdeclarativedom/qdeclarativedom.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativedom
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private
+QT += testlib declarative declarative-private
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativedom.cpp
diff --git a/tests/auto/declarative/qdeclarativeecmascript/qdeclarativeecmascript.pro b/tests/auto/declarative/qdeclarativeecmascript/qdeclarativeecmascript.pro
index 92f8d09f..0da15bf7 100644
--- a/tests/auto/declarative/qdeclarativeecmascript/qdeclarativeecmascript.pro
+++ b/tests/auto/declarative/qdeclarativeecmascript/qdeclarativeecmascript.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativeecmascript
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private script script-private network widgets core-private
+QT += testlib declarative declarative-private script script-private network widgets core-private
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativeecmascript.cpp \
diff --git a/tests/auto/declarative/qdeclarativeengine/qdeclarativeengine.pro b/tests/auto/declarative/qdeclarativeengine/qdeclarativeengine.pro
index 8004009f..0b997356 100644
--- a/tests/auto/declarative/qdeclarativeengine/qdeclarativeengine.pro
+++ b/tests/auto/declarative/qdeclarativeengine/qdeclarativeengine.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativeengine
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative network
+QT += testlib declarative network
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativeengine.cpp
diff --git a/tests/auto/declarative/qdeclarativeerror/qdeclarativeerror.pro b/tests/auto/declarative/qdeclarativeerror/qdeclarativeerror.pro
index df5efe09..6d6e866e 100644
--- a/tests/auto/declarative/qdeclarativeerror/qdeclarativeerror.pro
+++ b/tests/auto/declarative/qdeclarativeerror/qdeclarativeerror.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativeerror
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative
+QT += testlib declarative
SOURCES += tst_qdeclarativeerror.cpp
macx:CONFIG -= app_bundle
diff --git a/tests/auto/declarative/qdeclarativeflickable/qdeclarativeflickable.pro b/tests/auto/declarative/qdeclarativeflickable/qdeclarativeflickable.pro
index bc613081..03489621 100644
--- a/tests/auto/declarative/qdeclarativeflickable/qdeclarativeflickable.pro
+++ b/tests/auto/declarative/qdeclarativeflickable/qdeclarativeflickable.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativeflickable
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private gui widgets script-private core-private
+QT += testlib declarative declarative-private gui widgets script-private core-private
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativeflickable.cpp
diff --git a/tests/auto/declarative/qdeclarativeflipable/qdeclarativeflipable.pro b/tests/auto/declarative/qdeclarativeflipable/qdeclarativeflipable.pro
index c9770933..50dfc2d0 100644
--- a/tests/auto/declarative/qdeclarativeflipable/qdeclarativeflipable.pro
+++ b/tests/auto/declarative/qdeclarativeflipable/qdeclarativeflipable.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativeflipable
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private gui widgets core-private script-private
+QT += testlib declarative declarative-private gui widgets core-private script-private
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativeflipable.cpp
diff --git a/tests/auto/declarative/qdeclarativefocusscope/qdeclarativefocusscope.pro b/tests/auto/declarative/qdeclarativefocusscope/qdeclarativefocusscope.pro
index 42ea0b8a..9a56e146 100644
--- a/tests/auto/declarative/qdeclarativefocusscope/qdeclarativefocusscope.pro
+++ b/tests/auto/declarative/qdeclarativefocusscope/qdeclarativefocusscope.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativefocusscope
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private widgets
+QT += testlib declarative declarative-private widgets
SOURCES += tst_qdeclarativefocusscope.cpp
macx:CONFIG -= app_bundle
diff --git a/tests/auto/declarative/qdeclarativefolderlistmodel/qdeclarativefolderlistmodel.pro b/tests/auto/declarative/qdeclarativefolderlistmodel/qdeclarativefolderlistmodel.pro
index fc876d13..d2a5f207 100644
--- a/tests/auto/declarative/qdeclarativefolderlistmodel/qdeclarativefolderlistmodel.pro
+++ b/tests/auto/declarative/qdeclarativefolderlistmodel/qdeclarativefolderlistmodel.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativefolderlistmodel
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative
+QT += testlib declarative
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativefolderlistmodel.cpp
diff --git a/tests/auto/declarative/qdeclarativefontloader/qdeclarativefontloader.pro b/tests/auto/declarative/qdeclarativefontloader/qdeclarativefontloader.pro
index 510cac65..4076d3ec 100644
--- a/tests/auto/declarative/qdeclarativefontloader/qdeclarativefontloader.pro
+++ b/tests/auto/declarative/qdeclarativefontloader/qdeclarativefontloader.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativefontloader
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private gui network
+QT += testlib declarative declarative-private gui network
macx:CONFIG -= app_bundle
HEADERS += ../shared/testhttpserver.h
diff --git a/tests/auto/declarative/qdeclarativegridview/qdeclarativegridview.pro b/tests/auto/declarative/qdeclarativegridview/qdeclarativegridview.pro
index 63979826..e410e2f2 100644
--- a/tests/auto/declarative/qdeclarativegridview/qdeclarativegridview.pro
+++ b/tests/auto/declarative/qdeclarativegridview/qdeclarativegridview.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativegridview
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private widgets widgets-private gui gui-private core-private script-private
+QT += testlib declarative declarative-private widgets widgets-private gui gui-private core-private script-private
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativegridview.cpp
diff --git a/tests/auto/declarative/qdeclarativeimage/qdeclarativeimage.pro b/tests/auto/declarative/qdeclarativeimage/qdeclarativeimage.pro
index 2db10a00..d499edb1 100644
--- a/tests/auto/declarative/qdeclarativeimage/qdeclarativeimage.pro
+++ b/tests/auto/declarative/qdeclarativeimage/qdeclarativeimage.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativeimage
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private gui widgets network
+QT += testlib declarative declarative-private gui widgets network
macx:CONFIG -= app_bundle
HEADERS += ../shared/testhttpserver.h
diff --git a/tests/auto/declarative/qdeclarativeimageprovider/qdeclarativeimageprovider.pro b/tests/auto/declarative/qdeclarativeimageprovider/qdeclarativeimageprovider.pro
index f57f9603..c6a48184 100644
--- a/tests/auto/declarative/qdeclarativeimageprovider/qdeclarativeimageprovider.pro
+++ b/tests/auto/declarative/qdeclarativeimageprovider/qdeclarativeimageprovider.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativeimageprovider
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private
+QT += testlib declarative declarative-private
QT += network
macx:CONFIG -= app_bundle
diff --git a/tests/auto/declarative/qdeclarativeimportorder/qdeclarativeimportorder.pro b/tests/auto/declarative/qdeclarativeimportorder/qdeclarativeimportorder.pro
index 725b6d6a..9c4b1413 100644
--- a/tests/auto/declarative/qdeclarativeimportorder/qdeclarativeimportorder.pro
+++ b/tests/auto/declarative/qdeclarativeimportorder/qdeclarativeimportorder.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativeimportorder
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative widgets
+QT += testlib declarative widgets
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativeimportorder.cpp
diff --git a/tests/auto/declarative/qdeclarativeinfo/qdeclarativeinfo.pro b/tests/auto/declarative/qdeclarativeinfo/qdeclarativeinfo.pro
index b71a6591..cd124854 100644
--- a/tests/auto/declarative/qdeclarativeinfo/qdeclarativeinfo.pro
+++ b/tests/auto/declarative/qdeclarativeinfo/qdeclarativeinfo.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativeinfo
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative widgets
+QT += testlib declarative widgets
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativeinfo.cpp
diff --git a/tests/auto/declarative/qdeclarativeinstruction/qdeclarativeinstruction.pro b/tests/auto/declarative/qdeclarativeinstruction/qdeclarativeinstruction.pro
index ae354f0e..12ad5bf8 100644
--- a/tests/auto/declarative/qdeclarativeinstruction/qdeclarativeinstruction.pro
+++ b/tests/auto/declarative/qdeclarativeinstruction/qdeclarativeinstruction.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativeinstruction
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private script script-private core-private
+QT += testlib declarative declarative-private script script-private core-private
SOURCES += tst_qdeclarativeinstruction.cpp
macx:CONFIG -= app_bundle
diff --git a/tests/auto/declarative/qdeclarativeitem/qdeclarativeitem.pro b/tests/auto/declarative/qdeclarativeitem/qdeclarativeitem.pro
index d25b77a4..9bf57ae3 100644
--- a/tests/auto/declarative/qdeclarativeitem/qdeclarativeitem.pro
+++ b/tests/auto/declarative/qdeclarativeitem/qdeclarativeitem.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativeitem
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private gui gui-private widgets-private core-private
+QT += testlib declarative declarative-private gui gui-private widgets-private core-private
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativeitem.cpp
diff --git a/tests/auto/declarative/qdeclarativelanguage/qdeclarativelanguage.pro b/tests/auto/declarative/qdeclarativelanguage/qdeclarativelanguage.pro
index 11a31e9f..d7c87e6b 100644
--- a/tests/auto/declarative/qdeclarativelanguage/qdeclarativelanguage.pro
+++ b/tests/auto/declarative/qdeclarativelanguage/qdeclarativelanguage.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativelanguage
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private script-private core-private
+QT += testlib declarative declarative-private script-private core-private
QT += script network
macx:CONFIG -= app_bundle
diff --git a/tests/auto/declarative/qdeclarativelayoutitem/qdeclarativelayoutitem.pro b/tests/auto/declarative/qdeclarativelayoutitem/qdeclarativelayoutitem.pro
index 87416bc6..7b576d2b 100644
--- a/tests/auto/declarative/qdeclarativelayoutitem/qdeclarativelayoutitem.pro
+++ b/tests/auto/declarative/qdeclarativelayoutitem/qdeclarativelayoutitem.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativelayoutitem
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private widgets
+QT += testlib declarative declarative-private widgets
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativelayoutitem.cpp
diff --git a/tests/auto/declarative/qdeclarativelistmodel/qdeclarativelistmodel.pro b/tests/auto/declarative/qdeclarativelistmodel/qdeclarativelistmodel.pro
index c9711b6c..25e17281 100644
--- a/tests/auto/declarative/qdeclarativelistmodel/qdeclarativelistmodel.pro
+++ b/tests/auto/declarative/qdeclarativelistmodel/qdeclarativelistmodel.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativelistmodel
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private script-private core-private gui-private widgets-private
+QT += testlib declarative declarative-private script-private core-private gui-private widgets-private
QT += script
macx:CONFIG -= app_bundle
diff --git a/tests/auto/declarative/qdeclarativelistreference/qdeclarativelistreference.pro b/tests/auto/declarative/qdeclarativelistreference/qdeclarativelistreference.pro
index 4c5dfeeb..df00a940 100644
--- a/tests/auto/declarative/qdeclarativelistreference/qdeclarativelistreference.pro
+++ b/tests/auto/declarative/qdeclarativelistreference/qdeclarativelistreference.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativelistreference
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative
+QT += testlib declarative
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativelistreference.cpp
diff --git a/tests/auto/declarative/qdeclarativelistview/qdeclarativelistview.pro b/tests/auto/declarative/qdeclarativelistview/qdeclarativelistview.pro
index b5911ac8..63cb92c1 100644
--- a/tests/auto/declarative/qdeclarativelistview/qdeclarativelistview.pro
+++ b/tests/auto/declarative/qdeclarativelistview/qdeclarativelistview.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativelistview
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private widgets widgets-private gui-private core-private script-private
+QT += testlib declarative declarative-private widgets widgets-private gui-private core-private script-private
macx:CONFIG -= app_bundle
HEADERS += incrementalmodel.h
diff --git a/tests/auto/declarative/qdeclarativeloader/qdeclarativeloader.pro b/tests/auto/declarative/qdeclarativeloader/qdeclarativeloader.pro
index 81b993c1..bbac0896 100644
--- a/tests/auto/declarative/qdeclarativeloader/qdeclarativeloader.pro
+++ b/tests/auto/declarative/qdeclarativeloader/qdeclarativeloader.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativeloader
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private gui network widgets
+QT += testlib declarative declarative-private gui network widgets
macx:CONFIG -= app_bundle
HEADERS += ../shared/testhttpserver.h
diff --git a/tests/auto/declarative/qdeclarativemetatype/qdeclarativemetatype.pro b/tests/auto/declarative/qdeclarativemetatype/qdeclarativemetatype.pro
index 256f3ebd..136de5d9 100644
--- a/tests/auto/declarative/qdeclarativemetatype/qdeclarativemetatype.pro
+++ b/tests/auto/declarative/qdeclarativemetatype/qdeclarativemetatype.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativemetatype
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private widgets
+QT += testlib declarative declarative-private widgets
SOURCES += tst_qdeclarativemetatype.cpp
macx:CONFIG -= app_bundle
diff --git a/tests/auto/declarative/qdeclarativemousearea/qdeclarativemousearea.pro b/tests/auto/declarative/qdeclarativemousearea/qdeclarativemousearea.pro
index 660c90bb..10d3eaf9 100644
--- a/tests/auto/declarative/qdeclarativemousearea/qdeclarativemousearea.pro
+++ b/tests/auto/declarative/qdeclarativemousearea/qdeclarativemousearea.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativemousearea
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private widgets gui network
+QT += testlib declarative declarative-private widgets gui network
macx:CONFIG -= app_bundle
HEADERS += ../shared/testhttpserver.h
diff --git a/tests/auto/declarative/qdeclarativeparticles/qdeclarativeparticles.pro b/tests/auto/declarative/qdeclarativeparticles/qdeclarativeparticles.pro
index 014cd170..29895c27 100644
--- a/tests/auto/declarative/qdeclarativeparticles/qdeclarativeparticles.pro
+++ b/tests/auto/declarative/qdeclarativeparticles/qdeclarativeparticles.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativeparticles
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative widgets
+QT += testlib declarative widgets
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativeparticles.cpp
diff --git a/tests/auto/declarative/qdeclarativepathview/qdeclarativepathview.pro b/tests/auto/declarative/qdeclarativepathview/qdeclarativepathview.pro
index 67fc41fb..bfb8e0bc 100644
--- a/tests/auto/declarative/qdeclarativepathview/qdeclarativepathview.pro
+++ b/tests/auto/declarative/qdeclarativepathview/qdeclarativepathview.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativepathview
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private gui widgets core-private script-private
+QT += testlib declarative declarative-private gui widgets core-private script-private
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativepathview.cpp
diff --git a/tests/auto/declarative/qdeclarativepincharea/qdeclarativepincharea.pro b/tests/auto/declarative/qdeclarativepincharea/qdeclarativepincharea.pro
index 19e9272c..dbef493d 100644
--- a/tests/auto/declarative/qdeclarativepincharea/qdeclarativepincharea.pro
+++ b/tests/auto/declarative/qdeclarativepincharea/qdeclarativepincharea.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativepincharea
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private gui-private widgets
+QT += testlib declarative declarative-private gui-private widgets
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativepincharea.cpp
diff --git a/tests/auto/declarative/qdeclarativepixmapcache/qdeclarativepixmapcache.pro b/tests/auto/declarative/qdeclarativepixmapcache/qdeclarativepixmapcache.pro
index 1cc45276..8094d9a6 100644
--- a/tests/auto/declarative/qdeclarativepixmapcache/qdeclarativepixmapcache.pro
+++ b/tests/auto/declarative/qdeclarativepixmapcache/qdeclarativepixmapcache.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativepixmapcache
-QT += testlib
-contains(QT_CONFIG,declarative): QT += concurrent declarative declarative-private network
+QT += testlib concurrent declarative declarative-private network
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativepixmapcache.cpp
diff --git a/tests/auto/declarative/qdeclarativepositioners/qdeclarativepositioners.pro b/tests/auto/declarative/qdeclarativepositioners/qdeclarativepositioners.pro
index a6aecebf..b7c5983d 100644
--- a/tests/auto/declarative/qdeclarativepositioners/qdeclarativepositioners.pro
+++ b/tests/auto/declarative/qdeclarativepositioners/qdeclarativepositioners.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativepositioners
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private core-private gui-private widgets-private
+QT += testlib declarative declarative-private core-private gui-private widgets-private
SOURCES += tst_qdeclarativepositioners.cpp
macx:CONFIG -= app_bundle
diff --git a/tests/auto/declarative/qdeclarativeproperty/qdeclarativeproperty.pro b/tests/auto/declarative/qdeclarativeproperty/qdeclarativeproperty.pro
index 732774b8..47d35ee9 100644
--- a/tests/auto/declarative/qdeclarativeproperty/qdeclarativeproperty.pro
+++ b/tests/auto/declarative/qdeclarativeproperty/qdeclarativeproperty.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativeproperty
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private script-private core-private
+QT += testlib declarative declarative-private script-private core-private
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativeproperty.cpp
diff --git a/tests/auto/declarative/qdeclarativepropertymap/qdeclarativepropertymap.pro b/tests/auto/declarative/qdeclarativepropertymap/qdeclarativepropertymap.pro
index d9706deb..c8d9316c 100644
--- a/tests/auto/declarative/qdeclarativepropertymap/qdeclarativepropertymap.pro
+++ b/tests/auto/declarative/qdeclarativepropertymap/qdeclarativepropertymap.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativepropertymap
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private
+QT += testlib declarative declarative-private
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativepropertymap.cpp
diff --git a/tests/auto/declarative/qdeclarativeqt/qdeclarativeqt.pro b/tests/auto/declarative/qdeclarativeqt/qdeclarativeqt.pro
index fa372083..cbe1f2bc 100644
--- a/tests/auto/declarative/qdeclarativeqt/qdeclarativeqt.pro
+++ b/tests/auto/declarative/qdeclarativeqt/qdeclarativeqt.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativeqt
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private script script-private core-private widgets
+QT += testlib declarative declarative-private script script-private core-private widgets
SOURCES += tst_qdeclarativeqt.cpp
macx:CONFIG -= app_bundle
diff --git a/tests/auto/declarative/qdeclarativerepeater/qdeclarativerepeater.pro b/tests/auto/declarative/qdeclarativerepeater/qdeclarativerepeater.pro
index 9cb17a57..7e233023 100644
--- a/tests/auto/declarative/qdeclarativerepeater/qdeclarativerepeater.pro
+++ b/tests/auto/declarative/qdeclarativerepeater/qdeclarativerepeater.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativerepeater
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private gui widgets
+QT += testlib declarative declarative-private gui widgets
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativerepeater.cpp
diff --git a/tests/auto/declarative/qdeclarativesmoothedanimation/qdeclarativesmoothedanimation.pro b/tests/auto/declarative/qdeclarativesmoothedanimation/qdeclarativesmoothedanimation.pro
index 556675ee..e52edc3f 100644
--- a/tests/auto/declarative/qdeclarativesmoothedanimation/qdeclarativesmoothedanimation.pro
+++ b/tests/auto/declarative/qdeclarativesmoothedanimation/qdeclarativesmoothedanimation.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativesmoothedanimation
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private gui core-private script-private widgets
+QT += testlib declarative declarative-private gui core-private script-private widgets
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativesmoothedanimation.cpp
diff --git a/tests/auto/declarative/qdeclarativespringanimation/qdeclarativespringanimation.pro b/tests/auto/declarative/qdeclarativespringanimation/qdeclarativespringanimation.pro
index da587545..c0b204a3 100644
--- a/tests/auto/declarative/qdeclarativespringanimation/qdeclarativespringanimation.pro
+++ b/tests/auto/declarative/qdeclarativespringanimation/qdeclarativespringanimation.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativespringanimation
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private gui core-private script-private
+QT += testlib declarative declarative-private gui core-private script-private
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativespringanimation.cpp
diff --git a/tests/auto/declarative/qdeclarativestates/qdeclarativestates.pro b/tests/auto/declarative/qdeclarativestates/qdeclarativestates.pro
index 76730f32..f701c059 100644
--- a/tests/auto/declarative/qdeclarativestates/qdeclarativestates.pro
+++ b/tests/auto/declarative/qdeclarativestates/qdeclarativestates.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativestates
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private core-private script-private widgets-private gui-private
+QT += testlib declarative declarative-private core-private script-private widgets-private gui-private
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativestates.cpp
diff --git a/tests/auto/declarative/qdeclarativestyledtext/qdeclarativestyledtext.pro b/tests/auto/declarative/qdeclarativestyledtext/qdeclarativestyledtext.pro
index edf81986..7b64cc1b 100644
--- a/tests/auto/declarative/qdeclarativestyledtext/qdeclarativestyledtext.pro
+++ b/tests/auto/declarative/qdeclarativestyledtext/qdeclarativestyledtext.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativestyledtext
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private
+QT += testlib declarative declarative-private
QT += network
macx:CONFIG -= app_bundle
diff --git a/tests/auto/declarative/qdeclarativesystempalette/qdeclarativesystempalette.pro b/tests/auto/declarative/qdeclarativesystempalette/qdeclarativesystempalette.pro
index 3a08b5e0..aadd1bfe 100644
--- a/tests/auto/declarative/qdeclarativesystempalette/qdeclarativesystempalette.pro
+++ b/tests/auto/declarative/qdeclarativesystempalette/qdeclarativesystempalette.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativesystempalette
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private gui widgets
+QT += testlib declarative declarative-private gui widgets
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativesystempalette.cpp
diff --git a/tests/auto/declarative/qdeclarativetext/qdeclarativetext.pro b/tests/auto/declarative/qdeclarativetext/qdeclarativetext.pro
index 64481a08..5dd3f83e 100644
--- a/tests/auto/declarative/qdeclarativetext/qdeclarativetext.pro
+++ b/tests/auto/declarative/qdeclarativetext/qdeclarativetext.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativetext
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private gui gui-private widgets widgets-private core-private script-private
+QT += testlib declarative declarative-private gui gui-private widgets widgets-private core-private script-private
QT += network
macx:CONFIG -= app_bundle
diff --git a/tests/auto/declarative/qdeclarativetextedit/qdeclarativetextedit.pro b/tests/auto/declarative/qdeclarativetextedit/qdeclarativetextedit.pro
index d4a5e771..0b213d70 100644
--- a/tests/auto/declarative/qdeclarativetextedit/qdeclarativetextedit.pro
+++ b/tests/auto/declarative/qdeclarativetextedit/qdeclarativetextedit.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativetextedit
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private gui gui-private widgets widgets-private network core-private
+QT += testlib declarative declarative-private gui gui-private widgets widgets-private network core-private
macx:CONFIG -= app_bundle
include(../shared/qdeclarativedatatest.pri)
diff --git a/tests/auto/declarative/qdeclarativetextinput/qdeclarativetextinput.pro b/tests/auto/declarative/qdeclarativetextinput/qdeclarativetextinput.pro
index ab012ffb..0a2a5aef 100644
--- a/tests/auto/declarative/qdeclarativetextinput/qdeclarativetextinput.pro
+++ b/tests/auto/declarative/qdeclarativetextinput/qdeclarativetextinput.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativetextinput
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private gui gui-private widgets widgets-private core-private
+QT += testlib declarative declarative-private gui gui-private widgets widgets-private core-private
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativetextinput.cpp
diff --git a/tests/auto/declarative/qdeclarativetimer/qdeclarativetimer.pro b/tests/auto/declarative/qdeclarativetimer/qdeclarativetimer.pro
index 35260dca..137fa121 100644
--- a/tests/auto/declarative/qdeclarativetimer/qdeclarativetimer.pro
+++ b/tests/auto/declarative/qdeclarativetimer/qdeclarativetimer.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativetimer
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private gui core-private
+QT += testlib declarative declarative-private gui core-private
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativetimer.cpp
diff --git a/tests/auto/declarative/qdeclarativevaluetypes/qdeclarativevaluetypes.pro b/tests/auto/declarative/qdeclarativevaluetypes/qdeclarativevaluetypes.pro
index 11611bea..6a3825d5 100644
--- a/tests/auto/declarative/qdeclarativevaluetypes/qdeclarativevaluetypes.pro
+++ b/tests/auto/declarative/qdeclarativevaluetypes/qdeclarativevaluetypes.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativevaluetypes
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private core-private script-private
+QT += testlib declarative declarative-private core-private script-private
macx:CONFIG -= app_bundle
HEADERS += testtypes.h
diff --git a/tests/auto/declarative/qdeclarativeview/qdeclarativeview.pro b/tests/auto/declarative/qdeclarativeview/qdeclarativeview.pro
index 98824f4d..f8bbd9f9 100644
--- a/tests/auto/declarative/qdeclarativeview/qdeclarativeview.pro
+++ b/tests/auto/declarative/qdeclarativeview/qdeclarativeview.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativeview
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative gui widgets
+QT += testlib declarative gui widgets
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativeview.cpp
diff --git a/tests/auto/declarative/qdeclarativeviewer/qdeclarativeviewer.pro b/tests/auto/declarative/qdeclarativeviewer/qdeclarativeviewer.pro
index 76dc50d8..9a1c3602 100644
--- a/tests/auto/declarative/qdeclarativeviewer/qdeclarativeviewer.pro
+++ b/tests/auto/declarative/qdeclarativeviewer/qdeclarativeviewer.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativeviewer
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative gui
+QT += testlib declarative gui
macx:CONFIG -= app_bundle
include(../../../../tools/qml/qml.pri)
diff --git a/tests/auto/declarative/qdeclarativevisualdatamodel/qdeclarativevisualdatamodel.pro b/tests/auto/declarative/qdeclarativevisualdatamodel/qdeclarativevisualdatamodel.pro
index 25615747..57c4adc7 100644
--- a/tests/auto/declarative/qdeclarativevisualdatamodel/qdeclarativevisualdatamodel.pro
+++ b/tests/auto/declarative/qdeclarativevisualdatamodel/qdeclarativevisualdatamodel.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativevisualdatamodel
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private gui widgets core-private script-private
+QT += testlib declarative declarative-private gui widgets core-private script-private
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativevisualdatamodel.cpp
diff --git a/tests/auto/declarative/qdeclarativeworkerscript/qdeclarativeworkerscript.pro b/tests/auto/declarative/qdeclarativeworkerscript/qdeclarativeworkerscript.pro
index 8301f7dc..1abc2433 100644
--- a/tests/auto/declarative/qdeclarativeworkerscript/qdeclarativeworkerscript.pro
+++ b/tests/auto/declarative/qdeclarativeworkerscript/qdeclarativeworkerscript.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativeworkerscript
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private script core-private script-private
+QT += testlib declarative declarative-private script core-private script-private
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativeworkerscript.cpp
diff --git a/tests/auto/declarative/qdeclarativexmlhttprequest/qdeclarativexmlhttprequest.pro b/tests/auto/declarative/qdeclarativexmlhttprequest/qdeclarativexmlhttprequest.pro
index 85679451..df8d2995 100644
--- a/tests/auto/declarative/qdeclarativexmlhttprequest/qdeclarativexmlhttprequest.pro
+++ b/tests/auto/declarative/qdeclarativexmlhttprequest/qdeclarativexmlhttprequest.pro
@@ -2,8 +2,7 @@ CONFIG += testcase
testcase.timeout = 1200 # this is a slow test
TARGET = tst_qdeclarativexmlhttprequest
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative network
+QT += testlib declarative network
macx:CONFIG -= app_bundle
HEADERS += ../shared/testhttpserver.h
diff --git a/tests/auto/declarative/qdeclarativexmllistmodel/qdeclarativexmllistmodel.pro b/tests/auto/declarative/qdeclarativexmllistmodel/qdeclarativexmllistmodel.pro
index 0776efca..1e72011f 100644
--- a/tests/auto/declarative/qdeclarativexmllistmodel/qdeclarativexmllistmodel.pro
+++ b/tests/auto/declarative/qdeclarativexmllistmodel/qdeclarativexmllistmodel.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativexmllistmodel
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private script gui network core-private script-private xmlpatterns
+QT += testlib declarative declarative-private script gui network core-private script-private xmlpatterns
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativexmllistmodel.cpp
diff --git a/tests/auto/declarative/qmlshadersplugin/qmlshadersplugin.pro b/tests/auto/declarative/qmlshadersplugin/qmlshadersplugin.pro
index 7053b003..b01caedc 100644
--- a/tests/auto/declarative/qmlshadersplugin/qmlshadersplugin.pro
+++ b/tests/auto/declarative/qmlshadersplugin/qmlshadersplugin.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qmlshadersplugin
-QT += testlib
-QT += opengl declarative gui widgets
+QT += testlib opengl declarative gui widgets
SOURCES += tst_qmlshadersplugin.cpp
SOURCES += \
diff --git a/tests/auto/declarative/qmlvisual/qmlvisual.pro b/tests/auto/declarative/qmlvisual/qmlvisual.pro
index bf991199..0cefe427 100644
--- a/tests/auto/declarative/qmlvisual/qmlvisual.pro
+++ b/tests/auto/declarative/qmlvisual/qmlvisual.pro
@@ -2,8 +2,7 @@ CONFIG += testcase
testcase.timeout = 600 # this test is slow
TARGET = tst_qmlvisual
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative gui widgets
+QT += testlib declarative gui widgets
macx:CONFIG -= app_bundle
SOURCES += tst_qmlvisual.cpp
diff --git a/tests/auto/declarative/qpacketprotocol/qpacketprotocol.pro b/tests/auto/declarative/qpacketprotocol/qpacketprotocol.pro
index 131c53da..f72d8731 100644
--- a/tests/auto/declarative/qpacketprotocol/qpacketprotocol.pro
+++ b/tests/auto/declarative/qpacketprotocol/qpacketprotocol.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qpacketprotocol
-QT += testlib
-contains(QT_CONFIG,declarative): QT += network declarative declarative-private core-private gui-private widgets-private
+QT += testlib network declarative declarative-private core-private gui-private widgets-private
macx:CONFIG -= app_bundle
HEADERS += ../shared/debugutil_p.h