Skip to content

Convenient scripts to configure the freetype toolchain for iOS and Android support.

License

Notifications You must be signed in to change notification settings

Gerjo/freetype_ios_android

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

freetype_ios_android

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.

Usage:

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.

iOS notes:

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?)

Android notes:

The Android static library will only contain arm7 instructions. The script could easily be adjusted to include MIPS and i386 instructions.

Compatibility:

The scripts are only tested on OS X 10.8 and 10.11.1 - The Android script may work on Linux, too.

Contact:

Gerard - gerjoo[at]gmail[dot]com

License:

Both buildscripts are released under the MIT license, you will find this license attached to this repository in a separate file.

About

Convenient scripts to configure the freetype toolchain for iOS and Android support.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published