From ae41dee55e2acee427dcc32826b1b48059d1e0f2 Mon Sep 17 00:00:00 2001 From: pelya Date: Mon, 26 Mar 2012 13:46:37 +0300 Subject: [PATCH] Added readme to MilkyTracker project. --- .../application/fheroes2/AndroidAppSettings.cfg | 2 +- .../milkytracker/AndroidAppSettings.cfg | 2 ++ project/jni/application/milkytracker/readme.txt | 17 +++++++++++++++++ project/jni/application/src | 2 +- 4 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 project/jni/application/milkytracker/readme.txt diff --git a/project/jni/application/fheroes2/AndroidAppSettings.cfg b/project/jni/application/fheroes2/AndroidAppSettings.cfg index feeeb839a..b4fd20f68 100644 --- a/project/jni/application/fheroes2/AndroidAppSettings.cfg +++ b/project/jni/application/fheroes2/AndroidAppSettings.cfg @@ -39,7 +39,7 @@ ResetSdlConfigForThisVersion=n DeleteFilesOnUpgrade="libsdl-DownloadFinished-5.flag libsdl-DownloadFinished-6.flag libsdl-DownloadFinished-7.flag libsdl-DownloadFinished-8.flag libsdl-DownloadFinished-9.flag libsdl-DownloadFinished-10.flag libsdl-DownloadFinished-11.flag libsdl-DownloadFinished-12.flag libsdl-DownloadFinished-13.flag libsdl-DownloadFinished-14.flag" CompiledLibraries="sdl_net sdl_mixer sdl_image sdl_ttf png intl" CustomBuildScript=n -AppCflags='-finline-functions -O2 -DWITH_ZLIB -DWITH_MIXER -DWITH_XML -DWITH_IMAGE -DWITH_TTF -DWITH_AI=simple -DWITH_DEBUG' # -DWITH_NET # network is disabled in rev 2761 +AppCflags='-finline-functions -O2 -DWITH_ZLIB -DWITH_MIXER -DWITH_XML -DWITH_IMAGE -DWITH_TTF -DWITH_AI=simple -DWITH_DEBUG -DWITH_EDITOR' # -DWITH_NET # network is disabled in rev 2761 AppLdflags='' AppSubdirsBuild='fheroes2/src/engine/* fheroes2/src/xmlccwrap/* fheroes2/src/fheroes2/ai fheroes2/src/fheroes2/ai/simple fheroes2/src/fheroes2/agg fheroes2/src/fheroes2/algorithm fheroes2/src/fheroes2/army fheroes2/src/fheroes2/battle2 fheroes2/src/fheroes2/castle fheroes2/src/fheroes2/dialog fheroes2/src/fheroes2/editor fheroes2/src/fheroes2/game fheroes2/src/fheroes2/gui fheroes2/src/fheroes2/heroes fheroes2/src/fheroes2/image fheroes2/src/fheroes2/kingdom fheroes2/src/fheroes2/maps fheroes2/src/fheroes2/monster fheroes2/src/fheroes2/network fheroes2/src/fheroes2/objects fheroes2/src/fheroes2/pocketpc fheroes2/src/fheroes2/resource fheroes2/src/fheroes2/spell fheroes2/src/fheroes2/system fheroes2/src/fheroes2/test' AppCmdline='fheroes2' diff --git a/project/jni/application/milkytracker/AndroidAppSettings.cfg b/project/jni/application/milkytracker/AndroidAppSettings.cfg index 6fa0a8920..d4be9d125 100644 --- a/project/jni/application/milkytracker/AndroidAppSettings.cfg +++ b/project/jni/application/milkytracker/AndroidAppSettings.cfg @@ -14,6 +14,7 @@ SwVideoMode=y SdlVideoResize=y SdlVideoResizeKeepAspect=n CompatibilityHacks=y +CompatibilityHacksStaticInit=n AppUsesMouse=y AppNeedsTwoButtonMouse=y ShowMouseCursor=y @@ -35,6 +36,7 @@ MultiABI=n AppVersionCode=0908504 AppVersionName="0.90.85.04" ResetSdlConfigForThisVersion=y +DeleteFilesOnUpgrade="%" CompiledLibraries="jpeg png zzip" CustomBuildScript=y AppCflags='' diff --git a/project/jni/application/milkytracker/readme.txt b/project/jni/application/milkytracker/readme.txt new file mode 100644 index 000000000..4ad2b43b1 --- /dev/null +++ b/project/jni/application/milkytracker/readme.txt @@ -0,0 +1,17 @@ +You should download the SDL for Andorid repository from https://github.com/pelya/commandergenius +and also the MilkyTracker sources - extract them to the directory project/jni/application/milkytracker in the SDL repo. +To compile you will need to install need a recent Android SDK and NDK r7b, and put the dirs +android-ndk-r7b +android-ndk-r7b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin +android-sdk-linux +android-sdk-linux/tools +android-sdk-linux/platform-tools +into your $PATH, then you'll need to go to the SDL repo root and run commands +rm project/jni/application/src +ln -s milkytracker project/jni/application/src +./ChangeAppSettings.sh -a +android update project -p project -t android-12 +./build.sh +and that should be it - it will compile an .apk file and will try to install it onto your device, if it's connected. +You'll need to do all of this on Linux or MacOsX, Windows is not supported +(but you may try to set up a Linux environment on Windows using https://sourceforge.net/projects/portableubuntu/ for example). diff --git a/project/jni/application/src b/project/jni/application/src index 59d41f41e..9cdf4a8cf 120000 --- a/project/jni/application/src +++ b/project/jni/application/src @@ -1 +1 @@ -fheroes2 \ No newline at end of file +milkytracker \ No newline at end of file