diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-03-29 08:38:21 +0300 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-03-29 08:38:21 +0300 |
commit | ea4d62dca3e6a088823fc0f40b38179e269592a4 (patch) | |
tree | d38965f2c71425206b38f726653cef5b304b69a5 /modules/text_server_adv | |
parent | c5efda5f4ef983c74068ab39f2eb47292cd7b4e9 (diff) |
[ICU] Add library name suffix for API rename to avoid conflicts.
Diffstat (limited to 'modules/text_server_adv')
-rw-r--r-- | modules/text_server_adv/SCsub | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/text_server_adv/SCsub b/modules/text_server_adv/SCsub index dfd3bb3f1e..525d4d3efb 100644 --- a/modules/text_server_adv/SCsub +++ b/modules/text_server_adv/SCsub @@ -122,7 +122,7 @@ if env["builtin_harfbuzz"]: env_harfbuzz.Append(CCFLAGS=["-DHAVE_ICU"]) if env["builtin_icu"]: env_harfbuzz.Append(CPPPATH=["#thirdparty/icu4c/common/"]) - env_harfbuzz.Append(CCFLAGS=["-DHAVE_ICU_BUILTIN"]) + env_harfbuzz.Append(CCFLAGS=["-DU_HAVE_LIB_SUFFIX=1", "-DU_LIB_SUFFIX_C_NAME=_godot", "-DHAVE_ICU_BUILTIN"]) if freetype_enabled: env_harfbuzz.Append( @@ -464,11 +464,16 @@ if env["builtin_icu"]: "-DUCONFIG_NO_FILE_IO", "-DUCONFIG_NO_TRANSLITERATION", "-DPKGDATA_MODE=static", + "-DU_ENABLE_DYLOAD=0", + "-DU_HAVE_LIB_SUFFIX=1", + "-DU_LIB_SUFFIX_C_NAME=_godot", "-DICU_DATA_NAME=" + icu_data_name, ] ) env_text_server_adv.Append( CXXFLAGS=[ + "-DU_HAVE_LIB_SUFFIX=1", + "-DU_LIB_SUFFIX_C_NAME=_godot", "-DICU_DATA_NAME=" + icu_data_name, ] ) |