3 echo "Setting visual studio variables"
5 call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %VCVARS_PLATFORM%
8 echo "Setting PATH and other variables"
10 set PATH=%PATH%;%PYTHON_PATH%
15 python Configure.py %CONFIGURE_OPTIONS% || goto :error
17 msbuild softhsm2.sln /p:Configuration="Release" /p:Platform="%MSBUILD_PLATFORM%" /p:PlatformToolset=v140 /target:Build || goto :error
21 IF "%ENV_PLATFORM%"=="x86" (set from_dir=%CD%\win32\Release) ELSE (set from_dir=%CD%\win32\x64\Release)
26 cryptotest.exe || goto :error
27 datamgrtest.exe || goto :error
28 handlemgrtest.exe || goto :error
29 objstoretest.exe || goto :error
30 p11test.exe || goto :error
31 sessionmgrtest.exe || goto :error
32 slotmgrtest.exe || goto :error
34 echo "Preparing output package"
35 copy %from_dir%\softhsm2.dll %RELEASE_DIR% || goto :error
36 copy %from_dir%\softhsm2-dump-file.exe %RELEASE_DIR% || goto :error
37 copy %from_dir%\softhsm2-keyconv.exe %RELEASE_DIR% || goto :error
38 copy %from_dir%\softhsm2-util.exe %RELEASE_DIR% || goto :error
39 copy %cur_dir%\src\lib\common\softhsm2.conf.in %RELEASE_DIR%\softhsm2.conf || goto :error
43 @echo *** BUILD SUCCESSFUL ***
49 @echo *** BUILD FAILED ***