mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Add "Keep screen on" feature to DisplayServerX11
This commit is contained in:
parent
953de68cfc
commit
0c83a23ab5
7 changed files with 230 additions and 3 deletions
|
@ -72,6 +72,7 @@ def get_opts():
|
|||
BoolVariable("use_tsan", "Use LLVM/GCC compiler thread sanitizer (TSAN)", False),
|
||||
BoolVariable("use_msan", "Use LLVM compiler memory sanitizer (MSAN)", False),
|
||||
BoolVariable("pulseaudio", "Detect and use PulseAudio", True),
|
||||
BoolVariable("dbus", "Detect and use D-Bus to handle screensaver", True),
|
||||
BoolVariable("udev", "Use udev for gamepad connection callbacks", True),
|
||||
BoolVariable("x11", "Enable X11 display", True),
|
||||
BoolVariable("debug_symbols", "Add debugging symbols to release/release_debug builds", True),
|
||||
|
@ -347,6 +348,14 @@ def configure(env):
|
|||
else:
|
||||
print("PulseAudio development libraries not found, disabling driver")
|
||||
|
||||
if env["dbus"]:
|
||||
if os.system("pkg-config --exists dbus-1") == 0: # 0 means found
|
||||
print("Enabling D-Bus")
|
||||
env.Append(CPPDEFINES=["DBUS_ENABLED"])
|
||||
env.ParseConfig("pkg-config --cflags --libs dbus-1")
|
||||
else:
|
||||
print("D-Bus development libraries not found, disabling dependent features")
|
||||
|
||||
if platform.system() == "Linux":
|
||||
env.Append(CPPDEFINES=["JOYDEV_ENABLED"])
|
||||
if env["udev"]:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue