nuke {tests,examples}_need_tools flags
making the dependencies on tools/ optional was meant to maximize build parallelization, but it's just too fragile, as nobody ever remembers (or even knows) about having to add the flags when necessary. Task-number: QTBUG-68478 Change-Id: I85c0b65d5a63109aedc24bc17eaaaf46b777b634 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
parent
00c3418b1e
commit
fc9378952b
@ -39,7 +39,7 @@ exists($$_PRO_FILE_PWD_/examples/examples.pro) {
|
||||
sub_examples.subdir = examples
|
||||
sub_examples.target = sub-examples
|
||||
contains(SUBDIRS, sub_src): sub_examples.depends = sub_src
|
||||
examples_need_tools: sub_examples.depends += sub_tools
|
||||
contains(SUBDIRS, sub_tools): sub_examples.depends += sub_tools
|
||||
!contains(QT_BUILD_PARTS, examples): sub_examples.CONFIG = no_default_target no_default_install
|
||||
SUBDIRS += sub_examples
|
||||
}
|
||||
@ -48,7 +48,7 @@ exists($$_PRO_FILE_PWD_/tests/tests.pro) {
|
||||
sub_tests.subdir = tests
|
||||
sub_tests.target = sub-tests
|
||||
contains(SUBDIRS, sub_src): sub_tests.depends = sub_src # The tests may have a run-time only dependency on other parts
|
||||
tests_need_tools: sub_tests.depends += sub_tools
|
||||
contains(SUBDIRS, sub_tools): sub_tests.depends += sub_tools
|
||||
sub_tests.CONFIG = no_default_install
|
||||
!contains(QT_BUILD_PARTS, tests) {
|
||||
sub_tests.CONFIG += no_default_target
|
||||
|
Loading…
x
Reference in New Issue
Block a user