Build against the real SpeedTree SDK; keep assert-based tests in release

SDK 62a5f5a carries the SpeedTree runtime, so the local mirror/shim is no
longer needed. attack_combo and ava2_render_3d tests called the code under
test inside assert() and segfaulted under NDEBUG; undefine it like
hardware_scene_test. android/build.sh prefers the SDK adb. Desktop ctest
59/59 incl. speedtree_forest; device 60 fps with real trees.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shenlei
2026-10-13 11:03:57 +09:00
co-authored by Claude Opus 5.5
parent 8f96e7a143
commit 15b2397b54
4 changed files with 32 additions and 1 deletions
+3 -1
View File
@@ -92,7 +92,9 @@ fi
APK="$HERE/app/build/outputs/apk/debug/app-debug.apk"
ls -l "$APK"
ADB="$ANDROID_HOME/platform-tools/adb"; command -v adb >/dev/null && ADB="$(command -v adb)"
# Prefer the SDK's adb: a different adb version on PATH (e.g. Homebrew's) restarts a running adb
# server it does not match, which drops an install or push in progress.
ADB="$ANDROID_HOME/platform-tools/adb"; [[ -x "$ADB" ]] || ADB="$(command -v adb)"
[[ -n "${ADB_SERIAL:-}" ]] && ADB="$ADB -s $ADB_SERIAL"
if $ADB get-state >/dev/null 2>&1; then
$ADB install -r -d "$APK"