1option(host_build)
2CONFIG += force_bootstrap
3
4DEFINES += QT_RCC QT_NO_CAST_FROM_ASCII QT_NO_FOREACH
5
6include(rcc.pri)
7SOURCES += main.cpp
8
9QMAKE_TARGET_DESCRIPTION = "Qt Resource Compiler"
10load(qt_tool)
11
12# RCC is a bootstrapped tool, so qglobal.h #includes qconfig-bootstrapped.h
13# and that has a #define saying zstd isn't present (for qresource.cpp, which is
14# part of the bootstrap lib). So we inform the presence of the feature in the
15# command-line.
16qtConfig(zstd):!cross_compile {
17    DEFINES += QT_FEATURE_zstd=1
18    QMAKE_USE_PRIVATE += zstd
19} else {
20    DEFINES += QT_FEATURE_zstd=-1
21}
22