1# This file is loaded by qmake right before each actual project file.
2# Note that evaluating variable assignments from the command line
3# still happens in between these two steps.
4
5# In early configure setup; nothing useful to be done here.
6isEmpty(QMAKE_CXX): return()
7
8load(exclusive_builds)
9CONFIG = \
10    lex yacc debug exceptions depend_includepath \
11    testcase_targets import_plugins import_qpa_plugin \
12    $$CONFIG
13
14!build_pass:!isEmpty(QT_LICHECK):!QTDIR_build {
15    #
16    # call license checker (but cache result for one day)
17    #
18    today = $$section(_DATE_, " ", 0, 2)
19    !isEqual(QMAKE_LICHECK_TIMESTAMP, $$today) {
20        !system("$$system_quote($$system_path($$[QT_HOST_BINS/src]/$$QT_LICHECK)) check" \
21                "$$QT_RELEASE_DATE $$[QMAKE_SPEC] $$[QMAKE_XSPEC]"): \
22            error("License check failed! Giving up ...")
23
24        cache(QMAKE_LICHECK_TIMESTAMP, set stash, today)
25    }
26    unset(today)
27}
28
29load(toolchain)
30