diff --git a/README.md b/README.md index 8405d5af..2b51b62d 100644 --- a/README.md +++ b/README.md @@ -235,6 +235,18 @@ These files are not currently included with the windows-gnu toolchain, but can b You will find the aforementioned libraries under `mingw64/x86_64-w64-mingw32/lib/` (for x86_64) or `mingw32/i686-w64-mingw32/lib/` (for i686). Copy them to your toolchain's `lib` directory (the same one you copied the SDL .a files to). +### Windows (MSVC with vcpkg) +1. Install [MS build tools](https://visualstudio.microsoft.com/downloads/) and [vcpkg](https://github.com/microsoft/vcpkg) +2. Install the needed SDL2 libs: `vcpkg.exe install sdl2-ttf:x64-windows sdl2:x64-windows` +3. Open a x64 native tools prompt (x64 Native Tools Command Prompt for VS 2019) +4. set env vars: +``` +SET PATH=%PATH%;C:\Users\my_user\dev\vcpkg\installed\x64-windows\bin +SET INCLUDE=%INCLUDE%;C:\Users\my_user\dev\vcpkg\installed\x64-windows\include +SET LIB=%LIB%;C:\Users\my_user\dev\vcpkg\installed\x64-windows\lib +``` +5. `cargo build` + ### Windows (MSVC) 1. Download MSVC development libraries from http://www.libsdl.org/ (SDL2-devel-2.0.x-VC.zip).