diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-03-28 20:35:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-28 20:35:53 +0100 |
commit | fc5e1d03447d658c9f0696eafd95eb596b32e27c (patch) | |
tree | 15fdeafdd0375a19999cc4fbecfb25d7a052bd28 | |
parent | 0ecca1abd0716a5f876bed619b6abbbbf1d3f269 (diff) | |
parent | 59fbbdc4af3ca62a6c7ac415bd55d6daaf76e2ab (diff) |
Merge pull request #37369 from Calinou/scons-x11-alias-linuxbsd
Alias `platform=x11` to `platform=linuxbsd` in SCons
-rw-r--r-- | SConstruct | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct index ed4b3c6242..2a52529539 100644 --- a/SConstruct +++ b/SConstruct @@ -251,6 +251,14 @@ else: print("Automatically detected 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: tmppath = "./platform/" + selected_platform sys.path.insert(0, tmppath) |