4 Doom 2D Forever ported to Android 4.1+.
10 * Android SDK build-tools >= 19.1.0;
11 * Android SDK platforms >= android-16;
12 * Android NDK >= r16b;
19 Build all shared libraries using NDK toolchain and put into directory ./ass/lib/armeabi-v7a/.
20 Also you need to build FPC crosscompiler ( http://wiki.freepascal.org/Android ).
22 If you want to pack game resources into APK, add it into directory "resources".
23 If you want to play MIDI music, add instruments and timidity.cfg into directory "resources" (you can grab it from https://www.libsdl.org/projects/SDL_mixer/timidity/timidity.tar.gz).
27 keytool -genkey -validity 10000 \
28 -dname "CN=AndroidDebug, O=Android, C=US" \
29 -keystore d2df.keystore \
32 -alias androiddebugkey \
44 -g -gl -dUSE_SDLMIXER -dUSE_GLES1 -O3 \
48 -FU../../android/tmp \
49 -FE../../android/ass/lib/armeabi-v7a \
50 -Fl../../android/ass/lib/armeabi-v7a \
55 Build APK and sign it:
58 mkdir -p bin obj gen resources
59 aapt package -f -m -S res -J gen -M AndroidManifest.xml -I ${ANDROID_JAR}
60 javac -source 1.6 -target 1.6 -d obj -bootclasspath ${ANDROID_JAR} -sourcepath src `find src -name '*.java'`
61 dx --dex --output=bin/classes.dex obj
63 -M AndroidManifest.xml \
67 -F bin/d2df.unsigned.apk \
70 jarsigner -sigalg SHA1withRSA -digestalg SHA1 \
71 -keystore d2df.keystore \
74 -signedjar bin/d2df.signed.apk \
75 bin/d2df.unsigned.apk androiddebugkey
78 Where ${ANDROID_JAR} is path to android.jar file. Typically placed in ~/Android/android-sdk/platforms/android-16/android.jar.