Nenhuma descrição

namark 1747e0d40b Fixes and improvements in the Makefile. 6 anos atrás
jni f4e7fcfb69 Initial commit. 6 anos atrás
res f4e7fcfb69 Initial commit. 6 anos atrás
src f4e7fcfb69 Initial commit. 6 anos atrás
AndroidManifest.xml f4e7fcfb69 Initial commit. 6 anos atrás
Makefile 1747e0d40b Fixes and improvements in the Makefile. 6 anos atrás
README.md f4e7fcfb69 Initial commit. 6 anos atrás
ant.properties f4e7fcfb69 Initial commit. 6 anos atrás
build.properties f4e7fcfb69 Initial commit. 6 anos atrás
build.xml f4e7fcfb69 Initial commit. 6 anos atrás
default.properties f4e7fcfb69 Initial commit. 6 anos atrás
local.properties f4e7fcfb69 Initial commit. 6 anos atrás
proguard-project.txt f4e7fcfb69 Initial commit. 6 anos atrás
project.properties f4e7fcfb69 Initial commit. 6 anos atrás

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