From ad1a5bf63fa63532c3267d4f365286dc78288651 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5rten=20Nordheim?= Date: Wed, 6 May 2020 18:24:07 +0200 Subject: QDecompressHelper: Add brotli support Task-number: QTBUG-83269 Change-Id: If23b098ee76a4892e4c2c6ce5c635688d8d9138d Reviewed-by: Timur Pocheptsov --- src/network/configure.json | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) (limited to 'src/network/configure.json') diff --git a/src/network/configure.json b/src/network/configure.json index 6425103a33..a8166340dc 100644 --- a/src/network/configure.json +++ b/src/network/configure.json @@ -25,6 +25,21 @@ }, "libraries": { + "brotli": { + "label": "Brotli Decompression", + "test": { + "main": [ + "BrotliDecoderState *state = BrotliDecoderCreateInstance(nullptr, nullptr, nullptr);" + ] + }, + "headers": [ + "brotli/decode.h" + ], + "sources": [ + { "type": "pkgConfig", "args": "libbrotlidec" }, + "-lbrotlidec" + ] + }, "corewlan": { "label": "CoreWLan", "export": "", @@ -387,6 +402,13 @@ "condition": "features.temporaryfile", "output": [ "publicFeature", "feature" ] }, + "brotli": { + "label": "Brotli Decompression Support", + "purpose": "Support for downloading and decompressing resources compressed with Brotli through QNetworkAccessManager.", + "section": "Networking", + "condition": "libs.brotli", + "output": [ "publicFeature", "feature" ] + }, "localserver": { "label": "QLocalServer", "purpose": "Provides a local socket based server.", @@ -479,7 +501,8 @@ For example: "ftp", "sctp", "system-proxies", - "gssapi" + "gssapi", + "brotli" ] } ] -- cgit v1.2.3