aboutsummaryrefslogtreecommitdiff
path: root/msvc-build.bat
diff options
context:
space:
mode:
authorLev Stipakov2018-09-28 16:26:49 +0300
committerGert Doering2018-10-01 08:16:29 +0200
commitb70b2fc248147c1e7f22042e75fcd0a03d912151 (patch)
tree3ff019fe621b0e2d6523c355b2f82bcf62124f7e /msvc-build.bat
parent5544f47b0eb31e516aa8afbb68579e35e69cf7e7 (diff)
downloadopenvpn-b70b2fc248147c1e7f22042e75fcd0a03d912151.zip
openvpn-b70b2fc248147c1e7f22042e75fcd0a03d912151.tar.gz
win: support for Visual Studio 2017
This patch enables building openvpn with Visual Studio 2017. It is advised to use openvpn-build/msvs/build.bat which also downloads and build required dependencies. Changes made: - updated path to Visual Studio toolchain - updated platform toolset - added missing libraries - added x64 configurations - enabled AEAD ciphers to make NCP work - enabled unicode support - updated source files in project settings - fix includes - restored variable which was erroneously removed - added properties file which sets required env variables (required to build with IDE) - etc Signed-off-by: Lev Stipakov <lev@openvpn.net> Acked-by: Simon Rozman <simon@rozman.si> Message-Id: <1538141209-32330-1-git-send-email-lstipakov@gmail.com> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg17499.html Signed-off-by: Gert Doering <gert@greenie.muc.de>
Diffstat (limited to 'msvc-build.bat')
-rw-r--r--msvc-build.bat6
1 files changed, 4 insertions, 2 deletions
diff --git a/msvc-build.bat b/msvc-build.bat
index fd6d558..8256c62 100644
--- a/msvc-build.bat
+++ b/msvc-build.bat
@@ -7,13 +7,15 @@ setlocal ENABLEDELAYEDEXPANSION
cd /d %0\..
call msvc-env.bat
-set PLATFORMS=Win32
-set CONFIGURATIONS=Release
+set PLATFORMS=x64
+set CONFIGURATIONS=Debug Release
if exist "%VCHOME%\vcvarsall.bat" (
call "%VCHOME%\vcvarsall.bat"
) else if exist "%VCHOME%\bin\vcvars32.bat" (
call "%VCHOME%\bin\vcvars32.bat"
+) else if exist "%VCHOME%\Auxiliary\Build\vcvars32.bat" (
+ call "%VCHOME%\Auxiliary\Build\vcvars32.bat"
) else (
echo Cannot detect visual studio
goto error