Skip to content

Commit 0478998

Browse files
committed
Merge pull request #89414 from bruvzg/update_icu_msdfgen
Update ICU and msdfgen.
2 parents 1030f1f + 0d02568 commit 0478998

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+421
-396
lines changed

modules/msdfgen/SCsub

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ if env["builtin_msdfgen"]:
2020
"core/Projection.cpp",
2121
"core/Scanline.cpp",
2222
"core/Shape.cpp",
23-
"core/SignedDistance.cpp",
24-
"core/Vector2.cpp",
2523
"core/contour-combiners.cpp",
2624
"core/edge-coloring.cpp",
2725
"core/edge-segments.cpp",
@@ -36,6 +34,7 @@ if env["builtin_msdfgen"]:
3634
]
3735
thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
3836

37+
env_msdfgen.Append(CPPDEFINES=[("MSDFGEN_PUBLIC", "")])
3938
env_msdfgen.Prepend(CPPPATH=["#thirdparty/freetype/include", "#thirdparty/msdfgen", "#thirdparty/nanosvg"])
4039

4140
lib = env_msdfgen.add_library("msdfgen_builtin", thirdparty_sources)

modules/text_server_adv/SCsub

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -531,6 +531,7 @@ module_obj = []
531531

532532
if env["builtin_msdfgen"] and msdfgen_enabled:
533533
# Treat msdfgen headers as system headers to avoid raising warnings. Not supported on MSVC.
534+
env_text_server_adv.Append(CPPDEFINES=[("MSDFGEN_PUBLIC", "")])
534535
if not env.msvc:
535536
env_text_server_adv.Append(CPPFLAGS=["-isystem", Dir("#thirdparty/msdfgen").path])
536537
else:

modules/text_server_adv/gdextension_build/SConstruct

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,6 @@ if env["msdfgen_enabled"] and env["freetype_enabled"]:
133133
"core/Projection.cpp",
134134
"core/Scanline.cpp",
135135
"core/Shape.cpp",
136-
"core/SignedDistance.cpp",
137-
"core/Vector2.cpp",
138136
"core/contour-combiners.cpp",
139137
"core/edge-coloring.cpp",
140138
"core/edge-segments.cpp",
@@ -149,8 +147,10 @@ if env["msdfgen_enabled"] and env["freetype_enabled"]:
149147
]
150148
thirdparty_msdfgen_sources = [thirdparty_msdfgen_dir + file for file in thirdparty_msdfgen_sources]
151149

150+
env_msdfgen.Append(CPPDEFINES=[("MSDFGEN_PUBLIC", "")])
152151
env_msdfgen.Append(CPPPATH=["../../../thirdparty/freetype/include", "../../../thirdparty/msdfgen"])
153152
env.Append(CPPPATH=["../../../thirdparty/msdfgen"])
153+
env.Append(CPPDEFINES=[("MSDFGEN_PUBLIC", "")])
154154
env.Append(CPPDEFINES=["MODULE_MSDFGEN_ENABLED"])
155155

156156
lib = env_msdfgen.Library(

modules/text_server_adv/text_server_adv.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,16 @@ using namespace godot;
6767
// Thirdparty headers.
6868

6969
#ifdef MODULE_MSDFGEN_ENABLED
70+
#ifdef _MSC_VER
71+
#pragma warning(disable : 4458)
72+
#endif
7073
#include <core/ShapeDistanceFinder.h>
7174
#include <core/contour-combiners.h>
7275
#include <core/edge-selectors.h>
7376
#include <msdfgen.h>
77+
#ifdef _MSC_VER
78+
#pragma warning(default : 4458)
79+
#endif
7480
#endif
7581

7682
#ifdef MODULE_SVG_ENABLED

modules/text_server_fb/SCsub

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ if "svg" in env.module_list:
1717

1818
if env["builtin_msdfgen"] and msdfgen_enabled:
1919
# Treat msdfgen headers as system headers to avoid raising warnings. Not supported on MSVC.
20+
env_text_server_fb.Append(CPPDEFINES=[("MSDFGEN_PUBLIC", "")])
2021
if not env.msvc:
2122
env_text_server_fb.Append(CPPFLAGS=["-isystem", Dir("#thirdparty/msdfgen").path])
2223
else:

modules/text_server_fb/gdextension_build/SConstruct

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,10 @@ if env["msdfgen_enabled"] and env["freetype_enabled"]:
144144
]
145145
thirdparty_msdfgen_sources = [thirdparty_msdfgen_dir + file for file in thirdparty_msdfgen_sources]
146146

147+
env_msdfgen.Append(CPPDEFINES=[("MSDFGEN_PUBLIC", "")])
147148
env_msdfgen.Append(CPPPATH=["../../../thirdparty/freetype/include", "../../../thirdparty/msdfgen"])
148149
env.Append(CPPPATH=["../../../thirdparty/msdfgen"])
150+
env.Append(CPPDEFINES=[("MSDFGEN_PUBLIC", "")])
149151
env.Append(CPPDEFINES=["MODULE_MSDFGEN_ENABLED"])
150152

151153
lib = env_msdfgen.Library(

modules/text_server_fb/text_server_fb.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,16 @@ using namespace godot;
5959
// Thirdparty headers.
6060

6161
#ifdef MODULE_MSDFGEN_ENABLED
62+
#ifdef _MSC_VER
63+
#pragma warning(disable : 4458)
64+
#endif
6265
#include <core/ShapeDistanceFinder.h>
6366
#include <core/contour-combiners.h>
6467
#include <core/edge-selectors.h>
6568
#include <msdfgen.h>
69+
#ifdef _MSC_VER
70+
#pragma warning(default : 4458)
71+
#endif
6672
#endif
6773

6874
#ifdef MODULE_SVG_ENABLED

thirdparty/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ Files extracted from upstream source:
390390
## icu4c
391391

392392
- Upstream: https://github.com/unicode-org/icu
393-
- Version: 74.1 (9edac7b78327a1cb58db29e2714b15f9fa14e4d7, 2023)
393+
- Version: 74.2 (2d029329c82c7792b985024b2bdab5fc7278fbc8, 2023)
394394
- License: Unicode
395395

396396
Files extracted from upstream source:
@@ -690,7 +690,7 @@ Collection of single-file libraries used in Godot components.
690690
## msdfgen
691691

692692
- Upstream: https://github.com/Chlumsky/msdfgen
693-
- Version: 1.10 (64a91eec3ca3787e6f78b4c99fcd3052ad3e37c0, 2021)
693+
- Version: 1.11 (f12d7ca00091a632a289865b85c3f2e0bfc6542d, 2023)
694694
- License: MIT
695695

696696
Files extracted from the upstream source:

thirdparty/icu4c/common/unicode/uvernum.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
* This value will change in the subsequent releases of ICU
6060
* @stable ICU 2.6
6161
*/
62-
#define U_ICU_VERSION_MINOR_NUM 1
62+
#define U_ICU_VERSION_MINOR_NUM 2
6363

6464
/** The current ICU patchlevel version as an integer.
6565
* This value will change in the subsequent releases of ICU
@@ -132,7 +132,7 @@
132132
* This value will change in the subsequent releases of ICU
133133
* @stable ICU 2.4
134134
*/
135-
#define U_ICU_VERSION "74.1"
135+
#define U_ICU_VERSION "74.2"
136136

137137
/**
138138
* The current ICU library major version number as a string, for library name suffixes.
@@ -151,7 +151,7 @@
151151
/** Data version in ICU4C.
152152
* @internal ICU 4.4 Internal Use Only
153153
**/
154-
#define U_ICU_DATA_VERSION "74.1"
154+
#define U_ICU_DATA_VERSION "74.2"
155155
#endif /* U_HIDE_INTERNAL_API */
156156

157157
/*===========================================================================

thirdparty/icu4c/icudt74l.dat

32 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)