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).
try building an android app with no ide, link it to a native application via jniLibs so you can run a c++ app that includes open xr to take control of rendering when opening the app so it renders two separate views using different swap chains. … I’ve almost got it… just need to get my .so files into the right place its soo worth it if you just grind thru the learning curve, this problem you are on would teach you soo much about the big picture. I think what I have learned opened my eyes to a lot, regarding android at least