Merge pull request #87765 from Riteo/wayland-skip-no-scanner

Wayland: Disable backend at build-time if wayland-scanner is missing
This commit is contained in:
Rémi Verschelde 2024-01-31 10:56:06 +01:00
commit 7de88873a6
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -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"])