diff options
author | Riteo <riteo@posteo.net> | 2024-01-31 02:08:33 +0100 |
---|---|---|
committer | Riteo <riteo@posteo.net> | 2024-01-31 02:08:33 +0100 |
commit | c3d6cc57be605fad96ae092685578ef215ca8dbc (patch) | |
tree | c27478adfe9b56a64220ca4be4f0d32cd2ec8d13 /platform/linuxbsd/detect.py | |
parent | 313f623b9d102cc8c411ae7cab9518f98c2f87f2 (diff) | |
download | redot-engine-c3d6cc57be605fad96ae092685578ef215ca8dbc.tar.gz |
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.
Diffstat (limited to 'platform/linuxbsd/detect.py')
-rw-r--r-- | platform/linuxbsd/detect.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/linuxbsd/detect.py b/platform/linuxbsd/detect.py index e6a47f556d..7946ef6228 100644 --- a/platform/linuxbsd/detect.py +++ b/platform/linuxbsd/detect.py @@ -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"]) |