Add MSVC compilation instructions

This commit is contained in:
Robin Lindén 2018-02-06 23:09:36 +01:00
parent f2857932d2
commit 0fbdb03f40
No known key found for this signature in database
GPG Key ID: 601A604B7E605776

View File

@ -140,7 +140,20 @@ make install
###### Microsoft Visual Studio's Developer Command Prompt
There are currently no instructions on how to build toxcore on Windows host in Microsoft Visual Studio's Developer Command Prompt. Contribution of the instructions is welcome!
In addition to meeting the [requirements](#requirements), you need a version of Visual Studio (the [community edition](https://www.visualstudio.com/vs/visual-studio-express/) is enough) and a CMake version that's compatible with the Visual Studio version you're using.
You must also ensure that the msvc versions of dependencies you're using are placed in the correct folders.
For libsodium that is `c-toxcore/libsodium`, and for pthreads-w32, it's `c-toxcore/pthreads-win32`
Once all of this is done, from the **Developer Command Prompt for VS**, simply run
```
mkdir _build
cd _build
cmake ..
msbuild ALL_BUILD.vcxproj
```
###### MSYS/Cygwin