4 Doom 2D Forever ported to Android 4.1+.
10 * Android SDK build-tools >= 19.1.0;
11 * Android SDK platforms >= android-19;
12 * Android NDK >= r16b;
20 D2DF uses special version of nanoGL ( https://github.com/DeaDDooMER/nanogl ) with some added functions.
21 Build all shared libraries using NDK toolchain and put into directory ./ass/lib/armeabi-v7a/.
22 Also you need to build FPC crosscompiler ( http://wiki.freepascal.org/Android ).
26 keytool -genkey -validity 10000 \
27 -dname "CN=AndroidDebug, O=Android, C=US" \
28 -keystore d2df.keystore \
31 -alias androiddebugkey \
43 -g -gl -dUSE_SDLMIXER -dUSE_NANOGL -O3 \
48 -Fi../lib/vampimg/JpegLib \
49 -Fi../lib/vampimg/ZLib \
51 -Fu../lib/vampimg/JpegLib \
52 -Fu../lib/vampimg/ZLib \
53 -FU../../android/tmp \
54 -FE../../android/ass/lib/armeabi-v7a \
55 -Fl../../android/ass/lib/armeabi-v7a \
60 Build APK and sign it:
64 aapt package -f -m -S res -J gen -M AndroidManifest.xml -I ${ANDROID_JAR}
65 javac -source 1.6 -target 1.6 -d obj -bootclasspath ${ANDROID_JAR} -sourcepath src `find src -name '*.java'`
66 dx --dex --output=bin/classes.dex obj
68 -M AndroidManifest.xml \
72 -F bin/d2df.unsigned.apk \
74 jarsigner -sigalg SHA1withRSA -digestalg SHA1 \
75 -keystore d2df.keystore \
78 -signedjar bin/d2df.signed.apk \
79 bin/d2df.unsigned.apk androiddebugkey
82 Where ${ANDROID_JAR} is path to android.jar file. Typically placed in ~/Android/android-sdk/platforms/android-19/android.jar.