mac connect executables with bundled dylibs

This commit is contained in:
2024-07-01 12:59:37 -06:00
parent 0630dd27d2
commit c6bd39509d
2 changed files with 42 additions and 0 deletions

View File

@@ -449,6 +449,8 @@ if platform == "darwin":
target_dir = path.join(install_dir, targ + '.app', 'Contents/Frameworks')
binary = path.join(install_dir, targ + '.app', 'Contents/MacOS', targ)
env.Command(Dir(target_dir), binary, [Delete(target_dir), bundle_libraries_for])
# After building, fix the rpaths of the executables and their bundled libs:
atexit.register(lambda: subprocess.call(['.github/workflows/scripts/mac/fix-rpaths.sh']))
elif platform == "win32":
bundled_libs += Split("""
libsndfile-1