6bc6e6d388
configure already does it for qt itself, so it's pointless to ever invoke in default_pre.prf. to make the exclusion work during the makespec reload during early setup, we pull ahead the restoration of CONFIG, hoping it won't cause too many side effects. another change in qt5 will ensure that top-level builds are also covered. finally, configure tests also need an explicit exclusion. that way, attempts to re-configure build trees of commercial builds after the day of the first configuration do not fail anymore. Task-number: QTBUG-63452 Change-Id: I42264f64d7621784d4d67bde885a8e501f5ca413 Reviewed-by: Kai Koehne <kai.koehne@qt.io>
30 lines
953 B
Plaintext
30 lines
953 B
Plaintext
# This file is loaded by qmake right before each actual project file.
|
|
# Note that evaluating variable assignments from the command line
|
|
# still happens in between these two steps.
|
|
|
|
# In early configure setup; nothing useful to be done here.
|
|
isEmpty(QMAKE_CXX): return()
|
|
|
|
load(exclusive_builds)
|
|
CONFIG = \
|
|
lex yacc debug exceptions depend_includepath \
|
|
testcase_targets import_plugins import_qpa_plugin \
|
|
$$CONFIG
|
|
|
|
!build_pass:!isEmpty(QT_LICHECK):!QTDIR_build {
|
|
#
|
|
# call license checker (but cache result for one day)
|
|
#
|
|
today = $$section(_DATE_, " ", 0, 2)
|
|
!isEqual(QMAKE_LICHECK_TIMESTAMP, $$today) {
|
|
!system("$$system_quote($$system_path($$[QT_HOST_BINS/src]/$$QT_LICHECK)) check" \
|
|
"$$QT_RELEASE_DATE $$[QMAKE_SPEC] $$[QMAKE_XSPEC]"): \
|
|
error("License check failed! Giving up ...")
|
|
|
|
cache(QMAKE_LICHECK_TIMESTAMP, set stash, today)
|
|
}
|
|
unset(today)
|
|
}
|
|
|
|
load(toolchain)
|