diff --git a/README.rst b/README.rst index dc270290..52490554 100644 --- a/README.rst +++ b/README.rst @@ -155,22 +155,46 @@ To connect:: $ ./test/ovpncli/ovpncli client.ovpn -Building the OpenVPN 3 client on Windows ----------------------------------------- +Building the OpenVPN 3 client for Windows +----------------------------------------- .. image:: ../../../actions/workflows/msbuild.yml/badge.svg +Building with Visual Studio +""""""""""""""""""""""""""" + Prerequisites: * Visual Studio 2019 or 2022 * CMake * vcpkg +* git :: > git clone https://github.com/OpenVPN/openvpn3.git core && cd core - > cmake -B build -S . -DCMAKE_TOOLCHAIN_FILE=\scripts\buildsystems\vcpkg.cmake -DVCPKG_OVERLAY_PORTS=deps\vcpkg-ports - > cmake --build build --config Release --target ovpncli + > set VCPKG_ROOT= + > cmake --preset win-amd64-release + > cmake --build --preset win-amd64-release --target ovpncli + +Building with MinGW +""""""""""""""""""" + +This build should work on both Windows and Linux. + +Prerequisites: + +* mingw-w64 +* CMake +* vcpkg +* git + +:: + + $ git clone https://github.com/OpenVPN/openvpn3.git core && cd core + $ export VCPKG_ROOT= + $ cmake --preset mingw-x64-release + $ cmake --build --preset mingw-x64-release --target ovpncli Testing -------