mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
[Linux] Load dbus libraries dynamically.
This commit is contained in:
parent
9869182e8a
commit
f973069afb
6 changed files with 3626 additions and 4 deletions
|
@ -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.")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue