Skip to content

Utility for building libraries as fat .a files for iOS projects

License

Notifications You must be signed in to change notification settings

asivitz/build-fat-library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

build-fat-library

Utility for building libraries as fat .a files for iOS projects

This script executes a ./configure and make sequence to build a library three times for three architectures for iOS projects. Then, it combines the resulting libraries into one fat archive.

Example

Build libpng as a fat .a library for iPhone Simulator (i386), and iPhone/iPad (armv7 and armv7s)

Run this command from outside the libpng src folder.

$ sh build-fat-library -j4 -l .libs libpng-1.6.10/

The final argument is the name of the source folder to build in. Because the libpng build process places libpng16.a in libpng-1.6.10/.libs, the -l flag tells the script to look there for the resulting build library. The default is lib/. The resulting fat lib is placed in fat-lib/

$ file libpng-1.6.10/fat-lib/libpng16.a
libpng-1.6.10/fat-lib/libpng16.a: Mach-O universal binary with 3 architectures
libpng-1.6.10/fat-lib/libpng16.a (for architecture i386):	current ar archive random library
libpng-1.6.10/fat-lib/libpng16.a (for architecture armv7):	current ar archive random library
libpng-1.6.10/fat-lib/libpng16.a (for architecture armv7s):	current ar archive random library

About

Utility for building libraries as fat .a files for iOS projects

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages