Use dependencies instead of CONFIG+=ordered

Also drops a few instances where the dependency was purely runtime,
especially for examples.

Change-Id: I2a0476f79928143596bdb3b8f01193af90574ae8
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
This commit is contained in:
Allan Sandfeld Jensen 2017-11-20 12:29:03 +01:00
parent beb9ca92df
commit 2c25a431d0
17 changed files with 39 additions and 29 deletions

View File

@ -1,7 +1,6 @@
requires(qtHaveModule(widgets)) requires(qtHaveModule(widgets))
TEMPLATE = subdirs TEMPLATE = subdirs
CONFIG += ordered
SUBDIRS = contiguouscache \ SUBDIRS = contiguouscache \
customtype \ customtype \
customtypesending customtypesending

View File

@ -1,4 +1,3 @@
TEMPLATE = subdirs TEMPLATE = subdirs
CONFIG += ordered
win32:CONFIG += console win32:CONFIG += console
SUBDIRS = complexping.pro complexpong.pro SUBDIRS = complexping.pro complexpong.pro

View File

@ -1,4 +1,3 @@
TEMPLATE = subdirs TEMPLATE = subdirs
CONFIG += ordered
win32:CONFIG += console win32:CONFIG += console
SUBDIRS = ping.pro pong.pro SUBDIRS = ping.pro pong.pro

View File

@ -1,3 +1,2 @@
TEMPLATE = subdirs TEMPLATE = subdirs
CONFIG += ordered
SUBDIRS = screenshot systray SUBDIRS = screenshot systray

View File

@ -1,6 +1,8 @@
TEMPLATE = subdirs TEMPLATE = subdirs
CONFIG += ordered
!winrt: SUBDIRS += app !winrt {
test.depends = app
SUBDIRS += app
}
SUBDIRS += test SUBDIRS += test

View File

@ -1,6 +1,8 @@
TEMPLATE = subdirs TEMPLATE = subdirs
CONFIG += ordered
!winrt: SUBDIRS+= signalbug !winrt {
test.depends = signalbug
SUBDIRS += signalbug
}
SUBDIRS += test SUBDIRS += test

View File

@ -1,6 +1,7 @@
QT = core-private QT = core-private
TEMPLATE = subdirs TEMPLATE = subdirs
CONFIG += ordered
test.depends = plugin1 plugin2
SUBDIRS = \ SUBDIRS = \
plugin1 \ plugin1 \
plugin2 \ plugin2 \

View File

@ -1,6 +1,7 @@
QT = core QT = core
TEMPLATE = subdirs TEMPLATE = subdirs
CONFIG += ordered
tst.depends = lib lib2
SUBDIRS = lib \ SUBDIRS = lib \
lib2 \ lib2 \

View File

@ -1,12 +1,18 @@
QT = core QT = core
TEMPLATE = subdirs TEMPLATE = subdirs
CONFIG += ordered
SUBDIRS = lib \ tst.depends = lib theplugin
theplugin \ SUBDIRS = lib \
tst theplugin \
!android: !win32: !mac: SUBDIRS += almostplugin tst
macx-*: qtConfig(private_tests): SUBDIRS += machtest !android:!win32:!darwin {
TARGET = tst_qpluginloader tst.depends += almostplugin
SUBDIRS += almostplugin
}
macos:qtConfig(private_tests) {
tst.depends += machtest
SUBDIRS += machtest
}
# no special install rule for subdir # no special install rule for subdir
INSTALLS = INSTALLS =

View File

@ -1,7 +1,8 @@
TEMPLATE = subdirs TEMPLATE = subdirs
SUBDIRS = \
test
!winrt: SUBDIRS += crashonexit !winrt {
test.depends = crashonexit
SUBDIRS += crashonexit
}
CONFIG += ordered SUBDIRS += test

View File

@ -2,5 +2,6 @@ CONFIG += testcase
TARGET = tst_qdbusabstractadaptor TARGET = tst_qdbusabstractadaptor
QT = core core-private testlib QT = core core-private testlib
TEMPLATE = subdirs TEMPLATE = subdirs
CONFIG += ordered
qdbusabstractadaptor.depends = qmyserver
SUBDIRS = qmyserver qdbusabstractadaptor SUBDIRS = qmyserver qdbusabstractadaptor

View File

@ -1,6 +1,6 @@
CONFIG += testcase CONFIG += testcase
TARGET = tst_qdbusabstractinterface TARGET = tst_qdbusabstractinterface
TEMPLATE = subdirs TEMPLATE = subdirs
CONFIG += ordered qdbusabstractinterface.depends = qpinger
SUBDIRS = qpinger qdbusabstractinterface SUBDIRS = qpinger qdbusabstractinterface
OTHER_FILES += org.qtproject.QtDBus.Pinger.xml OTHER_FILES += org.qtproject.QtDBus.Pinger.xml

View File

@ -2,5 +2,5 @@ CONFIG += testcase
TARGET = tst_qdbusinterface TARGET = tst_qdbusinterface
QT = core testlib QT = core testlib
TEMPLATE = subdirs TEMPLATE = subdirs
CONFIG += ordered qdbusinterface.depends = qmyserver
SUBDIRS = qmyserver qdbusinterface SUBDIRS = qmyserver qdbusinterface

View File

@ -1,7 +1,7 @@
CONFIG += testcase CONFIG += testcase
TARGET = tst_qdbusmarshall TARGET = tst_qdbusmarshall
TEMPLATE = subdirs TEMPLATE = subdirs
CONFIG += ordered qdbusmarshall.depends = qpong
SUBDIRS = qpong qdbusmarshall SUBDIRS = qpong qdbusmarshall
QT = core-private testlib QT = core-private testlib

View File

@ -1,7 +1,7 @@
TEMPLATE = subdirs TEMPLATE = subdirs
test.depends = app
SUBDIRS = app test SUBDIRS = app test
CONFIG += ordered

View File

@ -1,3 +1,3 @@
TEMPLATE = subdirs TEMPLATE = subdirs
CONFIG += ordered test.depends = testProcessLoopback
SUBDIRS = testProcessLoopback test SUBDIRS = testProcessLoopback test

View File

@ -1,3 +1,3 @@
TEMPLATE = subdirs TEMPLATE = subdirs
CONFIG += ordered test.depends = server
SUBDIRS = server test SUBDIRS = server test