Merge pull request #37369 from Calinou/scons-x11-alias-linuxbsd

Alias `platform=x11` to `platform=linuxbsd` in SCons
This commit is contained in:
Rémi Verschelde 2020-03-28 20:35:53 +01:00 committed by GitHub
commit fc5e1d0344
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -251,6 +251,14 @@ else:
print("Automatically detected platform: " + selected_platform) print("Automatically detected platform: " + selected_platform)
env_base["platform"] = selected_platform env_base["platform"] = selected_platform
if selected_platform in ["linux", "bsd", "x11"]:
if selected_platform == "x11":
# Deprecated alias kept for compatibility.
print('Platform "x11" has been renamed to "linuxbsd" in Godot 4.0. '
'Building for platform "linuxbsd".')
# Alias for convenience.
selected_platform = "linuxbsd"
if selected_platform in platform_list: if selected_platform in platform_list:
tmppath = "./platform/" + selected_platform tmppath = "./platform/" + selected_platform
sys.path.insert(0, tmppath) sys.path.insert(0, tmppath)