blob: ff2b9f2d1c385a52f5fc6efa2041fd156f6d9360 [file] [log] [blame]
Gilles Peskinea4a8f042020-04-26 00:33:28 +02001@rem Build and test Mbed TLS with Visual Studio using msbuild.
2@rem Usage: windows_msbuild [RETARGET]
3@rem RETARGET: version of Visual Studio to emulate
4@rem https://docs.microsoft.com/en-us/cpp/build/how-to-modify-the-target-framework-and-platform-toolset
5
6@rem These parameters are hard-coded for now.
7set "arch=x64" & @rem "x86" or "x64"
8set "cfg=Release" & @rem "Debug" or "Release"
9set "vcvarsall=C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvarsall.bat"
10
11if not "%~1"=="" set "retarget=,PlatformToolset=%1"
12
13@rem If the %USERPROFILE%\Source directory exists, then running
14@rem vcvarsall.bat will silently change the directory to that directory.
15@rem Setting the VSCMD_START_DIR environment variable causes it to change
16@rem to that directory instead.
Dave Rodgman378ecdd2023-01-10 15:08:30 +000017set "VSCMD_START_DIR=%~dp0\..\visualc\VS2013"
Gilles Peskinea4a8f042020-04-26 00:33:28 +020018
19"%vcvarsall%" x64 && ^
20msbuild /t:Rebuild /p:Configuration=%cfg%%retarget% /m mbedTLS.sln