From fdc4a19e1af4ed61f92a96a52c82a043d214a9df Mon Sep 17 00:00:00 2001 From: Benau Date: Mon, 19 Sep 2022 11:28:44 +0800 Subject: [PATCH] Copy debug symbols for android build --- tools/android_builder.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/android_builder.sh b/tools/android_builder.sh index 21a27c92ed9..a2c8be65886 100755 --- a/tools/android_builder.sh +++ b/tools/android_builder.sh @@ -188,3 +188,10 @@ cp ./android/build/outputs/apk/release/android-release.apk \ cp ./android/build/outputs/bundle/release/android-release.aab \ ./android-output/SuperTuxKart-$PROJECT_VERSION.aab + +for arch in $(ls ./android/build/intermediates/ndkBuild/release/obj/local); do + cp ./android/build/intermediates/ndkBuild/release/obj/local/$arch/libmain.so \ + ./android-output/SuperTuxKart-$PROJECT_VERSION-$arch-libmain.so + cp ./android/build/intermediates/ndkBuild/release/obj/local/$arch/libSDL2.so \ + ./android-output/SuperTuxKart-$PROJECT_VERSION-$arch-libSDL2.so +done