Commit graph

9 commits

Author SHA1 Message Date
Bruno Lopes
c8fd1d356a tools: Check LC_BUILD_VERSION before copying .dylibs
We should avoid macOS version mismatch on custom built libraries.
2026-01-05 22:20:03 -03:00
Bruno Lopes
9a598a6fcd tools: Support for .framework on LC_LOAD_DYLIB section of lib_bundle.py
It will not bundle the framework but now correctly point to @rpath.

This will be specially useful since we do use Python.framework on macOS.
2026-01-03 15:10:21 -03:00
Bruno Lopes
c51fd7843f tools: Some libraries can have LC_RPATH set
I confirmed that few dependencies have LC_RPATH set so
we need to change these too, not only executables.
2025-12-30 19:28:42 -03:00
Bruno Lopes
cc44ae4579 tools: Add comment and fix variable on "codesign" section 2025-12-30 15:36:06 -03:00
Bruno Lopes
45c76ffb16 tools: Ad-hoc sign macOS binaries after LC_RPATH wizardry
This is needed for M-series chips.
2025-12-30 10:36:13 -03:00
Bruno Lopes
eb621a13b7 tools: Set LC_RPATH on binaries pointing to .dylib path
And also set the adjacent LC_LOAD_DYLIB and LC_ID_DYLIB.
All the 3 vars are needed for relocatable .app bundles.
2025-12-29 13:09:47 -03:00
Bruno Lopes
1b0492aff9 tools: Contents/Frameworks is the standard for libraries on macOS
See: https://developer.apple.com/library/archive/documentation/CoreFoundation/Conceptual/CFBundles/BundleTypes/BundleTypes.html#//apple_ref/doc/uid/10000123i-CH101-SW19

I confirmed checking some 3P .app bundles and
indeed they do not use Contents/Resources/lib for libs.
2025-12-29 13:09:04 -03:00
Bruno Lopes
4356895b73 tools: Add MSVC's dumpbin support to lib_bundle.py 2025-12-26 15:22:14 -03:00
Bruno Lopes
8c0f92b39a build, tools: Add initial macOS support to lib_bundle.py
It will be useful later in my WIP work to move macOS scripts to GIMP infra.
2025-12-26 15:22:02 -03:00
Renamed from build/windows/2_bundle-gimp-uni_dep.py (Browse further)