[Linux] Fix build with missing DBUS.

This commit is contained in:
bruvzg 2022-07-29 22:16:21 +03:00
parent 5ca09b322c
commit d6a9384a32
No known key found for this signature in database
GPG Key ID: 7960FCF39844EC38

View File

@ -327,6 +327,7 @@ def configure(env):
env.Append(CPPDEFINES=["DBUS_ENABLED"])
env.ParseConfig("pkg-config dbus-1 --cflags") # Only cflags, we dlopen the library.
else:
env["dbus"] = False
print("Warning: D-Bus development libraries not found. Disabling screensaver prevention.")
if env["speechd"]: