Skip to content

Commit e549b52

Browse files
committed
try VS 2019
Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>
1 parent 7dfb3ad commit e549b52

2 files changed

Lines changed: 14 additions & 11 deletions

File tree

appveyor.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1+
image: Visual Studio 2019
12
environment:
23
matrix:
3-
- Architecture: x86
4-
Compiler: vs2015
4+
# - Architecture: x86
55
- Architecture: x64
6-
Compiler: vs2015
76
install:
87
- cmd: git submodule update --init --recursive
9-
- ps: install-module pscx -scope CurrentUser -AllowClobber
108
build: off
119
build_script:
10+
- ps: $env:Path = "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\;" + $env:Path
11+
- ps: $env:INCLUDE += ";C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\shared;C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\winrt;C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt;C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include"
1212
- ps: >-
1313
$x64param = if ($env:Architecture -eq 'x64') { $true } else { $false }
1414
.\build.ps1 -x64:$x64param

build.ps1

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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

2427
Set-Location $PSScriptRoot
2528

26-
Import-VisualStudioVars -VisualStudioVersion 140 -Architecture $vcvarsarch
27-
28-
Set-Location .\libiconv\MSVC14
29+
Set-Location .\libiconv\MSVC16
2930
msbuild libiconv.sln /p:Configuration=Release /p:Platform=$vcarch /t:libiconv_static
3031
ThrowIfError $LastExitCode "libiconv"
3132
If($x64) {
@@ -77,14 +78,15 @@ Set-Location ..
7778
# xmlsec
7879
Set-Location .\xmlsec\win32
7980
cscript 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
8183
ThrowIfError $p.ExitCode "xmlsec"
8284
$xmlsecLib = Join-Path (pwd) binaries
8385
$xmlsecInc = Join-Path (pwd) ..\include
8486
Set-Location ../..
8587

8688
# Pushed by Import-VisualStudioVars
87-
Pop-EnvironmentBlock
89+
#Pop-EnvironmentBlock
8890

8991
# Bundle releases
9092
Function 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

Comments
 (0)