Skip to content

Commit

Permalink
Change id via install_name_tool and use @rpath (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
misl6 authored Feb 4, 2024
1 parent c90540b commit a237803
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/angle_builder/angle.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,27 @@ def _create_macos_dylibs(self, output_artifact_mode: str) -> list:
check=True,
)

# By using install_name_tool, we can change the dylib's id to @rpath/*.dylib
subprocess.run(
[
"install_name_tool",
"-id",
"@rpath/libEGL.dylib",
libEGL_dylib_path,
],
check=True,
)

subprocess.run(
[
"install_name_tool",
"-id",
"@rpath/libGLESv2.dylib",
libGLESv2_dylib_path,
],
check=True,
)

return [libEGL_dylib_path, libGLESv2_dylib_path]

def build(self, output_artifact_mode: str, output_folder: str) -> None:
Expand Down

0 comments on commit a237803

Please sign in to comment.