Skip to content

Combine libraries of different architectures in different directory trees into universal binaries

License

Notifications You must be signed in to change notification settings

faaxm/lipo-dir-merge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

lipo-dir-merge

This script helps you easily build universal static libraries for macOS.

It takes two directory trees, containing the libraries and any other files for each architecture (e.g. x64 and ARM) and then merges them to produce a single directory with the universal binary.

While traversing both directory trees, all files which are static libraries (.a files) or mach-O binaries (Typically .dylib or executable) are looked up in the second directory tree and both versions are merged using lipo. Any other files will be copied into the target directory.

Run it like this:

$ python3 lipo-dir-merge.py <arm64-dir-tree> <x64-dir-tree> <universal-output-dir>

Resources

Contribute

Style is enforced by pre-commit:

pip install pre-commit
pre-commit install

About

Combine libraries of different architectures in different directory trees into universal binaries

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages