summaryrefslogtreecommitdiffstats
path: root/mkspecs/features/qt_prefix_build_check.prf
blob: 3f98847de92aebecd0d77bf53631182e7466de24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#
#  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?
    exists($$prefixdir/.qmake.cache): \
        return(false)
    # top-level non-prefix build?
    contains(prefixdir, .*/qtbase):exists($$dirname(prefixdir)/.qmake.super): \
        return(false)
    return(true)
}