diff options
author | der richter <der.richter@gmx.de> | 2024-02-23 22:18:28 +0100 |
---|---|---|
committer | der richter <der.richter@gmx.de> | 2024-02-24 20:04:16 +0100 |
commit | 00f1743ae2fca1c3381046176ab495f846831017 (patch) | |
tree | 9ac1ce9ade75125775b8da901941f2ae349110ce /TOOLS/dylib-unhell.py | |
parent | 48f48e0d5d0bc0f3f04f2975a66991c64dc86099 (diff) | |
download | mpv-00f1743ae2fca1c3381046176ab495f846831017.tar.bz2 mpv-00f1743ae2fca1c3381046176ab495f846831017.tar.xz |
osxbundle: add homebrew vulkan loader location to search path
Diffstat (limited to 'TOOLS/dylib-unhell.py')
-rwxr-xr-x | TOOLS/dylib-unhell.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/TOOLS/dylib-unhell.py b/TOOLS/dylib-unhell.py index 5221a18e00..a029a03d9a 100755 --- a/TOOLS/dylib-unhell.py +++ b/TOOLS/dylib-unhell.py @@ -95,6 +95,9 @@ def check_vulkan_max_version(version): except: return False +def get_homebrew_prefix(): + return subprocess.check_output("brew --prefix", universal_newlines=True, shell=True).strip() + def install_name_tool_change(old, new, objfile): subprocess.call(["install_name_tool", "-change", old, new, objfile], stderr=subprocess.DEVNULL) @@ -184,6 +187,7 @@ def process_vulkan_loader(binary, loaderName, loaderRelativeFolder, libraryNode) os.path.join(os.path.expanduser("~"), ".local/share", loaderRelativeFolder), os.path.join("/usr/local/share", loaderRelativeFolder), os.path.join("/usr/share/vulkan", loaderRelativeFolder), + os.path.join(get_homebrew_prefix(), 'share', loaderRelativeFolder), ] loaderSystemFolder = "" |