Difference between revisions of "Compiling ScummVM/Android-SDL"

Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 2: Line 2:


This page describes how to build the [[Android-SDL]] port of ScummVM (supporting SDL 1.2) from the ScummVM source tree.
This page describes how to build the [[Android-SDL]] port of ScummVM (supporting SDL 1.2) from the ScummVM source tree.
{| border="0" cellpadding="1" cellspacing="2" style="margin-left:5em; background:#FF9999; width:80%"
|- align="center"
| '''NOTE'''
|- style="margin-left:1em; background:#ffffff;"
|- style="background:#ffffff"
| Please note that the Android''-SDL'' port is considered deprecated, which means it is no longer under active development or maintenance. Thus, the information on this page will be outdated and we will no longer be providing official support for this port.
You may find instructions on how to compile our currently active [[Compiling_ScummVM/Android|Android port here]].
|}


= Basic prerequisites =
= Basic prerequisites =
Line 16: Line 26:


This guide assumes that you create an "''~/Android''" folder inside your home directory to put the ''Android SDK'' and ''NDK''.
This guide assumes that you create an "''~/Android''" folder inside your home directory to put the ''Android SDK'' and ''NDK''.
=== Install Android SDK command line tools only ===
=== Install Android SDK with command line tools only ===
Navigate to url: https://developer.android.com/studio/index.html<br />
Navigate to url: https://developer.android.com/studio/index.html<br />
Download the "''Command line tools only''" packet for Linux ("''sdk-tools-linux-4333796.zip''" at the time of this writing).
Download the "''Command line tools only''" packet for Linux ("''sdk-tools-linux-4333796.zip''" at the time of this writing).
Line 71: Line 81:
* In order to build the scummvm androidsdl port for specific engines only:
* In order to build the scummvm androidsdl port for specific engines only:
*# Open the "''~/scummvm/dists/androidsdl/scummvm/AndroidBuild.sh''" file
*# Open the "''~/scummvm/dists/androidsdl/scummvm/AndroidBuild.sh''" file
*# Find the following line which contains the configure command:<syntaxhighlight lang="sh">$ANDROIDSDL/project/jni/application/setEnvironment-$1.sh sh -c "cd scummvm/bin-$1 && env LIBS='-lflac -lvorbis -logg -lmad -lz -lgcc -ltheora -lpng -lfreetype -lfaad -lgnustl_static' ../configure --host=androidsdl-$1 --enable-zlib --enable-vorbis --enable-mad --enable-flac --enable-png --enable-theoradec --disable-sdlnet --disable-libcurl --disable-cloud --enable-vkeybd --enable-release --enable-mt32emu --disable-readline --disable-nasm --disable-timidity --disable-fluidsynth --datadir=. "</syntaxhighlight>
*# Find the following line which contains the configure command:<syntaxhighlight lang="sh">$ANDROIDSDL/project/jni/application/setEnvironment-$1.sh sh -c "cd scummvm/bin-$1 && env LIBS='-lflac -lvorbis -logg -lmad -lz -lgcc -ltheora -lpng -lfreetype -lfaad -lgnustl_static' ../configure --host=androidsdl-$1 --enable-zlib --enable-vorbis --enable-mad --enable-flac --enable-png --enable-theoradec --disable-sdlnet --disable-libcurl --disable-cloud --enable-vkeybd --enable-release --enable-optimizations --enable-mt32emu --disable-readline --disable-nasm --disable-timidity --disable-fluidsynth --datadir=. "</syntaxhighlight>
*# Edit the line and, after "<code>../configure</code>",  add "<code>--disable-all-engines --enable-engine=YYYY</code>", where in place of "<code>YYYY</code>" you should specify game engine for which you want to build ScummVM.<br />For example (building only for the ''bladerunner'' engine):<syntaxhighlight lang="sh">$ANDROIDSDL/project/jni/application/setEnvironment-$1.sh sh -c "cd scummvm/bin-$1 && env LIBS='-lflac -lvorbis -logg -lmad -lz -lgcc -ltheora -lpng -lfreetype -lfaad -lgnustl_static' ../configure --host=androidsdl-$1 --disable-all-engines --enable-engine=bladerunner --enable-zlib --enable-vorbis --enable-mad --enable-flac --enable-png --enable-theoradec --disable-sdlnet --disable-libcurl --disable-cloud --enable-vkeybd --enable-release --enable-mt32emu --disable-readline --disable-nasm --disable-timidity --disable-fluidsynth --datadir=. "</syntaxhighlight>
*# Edit the line and, after "<code>../configure</code>",  add "<code>--disable-all-engines --enable-engine=YYYY</code>", where in place of "<code>YYYY</code>" you should specify game engine for which you want to build ScummVM.<br />For example (building only for the ''bladerunner'' engine):<syntaxhighlight lang="sh">$ANDROIDSDL/project/jni/application/setEnvironment-$1.sh sh -c "cd scummvm/bin-$1 && env LIBS='-lflac -lvorbis -logg -lmad -lz -lgcc -ltheora -lpng -lfreetype -lfaad -lgnustl_static' ../configure --host=androidsdl-$1 --disable-all-engines --enable-engine=bladerunner --enable-zlib --enable-vorbis --enable-mad --enable-flac --enable-png --enable-theoradec --disable-sdlnet --disable-libcurl --disable-cloud --enable-vkeybd --enable-release --enable-mt32emu --disable-readline --disable-nasm --disable-timidity --disable-fluidsynth --datadir=. "</syntaxhighlight>


1,310

edits

Navigation menu