From 9790168b481c8009ce1ef4a976e65c6e0db4a5c2 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Sat, 29 Aug 2020 18:09:48 +0200 Subject: [PATCH] Alias the "linuxbsd" platform to "x11" for forward compatibility This makes it possible to follow documentation designed for the `master` branch while building the `3.2` branch. --- SConstruct | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/SConstruct b/SConstruct index 3768ada10d..26019e6c13 100644 --- a/SConstruct +++ b/SConstruct @@ -284,6 +284,14 @@ else: print("Automatically detected platform: " + selected_platform) env_base["platform"] = selected_platform +if selected_platform in ["linux", "bsd", "linuxbsd"]: + if selected_platform == "linuxbsd": + # Alias for forward compatibility. + print('Platform "linuxbsd" is still called "x11" in Godot 3.2.x. Building for platform "x11".') + # Alias for convenience. + selected_platform = "x11" + env_base["platform"] = selected_platform + if selected_platform in platform_list: tmppath = "./platform/" + selected_platform sys.path.insert(0, tmppath)