Convenient scripts to configure the FreeType2 toolchain to build static libraries for Android and iOS. These scripts offer a modern alternative to the out-of-date repositories found at https://github.com/cdave1/freetype2-android and https://github.com/cdave1/freetype2-ios.
Both scripts were part of my graduation project at Game Oven Studios. I'm releasing the scripts in the hope it will be of use to someone else, too. Each script is well-documented and contains easily configurable variables.
Get a copy of the FreeType2 source code. E.g., at http://sourceforge.net/projects/freetype/files/freetype2/
Place either buildscript 'freetype_android.sh' or 'freetype_ios.sh' in the FreeType folder. Run either script through './freetype_android.sh' or './freetype_ios.sh' (assuming they've been made executable). The build artifacts (static library) will appear in the same folder.
You may need to make the buildscripts executable, 'chmod +x freetype_ios.sh' should do the trick. Each script contains a few variables that specify SDK locations - you may need to configure those.
The iOS static library will be compatible with arm64, armv7, armv7s and i386. The latter is required for the iOS simulator. (Bitcode support enabled, but appears to be not working - Apple may use different bitcode settings?)
The Android static library will only contain arm7 instructions. The script could easily be adjusted to include MIPS and i386 instructions.
The scripts are only tested on OS X 10.8 and 10.11.1 - The Android script may work on Linux, too.
Gerard - gerjoo[at]gmail[dot]com
Both buildscripts are released under the MIT license, you will find this license attached to this repository in a separate file.