No Description

namark 1747e0d40b Fixes and improvements in the Makefile. 5 years ago
jni f4e7fcfb69 Initial commit. 5 years ago
res f4e7fcfb69 Initial commit. 5 years ago
src f4e7fcfb69 Initial commit. 5 years ago
AndroidManifest.xml f4e7fcfb69 Initial commit. 5 years ago
Makefile 1747e0d40b Fixes and improvements in the Makefile. 5 years ago
README.md f4e7fcfb69 Initial commit. 5 years ago
ant.properties f4e7fcfb69 Initial commit. 5 years ago
build.properties f4e7fcfb69 Initial commit. 5 years ago
build.xml f4e7fcfb69 Initial commit. 5 years ago
default.properties f4e7fcfb69 Initial commit. 5 years ago
local.properties f4e7fcfb69 Initial commit. 5 years ago
proguard-project.txt f4e7fcfb69 Initial commit. 5 years ago
project.properties f4e7fcfb69 Initial commit. 5 years ago

README.md

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