summaryrefslogtreecommitdiffstats
path: root/src/tools/rcc/rcc.pro
blob: ae55b5d8aff7ffa554c4e5b54423937a2a1b50f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
option(host_build)
CONFIG += force_bootstrap

DEFINES += QT_RCC QT_NO_CAST_FROM_ASCII QT_NO_FOREACH

include(rcc.pri)
SOURCES += main.cpp

QMAKE_TARGET_DESCRIPTION = "Qt Resource Compiler"
load(qt_tool)

# RCC is a bootstrapped tool, so qglobal.h #includes qconfig-bootstrapped.h
# and that has a #define saying zstd isn't present (for qresource.cpp, which is
# part of the bootstrap lib). So we inform the presence of the feature in the
# command-line.
qtConfig(zstd):!cross_compile {
    DEFINES += QT_FEATURE_zstd=1
    QMAKE_USE_PRIVATE += zstd
} else {
    DEFINES += QT_FEATURE_zstd=-1
}