fixed the fucking linker on the vst!!!

This commit is contained in:
Alex Janka 2023-10-05 21:38:38 +11:00
parent a2e795296d
commit 3349576aa1
2 changed files with 19 additions and 15 deletions

View file

@ -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"]

View file

@ -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)