From f25bc30d8d9d13fffd34213dfbf5e7373a18222a Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Wed, 31 Oct 2018 22:42:14 -0700 Subject: QResource: add support for resources compressed with Zstandard See next commit for details on why this is a good idea. [ChangeLog][Important Behavior Changes] The Qt resource system now supports compressing content using the Zstandard (https://zstd.net) algorithm. Compared to zlib, it compresses better for the same CPU time, so this algorithm is the default. QResource::isCompressed() returns true for either compression algorithm. Use QResource::compressionAlgorithm() to find out which algorithm to decompress. QFile will automatically decompress using the correct algorithm. Change-Id: I343f2beed55440a7ac0bfffd1562e9a8f94933a7 Reviewed-by: Oswald Buddenhagen Reviewed-by: Samuel Gaist Reviewed-by: Lars Knoll --- src/corelib/global/qconfig-bootstrapped.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/corelib/global/qconfig-bootstrapped.h') diff --git a/src/corelib/global/qconfig-bootstrapped.h b/src/corelib/global/qconfig-bootstrapped.h index dfcc3c9c7f..bd35ae9712 100644 --- a/src/corelib/global/qconfig-bootstrapped.h +++ b/src/corelib/global/qconfig-bootstrapped.h @@ -121,6 +121,7 @@ #define QT_FEATURE_topleveldomain -1 #define QT_NO_TRANSLATION #define QT_FEATURE_translation -1 +#define QT_FEATURE_zstd -1 #ifdef QT_BUILD_QMAKE #define QT_FEATURE_commandlineparser -1 -- cgit v1.2.3