From 6efae6f05b230ffeeb06a4067bed3d76aedea3bc Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Thu, 21 Jul 2022 15:27:23 +0300 Subject: [PATCH] Add `ios` and `macos` platform name aliases. --- SConstruct | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/SConstruct b/SConstruct index 75fe8fd069c..69865807ab8 100644 --- a/SConstruct +++ b/SConstruct @@ -232,6 +232,16 @@ else: if selected_platform != "": print("Automatically detected platform: " + selected_platform) +if selected_platform == "macos": + # Alias for forward compatibility. + print('Platform "macos" is still called "osx" in Godot 3.x. Building for platform "osx".') + selected_platform = "osx" + +if selected_platform == "ios": + # Alias for forward compatibility. + print('Platform "ios" is still called "iphone" in Godot 3.x. Building for platform "iphone".') + selected_platform = "iphone" + if selected_platform in ["linux", "bsd", "linuxbsd"]: if selected_platform == "linuxbsd": # Alias for forward compatibility.