Getting everything built
Requirements
- Android SDK
- Android NDK (revision 8b)
- Apache Ant
- SCons
Dependencies
SDL (1.2.15), libpng (1.2.50), lua (5.1.5), tolua++ (trunk)
Cloning
Make a directory and clone Stratagus and libs repos to it:
mkdir _some_dir_
cd _some_dir_
git clone https://github.com/drodin/Stratagus.git
git clone https://github.com/drodin/SDL.git
git clone https://github.com/drodin/libpng.git
git clone https://github.com/drodin/lua.git
git clone https://github.com/drodin/toluapp.git
Building Lua
cd lua
make _platform_
You need to specify the platform to build for. Run make without params to see the list of supported platforms.
Building tolua++
cd ../toluapp
scons
Generating tolua.cpp
cd ../Stratagus/src/tolua
./runtolua.sh
Building Stratagus apk
cd ../../android
ndk-build
ant debug
Grab your .apk in the bin directory ;)