Build SDL library for Windows with Visual Studio 2019

Hello,

I know I can dowload SDL libraries zip file from SDL download page. But I decided to build them manually. I did git clone https://github.com/libsdl-org/SDL.git and run winrtbuild.bat from build-scripts folder. Got many errors like:


Remove-Item : Cannot find path ‘C:\projects\boilerWin\SDL2\VisualC-WinRT\lib\WinRT81\x64’ because it does not exist.

Remove-Item : Cannot find path ‘C:\projects\boilerWin\SDL2\VisualC-WinRT\lib\UWP\Win32’ because it does not exist.

What I do wrong?
How to build lib files for 32/64 bit Windows?

Just open VisualC/SDL.sln manually via MSVS, do an upgrade to VS2019 (you will be asked) and build solution.