summaryrefslogtreecommitdiffstats
path: root/platform/android
diff options
context:
space:
mode:
authorThaddeus Crews <repiteo@outlook.com>2023-11-24 13:31:05 -0600
committerThaddeus Crews <repiteo@outlook.com>2024-02-14 09:26:47 -0600
commit633dcf6dfdffe0503b2e88594d535f63e279bc16 (patch)
treef7f95858f90dd5bc35e08071da62f988d5fe8da3 /platform/android
parent907db8eebcecb97d527edcaff77a1c87a6c068f5 (diff)
downloadredot-engine-633dcf6dfdffe0503b2e88594d535f63e279bc16.tar.gz
SCons: "Environment" to "SConsEnvironment"
Diffstat (limited to 'platform/android')
-rw-r--r--platform/android/detect.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/platform/android/detect.py b/platform/android/detect.py
index 8976e218b3..98b3ecdeff 100644
--- a/platform/android/detect.py
+++ b/platform/android/detect.py
@@ -6,7 +6,7 @@ import subprocess
from typing import TYPE_CHECKING
if TYPE_CHECKING:
- from SCons import Environment
+ from SCons.Script.SConscript import SConsEnvironment
def get_name():
@@ -51,7 +51,7 @@ def get_min_sdk_version(platform):
return int(platform.split("-")[1])
-def get_android_ndk_root(env):
+def get_android_ndk_root(env: "SConsEnvironment"):
return env["ANDROID_HOME"] + "/ndk/" + get_ndk_version()
@@ -74,7 +74,7 @@ def get_flags():
# Check if Android NDK version is installed
# If not, install it.
-def install_ndk_if_needed(env):
+def install_ndk_if_needed(env: "SConsEnvironment"):
print("Checking for Android NDK...")
sdk_root = env["ANDROID_HOME"]
if not os.path.exists(get_android_ndk_root(env)):
@@ -96,7 +96,7 @@ def install_ndk_if_needed(env):
env["ANDROID_NDK_ROOT"] = get_android_ndk_root(env)
-def configure(env: "Environment"):
+def configure(env: "SConsEnvironment"):
# Validate arch.
supported_arches = ["x86_32", "x86_64", "arm32", "arm64"]
if env["arch"] not in supported_arches: