README.md 816 B

setup

You will need android sdk, ndk, and java installed.
Also specify the android sdk path
for make - using SDK parameter (default $HOME/dev/android_sdk),
and in local.properties file - using sdk.dir parameter(default ../android_sdk).

And get the SDL source code.

hg clone http://hg.libsdl.org/SDL ./jni/libsdl2-source # this directory matters
hg checkout release 2.0.7 # optionally checkout the desired version

build

make ndk # build the native portion of the app
make # build the java portion of the app

APK will be in the build directory (build/main.apk)

notes

The source code of the app is in jni/src directory.
The project is set up for c++ 17 including the standard library, you might want/need to change that in jni/Application.mk