You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
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:
@@ -208,8 +208,8 @@ def configure(env: "Environment"):
|
|||||||
|
|
||||||
if env["wayland"]:
|
if env["wayland"]:
|
||||||
if os.system("wayland-scanner -v") != 0:
|
if os.system("wayland-scanner -v") != 0:
|
||||||
print("wayland-scanner not found. Aborting.")
|
print("wayland-scanner not found. Disabling wayland support.")
|
||||||
sys.exit(255)
|
env["wayland"] = False
|
||||||
|
|
||||||
if env["touch"]:
|
if env["touch"]:
|
||||||
env.Append(CPPDEFINES=["TOUCH_ENABLED"])
|
env.Append(CPPDEFINES=["TOUCH_ENABLED"])
|
||||||
|
|||||||
Reference in New Issue
Block a user