Files
yuzu/CMakeModules/CopyYuzuFFmpegDeps.cmake
Kyle K ca1c4bf307 remove an error from end of Visual Studio build process
I built yuzu with MSVC today (Visual Studio 2022 hype?), and at the very bottom there was a message stating

27>'/NJH' is not recognized as an internal or external command,
27>operable program or batch file.

The cause of this is a newline at the end of the requirements.txt in the precompiled ffmpeg dlls

Flags intended to be sent to robocopy are instead attempted to be executed as a command.

As this is normal, I believe the build scripts need to adjust to fit what is provided.

externals/cmake-modules/WindowsCopyFiles.cmake has the actual invocation of robocopy

The precompiled dlls are from here, and will be in build/externals
https://github.com/yuzu-emu/ext-windows-bin/tree/master/ffmpeg
2022-04-25 07:33:27 -07:00

8 lines
407 B
CMake

function(copy_yuzu_FFmpeg_deps target_dir)
include(WindowsCopyFiles)
set(DLL_DEST "${CMAKE_BINARY_DIR}/bin/$<CONFIG>/")
file(READ "${FFmpeg_PATH}/requirements.txt" FFmpeg_REQUIRED_DLLS)
string(REGEX REPLACE "\n$" "" FFmpeg_REQUIRED_DLLS "${FFmpeg_REQUIRED_DLLS}")
windows_copy_files(${target_dir} ${FFmpeg_DLL_DIR} ${DLL_DEST} ${FFmpeg_REQUIRED_DLLS})
endfunction(copy_yuzu_FFmpeg_deps)