[Linux] Load dbus libraries dynamically.
This commit is contained in:
@ -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.")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user