summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2022-04-28 17:20:13 +0300
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2022-04-28 18:13:34 +0300
commit652f78785b410dd703d5bb4a314bf435dbe85afd (patch)
treedc0b3f662ecf43e1fb04980dcf18a222c1fba132 /platform
parentd25c3aaaa708b7d8d001f56ca03ffe9bffeb8798 (diff)
[Linux] Disable speech-dispatcher, pulse audio and udev wrapper builds, when library is not found.
Diffstat (limited to 'platform')
-rw-r--r--platform/linuxbsd/detect.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/platform/linuxbsd/detect.py b/platform/linuxbsd/detect.py
index f8d69b4ca9..19cf341c85 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