[Linux] Load dbus libraries dynamically.

This commit is contained in:
bruvzg 2022-07-29 11:19:06 +03:00
parent 9869182e8a
commit f973069afb
No known key found for this signature in database
GPG key ID: 7960FCF39844EC38
6 changed files with 3626 additions and 4 deletions

View file

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