diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2023-03-29 09:31:25 +0300 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2023-03-29 22:43:36 +0300 |
commit | 0e4bd964cc60a199b22ae0621c81c804c74b7964 (patch) | |
tree | a644fa80581923d6daca2a4c03e3218fcce0470a /modules/freetype | |
parent | c29866dbc05694594b9be68b8d451816c7a0889d (diff) | |
download | redot-engine-0e4bd964cc60a199b22ae0621c81c804c74b7964.tar.gz |
Expose brotli decompression to the scripting API.
Diffstat (limited to 'modules/freetype')
-rw-r--r-- | modules/freetype/SCsub | 18 | ||||
-rw-r--r-- | modules/freetype/config.py | 8 |
2 files changed, 0 insertions, 26 deletions
diff --git a/modules/freetype/SCsub b/modules/freetype/SCsub index 0b86bc569f..421f200f1a 100644 --- a/modules/freetype/SCsub +++ b/modules/freetype/SCsub @@ -59,25 +59,7 @@ if env["builtin_freetype"]: thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources] if env["brotli"]: - 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.get("use_ubsan") or env.get("use_asan") or env.get("use_tsan") or env.get("use_lsan") or env.get("use_msan"): - env_freetype.Append(CPPDEFINES=["BROTLI_BUILD_PORTABLE"]) if env["platform"] == "uwp": # Include header for UWP to fix build issues diff --git a/modules/freetype/config.py b/modules/freetype/config.py index c0586d5536..d22f9454ed 100644 --- a/modules/freetype/config.py +++ b/modules/freetype/config.py @@ -2,13 +2,5 @@ def can_build(env, platform): return True -def get_opts(platform): - from SCons.Variables import BoolVariable - - return [ - BoolVariable("brotli", "Enable Brotli decompressor for WOFF2 fonts support", True), - ] - - def configure(env): pass |