|
6 years ago | |
---|---|---|
jni | 6 years ago | |
res | 6 years ago | |
src | 6 years ago | |
AndroidManifest.xml | 6 years ago | |
Makefile | 6 years ago | |
README.md | 6 years ago | |
ant.properties | 6 years ago | |
build.properties | 6 years ago | |
build.xml | 6 years ago | |
default.properties | 6 years ago | |
local.properties | 6 years ago | |
proguard-project.txt | 6 years ago | |
project.properties | 6 years ago |
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
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)
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