2012-12-11 21:22:23 +00:00
|
|
|
# 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.
|
|
|
|
|
2017-12-06 10:02:07 +00:00
|
|
|
# In early configure setup; nothing useful to be done here.
|
|
|
|
isEmpty(QMAKE_CXX): return()
|
|
|
|
|
2011-04-27 10:05:43 +00:00
|
|
|
load(exclusive_builds)
|
2012-12-11 14:02:45 +00:00
|
|
|
CONFIG = \
|
2012-12-14 18:17:20 +00:00
|
|
|
lex yacc debug exceptions depend_includepath \
|
2012-12-11 14:02:45 +00:00
|
|
|
testcase_targets import_plugins import_qpa_plugin \
|
|
|
|
$$CONFIG
|
2015-05-22 13:02:23 +00:00
|
|
|
|
2018-05-02 10:24:59 +00:00
|
|
|
!build_pass:!isEmpty(QT_LICHECK):!QTDIR_build {
|
2015-05-22 13:02:23 +00:00
|
|
|
#
|
|
|
|
# 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)
|
|
|
|
}
|
2016-05-02 15:09:11 +00:00
|
|
|
|
fix QMAKE_DEFAULT_*DIRS resolution with apple SDK, take 2
the code got factored out to an own toolchain.prf file, which is
load()ed from default_pre.prf, so no change at first.
however, on mac, we shadow toolchain.prf, and make it load() sdk.prf
first.
a side effect, it has become harder to disable the use of an sdk
altogether: putting CONFIG-=sdk into a project file or the qmake
command line has no effect now. instead, it's possible to put it into
.qmake.{conf,cache}.
to make it simpler again, it's conceivable to finally add qmake -pre,
which would allow setting variables before default_pre.prf is executed.
take 2: there was nothing wrong with the original patch, but in 5.8,
CONFIG+=simulator_and_device moved from qconfig.pri to various prf files
that would do it according to the simulator_and_device configure
feature, which would be way too late for the "pulled ahead" sdk.prf
loading. as simulator_and_device is now gone entirely, it is safe to
re-apply this patch (mostly) as-is.
Task-number: QTBUG-56144
Change-Id: I6cf484982eaed8af39f7a539c60f5a087a299914
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
2016-10-14 11:14:13 +00:00
|
|
|
load(toolchain)
|