I successfully built the required files for Android with cmake and make.
Now I wanted to go further:
### Building the APK's
For the `testsprite` executable, the `testsprite-apk` target will build the associated APK:
`cmake --build . --target testsprite-apk`
APK's of all tests can be built with the `sdl-test-apks` target:
`cmake --build . --target sdl-test-apks`
For the *-apk targets to become available, there are 2 requirements:
the SDL tests need to be built. So make sure to configure with -DSDL_TEST_LIBRARY=ON -DSDL_TESTS=ON
CMake can find the Android build tools and other utilities. Read the docs of the Find*.cmake files in cmake/Android to see what’s needed. Usually, configuring a fresh CMake project with the environment variables ANDROID_HOME and ANDROID_NDK_HOME set is enough (add --fresh to force a fresh build) to let CMake find these utilities automatically.
you also need to configure CMake with a Java JDK (with JAVA_HOME set)
Please note that this apk ability of SDL’s CMake scripts is unsupported.
It was only added to avoid Gradle and build apk’s on ci (=continuous integration).