summaryrefslogtreecommitdiffstats
path: root/thirdparty
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-05-17 11:14:00 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-05-17 11:14:00 +0200
commitc4889e4793b6e1b5a3fce265bd12eb6c14cfca60 (patch)
treeabb04d02cf8eb6a3b1d81de8a09ae0094f098a4a /thirdparty
parentb201c7fc137efd54b35060fcd3e78f5dbf46b8d6 (diff)
parent831ebda80692e66fd1c0e049f105ed525316fad9 (diff)
downloadredot-engine-c4889e4793b6e1b5a3fce265bd12eb6c14cfca60.tar.gz
Merge pull request #91901 from akien-mga/scons-thorvg-webp-loader-opt-out
thorvg: Disable webp loader if corresponding module is disabled
Diffstat (limited to 'thirdparty')
-rw-r--r--thirdparty/thorvg/inc/config.h4
-rwxr-xr-xthirdparty/thorvg/update-thorvg.sh4
2 files changed, 6 insertions, 2 deletions
diff --git a/thirdparty/thorvg/inc/config.h b/thirdparty/thorvg/inc/config.h
index f271b52faf..3ae166cf22 100644
--- a/thirdparty/thorvg/inc/config.h
+++ b/thirdparty/thorvg/inc/config.h
@@ -5,9 +5,11 @@
#define THORVG_SVG_LOADER_SUPPORT
#define THORVG_PNG_LOADER_SUPPORT
#define THORVG_JPG_LOADER_SUPPORT
-#define THORVG_WEBP_LOADER_SUPPORT
#define THORVG_THREAD_SUPPORT
+// Added conditionally if webp module is enabled.
+//#define THORVG_WEBP_LOADER_SUPPORT
+
// For internal debugging:
//#define THORVG_LOG_ENABLED
diff --git a/thirdparty/thorvg/update-thorvg.sh b/thirdparty/thorvg/update-thorvg.sh
index 23604afbcd..796060d3fb 100755
--- a/thirdparty/thorvg/update-thorvg.sh
+++ b/thirdparty/thorvg/update-thorvg.sh
@@ -38,9 +38,11 @@ cat << EOF > ../inc/config.h
#define THORVG_SVG_LOADER_SUPPORT
#define THORVG_PNG_LOADER_SUPPORT
#define THORVG_JPG_LOADER_SUPPORT
-#define THORVG_WEBP_LOADER_SUPPORT
#define THORVG_THREAD_SUPPORT
+// Added conditionally if webp module is enabled.
+//#define THORVG_WEBP_LOADER_SUPPORT
+
// For internal debugging:
//#define THORVG_LOG_ENABLED