From 8147f04db6605889060681cb4fb336e9c91a0324 Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Sat, 6 Aug 2022 11:54:20 +0300 Subject: [PATCH] [Linux] Disable speech-dispatcher, pulseaudio and udev wrapper builds, when library is not found. --- platform/x11/detect.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/platform/x11/detect.py b/platform/x11/detect.py index 573ac38059b..27c1a8cd0b2 100644 --- a/platform/x11/detect.py +++ b/platform/x11/detect.py @@ -369,6 +369,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["speechd"]: @@ -376,6 +377,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": @@ -385,6 +387,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