29 Install-Module VSSetup -Scope CurrentUser
31 Get-VSSetupInstance -All
33 If ($env:Platform -Match "x86") {
34 $env:VCVARS_PLATFORM="x86"
35 $env:TARGET="VC-WIN32 no-asm --strict-warnings"
37 $env:VCVARS_PLATFORM="amd64"
38 $env:TARGET="VC-WIN64A-masm"
41 If ($env:Configuration -Match "shared") {
42 $env:CONFIG_OPTS="enable-fips"
43 } ElseIf ($env:Configuration -Match "minimal") {
44 $env:CONFIG_OPTS="no-bulk no-asm -DOPENSSL_SMALL_FOOTPRINT"
46 $env:CONFIG_OPTS="no-fips no-shared"
48 - call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %VCVARS_PLATFORM%
51 - perl ..\Configure %TARGET% no-makedepend %CONFIG_OPTS%
52 - perl configdata.pm --dump
55 If ($env:BUILDONLY -or $env:MAKEVERBOSE) {
61 gci env:* | sort-object name
65 - "%NMAKE% build_all_generated"
66 - "%NMAKE% PERL=no-perl"
72 if ($env:Configuration -Match "plain") {
73 cmd /c "%NMAKE% test VERBOSE_FAILURE=yes 2>&1"
75 cmd /c "%NMAKE% test VERBOSE_FAILURE=yes TESTS=-test_fuzz 2>&1"
78 if ($env:Configuration -Match "shared") {
80 cmd /c "%NMAKE% install DESTDIR=..\_install 2>&1"