Bruno Lopes
d6b352c13c
tools: Check LC_BUILD_VERSION before copying .dylibs
...
We should avoid macOS version mismatch on custom built libraries.
(cherry picked from commit c8fd1d356a )
2026-01-05 22:26:20 -03:00
Bruno Lopes
2a5846cb62
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.
(cherry picked from commit 9a598a6fcd )
2026-01-03 15:11:40 -03:00
Bruno Lopes
a8349a5ff8
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.
(cherry picked from commit c51fd7843f )
2025-12-30 19:30:45 -03:00
Bruno Lopes
8a7ea76e5b
tools: Add comment and fix variable on "codesign" section
...
(cherry picked from commit cc44ae4579 )
2025-12-30 15:36:38 -03:00
Bruno Lopes
b12583d86e
tools: Ad-hoc sign macOS binaries after LC_RPATH wizardry
...
This is needed for M-series chips.
(cherry picked from commit 45c76ffb16 )
2025-12-30 10:38:06 -03:00
Bruno Lopes
f225033835
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.
(cherry picked from commit eb621a13b7 )
2025-12-30 10:38:06 -03:00
Bruno Lopes
c454bc6d02
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.
(cherry picked from commit 1b0492aff9 )
2025-12-30 10:37:50 -03:00
Bruno Lopes
9e5ed66ac1
tools: Add MSVC's dumpbin support to lib_bundle.py
...
(cherry picked from commit 4356895b73 )
2025-12-26 16:17:28 -03:00
Bruno Lopes
8472a30df3
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.
(cherry picked from commit 8c0f92b39a )
2025-12-26 16:17:28 -03:00