summaryrefslogtreecommitdiff
path: root/modules/freetype
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2022-03-16 15:58:35 +0200
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2022-03-18 15:09:38 +0200
commite07a8f0aa66b9dcd62175c53de35cb8df934b733 (patch)
tree11a89117aa196d5a79c04b2012df28322cf572ea /modules/freetype
parent309cd91ea7aa1d66e1d409197bf2725427a78642 (diff)
Add brotli decoder and WOFF2 support.
Diffstat (limited to 'modules/freetype')
-rw-r--r--modules/freetype/SCsub17
1 files changed, 17 insertions, 0 deletions
diff --git a/modules/freetype/SCsub b/modules/freetype/SCsub
index 27d0777c17..e41e2a9acf 100644
--- a/modules/freetype/SCsub
+++ b/modules/freetype/SCsub
@@ -57,6 +57,23 @@ if env["builtin_freetype"]:
]
thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
+ thirdparty_brotli_dir = "#thirdparty/brotli/"
+ thirdparty_brotli_sources = [
+ "common/constants.c",
+ "common/context.c",
+ "common/dictionary.c",
+ "common/platform.c",
+ "common/shared_dictionary.c",
+ "common/transform.c",
+ "dec/bit_reader.c",
+ "dec/decode.c",
+ "dec/huffman.c",
+ "dec/state.c",
+ ]
+ thirdparty_sources += [thirdparty_brotli_dir + file for file in thirdparty_brotli_sources]
+ env_freetype.Append(CPPDEFINES=["FT_CONFIG_OPTION_USE_BROTLI"])
+ env_freetype.Prepend(CPPPATH=[thirdparty_brotli_dir + "include"])
+
if env["platform"] == "uwp":
# Include header for UWP to fix build issues
env_freetype.Append(CCFLAGS=["/FI", '"modules/freetype/uwpdef.h"'])