diff options
author | Robin Lindén <dev@robinlinden.eu> | 2018-02-06 23:09:36 +0100 |
---|---|---|
committer | Robin Lindén <dev@robinlinden.eu> | 2018-02-08 18:41:49 +0100 |
commit | 0fbdb03f409f97299d27ba014b554e6313c5fb7f (patch) | |
tree | 66ac7a04e2b1fa9e66df134825f43a71db19dd7b /INSTALL.md | |
parent | f2857932d2521bba53863e151266e04fdebe8544 (diff) |
Add MSVC compilation instructions
Diffstat (limited to 'INSTALL.md')
-rw-r--r-- | INSTALL.md | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -140,7 +140,20 @@ make install | |||
140 | 140 | ||
141 | ###### Microsoft Visual Studio's Developer Command Prompt | 141 | ###### Microsoft Visual Studio's Developer Command Prompt |
142 | 142 | ||
143 | 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! | 143 | 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. |
144 | |||
145 | You must also ensure that the msvc versions of dependencies you're using are placed in the correct folders. | ||
146 | |||
147 | For libsodium that is `c-toxcore/libsodium`, and for pthreads-w32, it's `c-toxcore/pthreads-win32` | ||
148 | |||
149 | Once all of this is done, from the **Developer Command Prompt for VS**, simply run | ||
150 | |||
151 | ``` | ||
152 | mkdir _build | ||
153 | cd _build | ||
154 | cmake .. | ||
155 | msbuild ALL_BUILD.vcxproj | ||
156 | ``` | ||
144 | 157 | ||
145 | ###### MSYS/Cygwin | 158 | ###### MSYS/Cygwin |
146 | 159 | ||