diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-03-09 19:16:28 +0100 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-03-12 11:41:26 +0100 |
commit | 14546d1816a877690cda71f02c275303ef42afa8 (patch) | |
tree | 0c5ac465688285bb789aa3034cd6b0000b1a0ab7 /src/tools/rcc/rcc.h | |
parent | 39ad96033ced146567d68929a50131a6ab410f2d (diff) |
rcc: Teach rcc the --no-zstd option
It is needed when cross-building Qt using CMake, where the zstd
feature might have different values between the host and target,
in which case the build system tells rcc not to use zstd when
the feature is disabled.
Amends d20c9805763ab3dc504ebf2cefd33499d89ef22c
Change-Id: I9dc55b59b1be5272b79aa5f1e2daf2b516a157d6
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'src/tools/rcc/rcc.h')
-rw-r--r-- | src/tools/rcc/rcc.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tools/rcc/rcc.h b/src/tools/rcc/rcc.h index 190c37a1f6..ac5ea15bb1 100644 --- a/src/tools/rcc/rcc.h +++ b/src/tools/rcc/rcc.h @@ -109,6 +109,9 @@ public: int formatVersion() const { return m_formatVersion; } + void setNoZstd(bool v) { m_noZstd = v; } + bool noZstd() const { return m_noZstd; } + private: struct Strings { Strings(); @@ -170,6 +173,7 @@ private: QIODevice *m_outDevice; QByteArray m_out; quint8 m_formatVersion; + bool m_noZstd; }; QT_END_NAMESPACE |