summaryrefslogtreecommitdiff
path: root/modules/text_server_adv
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2022-10-18 18:41:31 +0300
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2022-10-18 18:41:31 +0300
commit634c2fbcae12e666fc5084d9debefbfb2880a702 (patch)
treef441801b2ec238722b52f1c216bfc5b81ecc6515 /modules/text_server_adv
parent4a96fce801cae2d3e0fe42005c74ca7d60cc1582 (diff)
[TextServer] Fix build with disabled graphite.
Diffstat (limited to 'modules/text_server_adv')
-rw-r--r--modules/text_server_adv/SCsub7
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/text_server_adv/SCsub b/modules/text_server_adv/SCsub
index 2261342467..b2e38a1dad 100644
--- a/modules/text_server_adv/SCsub
+++ b/modules/text_server_adv/SCsub
@@ -131,9 +131,14 @@ if env["builtin_harfbuzz"]:
env_harfbuzz.Append(
CCFLAGS=[
"-DHAVE_FREETYPE",
- "-DHAVE_GRAPHITE2",
]
)
+ if env["graphite"]:
+ env_harfbuzz.Append(
+ CCFLAGS=[
+ "-DHAVE_GRAPHITE2",
+ ]
+ )
if env["builtin_freetype"]:
env_harfbuzz.Prepend(CPPPATH=["#thirdparty/freetype/include"])
if env["builtin_graphite"] and env["graphite"]: