summaryrefslogtreecommitdiff
path: root/platform/linuxbsd/detect.py
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-07-27 13:38:30 +0200
committerGitHub <noreply@github.com>2022-07-27 13:38:30 +0200
commitcc5135959b8d7956e93c566916352f5818f008f1 (patch)
treeaf3ae059ee08e46b309da924ab90d592c25f7a05 /platform/linuxbsd/detect.py
parent1bb56d92980c268a24d826a342ed4c44e7058b5a (diff)
parent36ef8f29dcea579aab058e1778303e10360c7e83 (diff)
Merge pull request #62973 from bruvzg/sysfont_support
Diffstat (limited to 'platform/linuxbsd/detect.py')
-rw-r--r--platform/linuxbsd/detect.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/platform/linuxbsd/detect.py b/platform/linuxbsd/detect.py
index 065250c40e..b9cbf9b97c 100644
--- a/platform/linuxbsd/detect.py
+++ b/platform/linuxbsd/detect.py
@@ -298,6 +298,12 @@ def configure(env):
## Flags
+ if os.system("pkg-config --exists fontconfig") == 0: # 0 means found
+ env.Append(CPPDEFINES=["FONTCONFIG_ENABLED"])
+ env.ParseConfig("pkg-config fontconfig --cflags --libs")
+ else:
+ print("Warning: fontconfig libraries not found. Disabling the system fonts support.")
+
if os.system("pkg-config --exists alsa") == 0: # 0 means found
env["alsa"] = True
env.Append(CPPDEFINES=["ALSA_ENABLED", "ALSAMIDI_ENABLED"])