1@echo off
2pushd "%~dp0"
3
4if exist Debug rd /s /q Debug
5if exist Release rd /s /q Release
6if exist x64 rd /s /q x64
7if exist NoTLS rd /s /q NoTLS
8
9cd ..
10
11REM Need to set OPENSSL_INSTALL_PATH so we can build with OpenSSL
12IF EXIST "C:\Program Files\OpenSSL\include\openssl\ssl.h" (
13  SET "OPENSSL_INSTALL_PATH=C:\Program Files\OpenSSL\"
14) ELSE (
15  SET "OPENSSL_INSTALL_PATH=C:\Program Files\OpenSSL-Win64\")
16)
17
18echo OPENSSL_INSTALL_PATH = %OPENSSL_INSTALL_PATH%
19
20rem MSBuild.exe ./win32/libcoap.sln /p:Configuration=NoTLS /p:Platform=x64 /warnaserror
21MSBuild.exe ./win32/libcoap.sln /p:Platform=x64 /warnaserror
22
23:exit
24popd
25@echo on
26