summaryrefslogtreecommitdiffstats
path: root/mkspecs/features/qt_app.prf
blob: 90135b00a386ba1ae93b5090194f570216e208fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#
#  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.
#

TEMPLATE = app

load(qt_build_paths)
DESTDIR = $$MODULE_BASE_OUTDIR/bin

isEmpty(QMAKE_INFO_PLIST): CONFIG -= app_bundle

# This decreases the binary size for tools if statically linked
QMAKE_LFLAGS += $$QMAKE_LFLAGS_GCSECTIONS

host_build: QT -= gui   # no host tool will ever use gui
host_build:force_bootstrap {
    !build_pass:qtConfig(release_tools): CONFIG += release
    contains(QT, core(-private)?|xml) {
        QT -= core core-private xml
        QT += bootstrap-private
    }
    target.path = $$[QT_HOST_BINS]
} else {
    !build_pass:qtConfig(debug_and_release): CONFIG += release
    target.path = $$[QT_INSTALL_BINS]
    CONFIG += relative_qt_rpath  # Qt's tools and apps should be relocatable
}
INSTALLS += target

load(qt_targets)
load(qt_common)