This package merges two directories containing static libraries for two different architectures into one directory with universal binaries. Files that don't end in ".a" or are mach-O binaries (Typically .dylib
or executable) will just be copied over from the first directory.
To install the package, use:
pip install lipomerge
Run it like this:
python3 -m lipomerge <arm64-dir-tree> <x64-dir-tree> <universal-output-dir>
- macOS
lipo
must be installed on your system.
This project is licensed under the GPL v3 license.
- A blog post on using lipo to build universal binaries
- A blog post on building universal binaries with vcpkg
Style is enforced by pre-commit:
pip install pre-commit
pre-commit install