Skip to content

Commit 5fe1049

Browse files
committed
Tweak windows build instructions
1 parent 1e0a211 commit 5fe1049

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

BUILDING.md

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,22 +60,29 @@ $ ninja
6060
## Windows / Visual Studio
6161

6262
On Windows, you can use the [vcpkg](https://github.com/microsoft/vcpkg/) package manager.
63+
The following instructions assume that you will follow the vcpkg recommendations and install
64+
vcpkg as a subfolder. If you want to install vcpkg somewhere else, you're on your own.
65+
See the [quick start](https://github.com/microsoft/vcpkg/#quick-start-windows) for more info.
6366

64-
### vcpkg
67+
First, bootstrap vcpkg. From the root folder of your GameNetworkingSockets workspace:
6568

66-
Follow the [quick start](https://github.com/microsoft/vcpkg/#quick-start-windows) instructions to set up vcpkg,
67-
and to integrate it with Visual Studio.
69+
```
70+
> git clone https://github.com/microsoft/vcpkg
71+
> .\vcpkg\bootstrap-vcpkg.bat
72+
```
6873

69-
To build GameNetworking sockets:
74+
The following command will build the prerequisites and GameNetworkingSockets.
75+
You can use the vcpkg option `--triplet x64-windows` or `--triplet x86-windows` to force
76+
the hoice of a particular target architecture. To use libsodium as the crypto backend
77+
rather than OpenSSL, install `gamenetworkingsockets[core,libsodium]`.
7078

7179
```
72-
> .\vcpkg\vcpkg --overlay-ports=path\to\GameNetworkingSockets\vcpkg_ports install gamenetworkingsockets
80+
> .\vcpkg\vcpkg --overlay-ports=vcpkg_ports install gamenetworkingsockets
7381
```
74-
You can use the vcpkg option `--triplet x64-windows` or `--triplet x86-windows` to force the choice of a
75-
particular target architecture. The library should be immediately available in Visual Studio projects if
76-
the vcpkg integration is installed, or the vcpkg CMake toolchain file can be used for CMake-based projects.
7782

78-
To use libsodium as the crypto backend rather than OpenSSL, install `gamenetworkingsockets[core,libsodium]`.
83+
The library should be immediately available in Visual Studio projects if
84+
the vcpkg integration is installed, or the vcpkg CMake toolchain file can
85+
be used for CMake-based projects.
7986

8087
### Manual setup
8188

0 commit comments

Comments
 (0)