Make feature topleveldomain optional in wasm build

This feature should not be needed in most wasm applications.
Disabling it by default can save ~50KB in QtQuick apps.

Task-number: QTBUG-110843
Change-Id: Iac0a51bfd016db1da40b59ed32e3faf6ad4267e0
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Reviewed-by: Mikołaj Boc <Mikolaj.Boc@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
This commit is contained in:
Piotr Wierciński 2023-02-16 14:19:19 +01:00
parent 667aec810f
commit 36ba00aa5c

View File

@ -333,7 +333,7 @@ qt_feature("topleveldomain" PUBLIC
SECTION "Networking"
LABEL "qIsEffectiveTLD()"
PURPOSE "Provides support for checking if a domain is a top level domain. If enabled, a binary dump of the Public Suffix List (http://www.publicsuffix.org, Mozilla License) is included. The data is used in QNetworkCookieJar."
AUTODETECT NOT WASM
DISABLE INPUT_publicsuffix STREQUAL "no"
)
qt_feature("publicsuffix-qt" PRIVATE