@@ -13,8 +13,11 @@ Function ThrowIfError($exitCode, $module)
1313 }
1414}
1515
16- $ErrorActionPreference = " Stop"
17- Import-Module Pscx
16+ # $ErrorActionPreference = "Stop"
17+
18+ echo $env: Path
19+ Get-Command nmake
20+ Get-Command link
1821
1922$x64Dir = If ($x64 ) { " \x64" } Else { " " }
2023$distname = If ($x64 ) { " win64" } Else { " win32" }
@@ -23,9 +26,7 @@ $vcvarsarch = If($x64) { "amd64" } Else { "x86" }
2326
2427Set-Location $PSScriptRoot
2528
26- Import-VisualStudioVars - VisualStudioVersion 140 - Architecture $vcvarsarch
27-
28- Set-Location .\libiconv\MSVC14
29+ Set-Location .\libiconv\MSVC16
2930msbuild libiconv.sln / p:Configuration= Release / p:Platform= $vcarch / t:libiconv_static
3031ThrowIfError $LastExitCode " libiconv"
3132If ($x64 ) {
@@ -77,14 +78,15 @@ Set-Location ..
7778# xmlsec
7879Set-Location .\xmlsec\win32
7980cscript configure.js lib= " $zlibLib ;$iconvLib ;$xmlLib ;$sslLib ;$xsltLib " include= " $zlibInc ;$iconvInc ;$xmlInc ;$sslInc ;$xsltInc " iconv= yes xslt= yes unicode= yes static = yes with- dl= no
81+ nmake xmlseca
8082$p = Start-Process - NoNewWindow - Wait - PassThru nmake xmlseca
8183ThrowIfError $p.ExitCode " xmlsec"
8284$xmlsecLib = Join-Path (pwd) binaries
8385$xmlsecInc = Join-Path (pwd) ..\include
8486Set-Location ../ ..
8587
8688# Pushed by Import-VisualStudioVars
87- Pop-EnvironmentBlock
89+ # Pop-EnvironmentBlock
8890
8991# Bundle releases
9092Function BundleRelease ($name , $lib , $inc )
@@ -99,7 +101,8 @@ Function BundleRelease($name, $lib, $inc)
99101 Copy-Item - Recurse $inc .\dist\$name \include
100102 Get-ChildItem - File - Recurse .\dist\$name \include | Where {$_.Name -NotMatch " .h$" } | Remove-Item
101103
102- Write-Zip .\dist\$name .\dist\$name.zip
104+ # Write-Zip .\dist\$name .\dist\$name.zip
105+ Compress-Archive - Path .\dist\$name - DestinationPath .\dist\$name.zip
103106 Remove-Item - Recurse - Path .\dist\$name
104107}
105108
0 commit comments