mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-15 00:05:45 -04:00
Qt: Fix Mac dylib not being included
This commit is contained in:
@ -241,6 +241,10 @@ elseif(APPLE)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# Copy shaderc into the bundle
|
||||
target_sources(duckstation-qt PRIVATE "${SHADERC_LIBRARY}")
|
||||
set_source_files_properties("${SHADERC_LIBRARY}" PROPERTIES MACOSX_PACKAGE_LOCATION Frameworks)
|
||||
|
||||
# Copy icon into the bundle
|
||||
target_sources(duckstation-qt PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/DuckStation.icns")
|
||||
set_source_files_properties("${CMAKE_CURRENT_SOURCE_DIR}/DuckStation.icns" PROPERTIES MACOSX_PACKAGE_LOCATION Resources)
|
||||
|
@ -1150,7 +1150,14 @@ bool dyn_shaderc::Open()
|
||||
return true;
|
||||
|
||||
Error error;
|
||||
if (!s_library.Open(DynamicLibrary::GetVersionedFilename("shaderc_shared").c_str(), &error))
|
||||
|
||||
#ifdef _WIN32
|
||||
const std::string libname = DynamicLibrary::GetVersionedFilename("shaderc_shared");
|
||||
#else
|
||||
// Use versioned, bundle post-processing adds it..
|
||||
const std::string libname = DynamicLibrary::GetVersionedFilename("shaderc_shared", 1);
|
||||
#endif
|
||||
if (!s_library.Open(libname.c_str(), &error))
|
||||
{
|
||||
Log_ErrorFmt("Failed to load shaderc: {}", error.GetDescription());
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user