Install latest Android SDK toolchain packages

This commit is contained in:
2026-06-05 13:12:30 +02:00
parent e731c06330
commit 8a4ca331cb
7 changed files with 313 additions and 29 deletions

View File

@@ -109,6 +109,14 @@ def main() -> int:
target: target in cmake_platform_module for target in EXPECTED_CMAKE_PLATFORM_TARGETS
}
cmake_platform_module_included = "include(PanoPainterPlatformTargets)" in root_cmake
android_sdk_env = {
"android-sdk-env.ps1": (root / "scripts" / "automation" / "android-sdk-env.ps1").read_text(encoding="utf-8"),
"android-sdk-env.sh": (root / "scripts" / "automation" / "android-sdk-env.sh").read_text(encoding="utf-8"),
}
android_sdkmanager_update_support = {
name: all(token in text for token in ("sdkmanager", "--list", "--install", "ndk", "cmake"))
for name, text in android_sdk_env.items()
}
result = {
"ok": True,
@@ -122,6 +130,7 @@ def main() -> int:
},
"cmakePlatformTargetsPresent": cmake_platform_targets_present,
"cmakePlatformModuleIncluded": cmake_platform_module_included,
"androidSdkmanagerUpdateSupport": android_sdkmanager_update_support,
"missing": {
"platform-build.ps1.targets": missing(expected, ps_targets),
"platform-build.sh.targets": missing(expected, sh_targets),
@@ -133,6 +142,7 @@ def main() -> int:
all(not values for values in result["missing"].values())
and all(cmake_platform_targets_present.values())
and cmake_platform_module_included
and all(android_sdkmanager_update_support.values())
)
print(json.dumps(result, separators=(",", ":")))