Wayland: disable backend at build-time if wayland-scanner is missing
This allows previous X11-only setups to still build Godot with default settings. Note that compilation will still abort if wayland-scanner is present but not the various Wayland libraries.
This commit is contained in:
parent
313f623b9d
commit
c3d6cc57be
|
@ -208,8 +208,8 @@ def configure(env: "Environment"):
|
|||
|
||||
if env["wayland"]:
|
||||
if os.system("wayland-scanner -v") != 0:
|
||||
print("wayland-scanner not found. Aborting.")
|
||||
sys.exit(255)
|
||||
print("wayland-scanner not found. Disabling wayland support.")
|
||||
env["wayland"] = False
|
||||
|
||||
if env["touch"]:
|
||||
env.Append(CPPDEFINES=["TOUCH_ENABLED"])
|
||||
|
|
Loading…
Reference in New Issue