Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/faaxm/lipo-dir-merge
Combine libraries of different architectures in different directory trees into universal binaries
https://github.com/faaxm/lipo-dir-merge
Last synced: about 4 hours ago
JSON representation
Combine libraries of different architectures in different directory trees into universal binaries
- Host: GitHub
- URL: https://github.com/faaxm/lipo-dir-merge
- Owner: faaxm
- License: gpl-3.0
- Created: 2023-08-07T17:30:20.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-30T13:03:00.000Z (17 days ago)
- Last Synced: 2024-10-30T14:19:05.456Z (17 days ago)
- Language: Python
- Size: 14.6 KB
- Stars: 11
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: License.txt
Awesome Lists containing this project
README
# lipo-dir-merge
This script helps you easily build universal static libraries for macOS.
It takes two directory trees, containing the library, its headers and any other related documents for each architecture (e.g. x86 and ARM) and then merges them to produce a single directory with the universal binary.
While traversing both source directory trees, all files without the `.a` extension are copied from the first tree into the output directory. If a static library is found, it is looked up in the second directory tree and both versions are merged using `lipo`.
Run it like this:
```
$ python3 lipo-dir-merge.py
```## Resources
* [A blog post on using lipo to build universal binaries](https://www.f-ax.de/dev/2021/01/15/build-fat-macos-library.html)
* [A blog post on building universal binaries with vcpkg](https://www.f-ax.de/dev/2022/11/09/how-to-use-vcpkg-with-universal-binaries-on-macos/)