Commit graph

6 commits

Author SHA1 Message Date
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
Renamed from build/windows/2_bundle-gimp-uni_dep.py (Browse further)