From 3349576aa1ae02fba6d97038813ac32c552d0147 Mon Sep 17 00:00:00 2001 From: Alex Janka Date: Thu, 5 Oct 2023 21:38:38 +1100 Subject: [PATCH] fixed the fucking linker on the vst!!! --- gb-vst/Cargo.toml | 2 +- scripts/patch.py | 32 ++++++++++++++++++-------------- 2 files changed, 19 insertions(+), 15 deletions(-) diff --git a/gb-vst/Cargo.toml b/gb-vst/Cargo.toml index ea976ff..d93f649 100644 --- a/gb-vst/Cargo.toml +++ b/gb-vst/Cargo.toml @@ -8,7 +8,7 @@ name = "vst" crate-type = ["cdylib", "rlib"] [features] -default = ["pixels"] +default = ["vulkan-static"] pixels = ["gb-emu-lib/pixels-renderer"] vulkan = ["dep:raw-window-handle", "gb-emu-lib/vulkan-renderer"] vulkan-static = ["vulkan", "gb-emu-lib/vulkan-static"] diff --git a/scripts/patch.py b/scripts/patch.py index 65863c4..2bee5cf 100644 --- a/scripts/patch.py +++ b/scripts/patch.py @@ -57,22 +57,26 @@ shutil.copyfile( ) os.system( - 'install_name_tool -change "@rpath/' - + SHADERC_DYLIB_NAME - + '" "@executable_path/../Frameworks/' - + SHADERC_DYLIB_NAME - + '" ' - + executable + 'install_name_tool -add_rpath "@loader_path/../Frameworks/" "' + executable + '"' ) -os.system( - 'install_name_tool -change "@rpath/' - + VULKAN_DYLIB_NAME - + '" "@executable_path/../Frameworks/' - + VULKAN_DYLIB_NAME - + '" ' - + executable -) +# os.system( +# 'install_name_tool -change "@rpath/' +# + SHADERC_DYLIB_NAME +# + '" "@executable_path/../Frameworks/' +# + SHADERC_DYLIB_NAME +# + '" ' +# + executable +# ) + +# os.system( +# 'install_name_tool -change "@rpath/' +# + VULKAN_DYLIB_NAME +# + '" "@executable_path/../Frameworks/' +# + VULKAN_DYLIB_NAME +# + '" ' +# + executable +# ) os.system("codesign -f -s - " + bundle_path) os.system("codesign -f -s - " + executable)