Since 35200a29ea
we build complete installers using CMake, meaning that there's no need for BuildUtil anymore.
MSBuild projects that are not migrated to CMake yet are kept for reference.
This commit also updates BUILD_WINDOWS.md so that it mentions Visual Studio 2019 instead of 2017.
1.6 KiB
How to build SoftEther VPN for Windows
Full Build Instructions
There are several methods for using CMake but the easiest by far is through Visual Studio 2019 by importing the CMake project directly into it. So that is what will be described below.
Requirements:
- Download Visual Studio 2019 (Community Edition is fine).
- During install, make sure to check "Desktop development with C++" under "Workloads".
- Click on individual components and scroll until you see "Visual C++ tools for CMake" under the compilers section. Make sure this is checked.
- Proceed with and finish Visual Studio 2019 installation.
- Install the needed submodules to build the project, avoiding CMake telling you to do so with:
git submodule update --init --recursive
Building:
Once both installs have finished, launch Visual Studio. Once its started go to the File menu click Open --> CMake
. Then navigate to where you
cloned the project and open the CMakeLists.txt
file in the projects root directory.
Visual Studio will proceed to start the CMake configuration process and once its finished, you can simply go to toolbar and click CMake -> Build All
.
Once it has finished, hopefully with no errors, look in the newly created /build
directory in the project's folder. Inside are the development versions
of all the SoftEtherVPN components.
Congrats, you now have a complete CMake development environment for SoftEtherVPN on Windows, enjoy and happy contributing!
Download Links:
- Visual Studio 2019 from Microsoft: https://visualstudio.microsoft.com/downloads