Commit 2ceeb993361e02615f1a28bfc8811eacbac194e9

Sam Lantinga 2018-01-27T12:05:26

Fixed bug 4065 - SDL_wave.c fail to compile in armeabi with ndk r16b Sylvain armeabi is almost deprecated for android-ndk higher that r13b. either it doesn't compile (ICE), or it executes wrongly (using long long for instance). android people advices to use armeabi-v7a (or use r13b).

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/build-scripts/androidbuildlibs.sh b/build-scripts/androidbuildlibs.sh
index 4a0bb2f..934becc 100755
--- a/build-scripts/androidbuildlibs.sh
+++ b/build-scripts/androidbuildlibs.sh
@@ -68,7 +68,7 @@ ndk-build \
   NDK_OUT=$obj \
   NDK_LIBS_OUT=$lib \
   APP_BUILD_SCRIPT=Android.mk \
-  APP_ABI="all" \
-  APP_PLATFORM=android-12 \
+  APP_ABI="armeabi-v7a arm64-v8a x86 x86_64" \
+  APP_PLATFORM=android-14 \
   APP_MODULES="SDL2 SDL2_main" \
   $ndk_args