Build: Fix DiscordRPC not being included in Mac bundle

This commit is contained in:
Stenzek
2024-07-14 21:23:16 +10:00
parent 500fbe5ef1
commit df979d4648
3 changed files with 12 additions and 5 deletions

View File

@ -290,5 +290,10 @@ function(add_util_resources target)
else()
message(WARNING "MoltenVK not found in path, it will depend on the target system having it.")
endif()
# Copy shaderc into the bundle
get_target_property(SPIRV_CROSS_LIBRARY spirv-cross-c-shared IMPORTED_LOCATION_RELEASE)
target_sources(duckstation-qt PRIVATE "${SHADERC_LIBRARY}" "${SPIRV_CROSS_LIBRARY}")
set_source_files_properties("${SHADERC_LIBRARY}" "${SPIRV_CROSS_LIBRARY}" PROPERTIES MACOSX_PACKAGE_LOCATION Frameworks)
endif()
endfunction()