diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2022-04-28 15:09:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-28 15:09:31 +0200 |
commit | d25c3aaaa708b7d8d001f56ca03ffe9bffeb8798 (patch) | |
tree | be10d088e90c6a9e60efef823f54f9aa0d70aa07 /platform/linuxbsd/detect.py | |
parent | 3e1b824c050b765095285c67b3e4c8092e1f88c6 (diff) | |
parent | 6ab672d1ef7ece5c3019d46aeb98df3686f37e26 (diff) |
Merge pull request #56192 from bruvzg/tts2.0
Diffstat (limited to 'platform/linuxbsd/detect.py')
-rw-r--r-- | platform/linuxbsd/detect.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/platform/linuxbsd/detect.py b/platform/linuxbsd/detect.py index 2fba58fc53..f8d69b4ca9 100644 --- a/platform/linuxbsd/detect.py +++ b/platform/linuxbsd/detect.py @@ -75,6 +75,7 @@ def get_opts(): BoolVariable("use_msan", "Use LLVM compiler memory sanitizer (MSAN)", False), BoolVariable("pulseaudio", "Detect and use PulseAudio", True), BoolVariable("dbus", "Detect and use D-Bus to handle screensaver", True), + BoolVariable("speechd", "Detect and use Speech Dispatcher for Text-to-Speech support", True), BoolVariable("udev", "Use udev for gamepad connection callbacks", True), BoolVariable("x11", "Enable X11 display", True), BoolVariable("debug_symbols", "Add debugging symbols to release/release_debug builds", True), @@ -337,6 +338,13 @@ def configure(env): else: print("Warning: D-Bus development libraries not found. Disabling screensaver prevention.") + if env["speechd"]: + if os.system("pkg-config --exists speech-dispatcher") == 0: # 0 means found + env.Append(CPPDEFINES=["SPEECHD_ENABLED"]) + env.ParseConfig("pkg-config speech-dispatcher --cflags") # Only cflags, we dlopen the library. + else: + print("Warning: Speech Dispatcher development libraries not found. Disabling Text-to-Speech support.") + if platform.system() == "Linux": env.Append(CPPDEFINES=["JOYDEV_ENABLED"]) if env["udev"]: |