windows_msbuild.bat 947 B

1234567891011121314151617181920
  1. @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. @rem These parameters are hard-coded for now.
  6. set "arch=x64" & @rem "x86" or "x64"
  7. set "cfg=Release" & @rem "Debug" or "Release"
  8. set "vcvarsall=C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvarsall.bat"
  9. if not "%~1"=="" set "retarget=,PlatformToolset=%1"
  10. @rem If the %USERPROFILE%\Source directory exists, then running
  11. @rem vcvarsall.bat will silently change the directory to that directory.
  12. @rem Setting the VSCMD_START_DIR environment variable causes it to change
  13. @rem to that directory instead.
  14. set "VSCMD_START_DIR=%~dp0\..\visualc\VS2010"
  15. "%vcvarsall%" x64 && ^
  16. msbuild /t:Rebuild /p:Configuration=%cfg%%retarget% /m mbedTLS.sln