diff options
author | Ankit Meel <ankitjmeel@gmail.com> | 2021-08-03 18:19:40 +0300 |
---|---|---|
committer | Ankit Meel <ankitjmeel@gmail.com> | 2021-08-03 18:19:40 +0300 |
commit | 652fbc200500497a67bd11d18b786587ba34e3d9 (patch) | |
tree | c08748c1d77552fbb3f8af0df7e3d6c1d8c302d5 /build_files/build_environment | |
parent | a25a1f39aa1de148605b85ee5f18e52e8038c303 (diff) |
macOS: Portable builds with dynamic libraries.
For Blender.app: dropping libomp.dylib next to Blender executable is
enough for it getting picked up since `@executable_path` is an rpath.
For non-distributed binaries datatoc, makesdna, tests etc, code for
copying libomp.dylib to build folder is removed and replaced by
CMake's rpath option for *build* tree.
For bpy.so, the post build rpath change has also been replaced by CMake
rpath option for *install* tree.
Since -id has been changed in D11748, remove the
`install_name_tool -change ...` command.
Any dylib can just be dropped at `MAC_BLENDER_TARGET_DYLIBS_DIR`
hereafter. Appending dylib path to `CMAKE_BUILD_RPATH` will be needed
for datatoc etc if linked against one (instead of copying the
dylibs around).
Reviewed By: #platform_macos, brecht
Differential Revision: https://developer.blender.org/D11997
Diffstat (limited to 'build_files/build_environment')
0 files changed, 0 insertions, 0 deletions