2019-06-05 10:42:14 +00:00
|
|
|
#
|
|
|
|
# W A R N I N G
|
|
|
|
# -------------
|
|
|
|
#
|
|
|
|
# This file is not part of the Qt API. It exists purely as an
|
|
|
|
# implementation detail. It may change from version to version
|
|
|
|
# without notice, or even be removed.
|
|
|
|
#
|
|
|
|
# We mean it.
|
|
|
|
#
|
|
|
|
|
|
|
|
defineTest(qtIsPrefixBuild) {
|
|
|
|
prefixdir = $$1
|
|
|
|
# qtbase non-prefix build?
|
2020-04-07 14:10:23 +00:00
|
|
|
exists($$prefixdir/.qmake.cache)|exists($$prefixdir/CMakeCache.txt): \
|
2019-06-05 10:42:14 +00:00
|
|
|
return(false)
|
|
|
|
# top-level non-prefix build?
|
2020-04-07 14:10:23 +00:00
|
|
|
contains(prefixdir, .*/qtbase):if(exists($$dirname(prefixdir)/.qmake.super)|exists($$dirname(prefixdir)/CMakeCache.txt)): \
|
2019-06-05 10:42:14 +00:00
|
|
|
return(false)
|
|
|
|
return(true)
|
|
|
|
}
|