mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
[Complex Text Layouts] Add third-party TextServer dependencies (ICU, HarfBuzz, Graphite).
This commit is contained in:
parent
493da99269
commit
b9f441e81e
734 changed files with 361362 additions and 4 deletions
|
@ -205,14 +205,31 @@ def configure(env):
|
|||
|
||||
# freetype depends on libpng and zlib, so bundling one of them while keeping others
|
||||
# as shared libraries leads to weird issues
|
||||
if env["builtin_freetype"] or env["builtin_libpng"] or env["builtin_zlib"]:
|
||||
if (
|
||||
env["builtin_freetype"]
|
||||
or env["builtin_libpng"]
|
||||
or env["builtin_zlib"]
|
||||
or env["builtin_graphite"]
|
||||
or env["builtin_harfbuzz"]
|
||||
):
|
||||
env["builtin_freetype"] = True
|
||||
env["builtin_libpng"] = True
|
||||
env["builtin_zlib"] = True
|
||||
env["builtin_graphite"] = True
|
||||
env["builtin_harfbuzz"] = True
|
||||
|
||||
if not env["builtin_freetype"]:
|
||||
env.ParseConfig("pkg-config freetype2 --cflags --libs")
|
||||
|
||||
if not env["builtin_graphite"]:
|
||||
env.ParseConfig("pkg-config graphite2 --cflags --libs")
|
||||
|
||||
if not env["builtin_icu"]:
|
||||
env.ParseConfig("pkg-config icu-uc --cflags --libs")
|
||||
|
||||
if not env["builtin_harfbuzz"]:
|
||||
env.ParseConfig("pkg-config harfbuzz harfbuzz-icu --cflags --libs")
|
||||
|
||||
if not env["builtin_libpng"]:
|
||||
env.ParseConfig("pkg-config libpng16 --cflags --libs")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue