From 652f78785b410dd703d5bb4a314bf435dbe85afd Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Thu, 28 Apr 2022 17:20:13 +0300 Subject: [PATCH] [Linux] Disable speech-dispatcher, pulse audio and udev wrapper builds, when library is not found. --- platform/linuxbsd/detect.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/platform/linuxbsd/detect.py b/platform/linuxbsd/detect.py index f8d69b4ca9d..19cf341c853 100644 --- a/platform/linuxbsd/detect.py +++ b/platform/linuxbsd/detect.py @@ -329,6 +329,7 @@ def configure(env): env.Append(CPPDEFINES=["PULSEAUDIO_ENABLED"]) env.ParseConfig("pkg-config libpulse --cflags") # Only cflags, we dlopen the library. else: + env["pulseaudio"] = False print("Warning: PulseAudio development libraries not found. Disabling the PulseAudio audio driver.") if env["dbus"]: @@ -343,6 +344,7 @@ def configure(env): env.Append(CPPDEFINES=["SPEECHD_ENABLED"]) env.ParseConfig("pkg-config speech-dispatcher --cflags") # Only cflags, we dlopen the library. else: + env["speechd"] = False print("Warning: Speech Dispatcher development libraries not found. Disabling Text-to-Speech support.") if platform.system() == "Linux": @@ -352,6 +354,7 @@ def configure(env): env.Append(CPPDEFINES=["UDEV_ENABLED"]) env.ParseConfig("pkg-config libudev --cflags") # Only cflags, we dlopen the library. else: + env["udev"] = False print("Warning: libudev development libraries not found. Disabling controller hotplugging support.") else: env["udev"] = False # Linux specific