186 | | |
| 186 | |
| 187 | == libsodium == |
| 188 | |
| 189 | Download the latest source from https://download.libsodium.org/libsodium/releases/. |
| 190 | |
| 191 | It contains a folder `builds/msvc/` with all the solutions for recent and old versions of Visual Studio. Pick yours. |
| 192 | |
| 193 | Open `Project > Properties`. |
| 194 | * Select '''All configurations''' and change the toolset to support target XP. |
| 195 | * Select all '''Debug''' configurations (either one by one or with the multiple selection tool) and change '''Target Name''' so that `d` is added to the filename base (for instance `$(TargetName)d` instead of `$(TargetName)`). |
| 196 | * Build both Dynamic configurations. |
| 197 | * Copy `bin/Win32/{Debug,Release}/[toolset]/dynamic/libsodium{d,}.dll` to `binaries/system/`. |
| 198 | * Copy `bin/Win32/{Debug,Release}/[toolset]/dynamic/libsodium{d,}.lib` to `libraries/win32/libsodium/lib/`. |
| 199 | * Copy headers to `libraries/win32/libsodium/include/`. It looks like the build doesn't create a minimal folder of headers, so my advice is downloading the zip with prebuilt libs for msvc from [https://download.libsodium.org/libsodium/releases/ the download page] and using the `include` folder from that. |
| 200 | |