forked from ofiwg/libfabric
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
executable file
·23 lines (20 loc) · 1.01 KB
/
.appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
image: Visual Studio 2015
build:
project: libfabric.sln
configuration:
- Debug
- Release
before_build:
- ps: Invoke-WebRequest -Uri "https://download.microsoft.com/download/5/A/E/5AEA3C34-32A1-4A70-9622-F9734E92981F/NetworkDirect_DDK.zip" -OutFile "NetworkDirect_DDK.zip"
- ps: '$wd=$PWD.Path; & { Add-Type -A "System.IO.Compression.FileSystem"; [IO.Compression.ZipFile]::ExtractToDirectory("$wd\NetworkDirect_DDK.zip", "$wd"); }'
- ps: mkdir -f prov\netdir\NetDirect
- ps: move "NetDirect\include\*" "prov\netdir\NetDirect"
- ps: >
$tool="v140";
$namespaces=@{ vs="http://schemas.microsoft.com/developer/msbuild/2003" };
Get-ChildItem "." -Filter "*.vcxproj" |
foreach {
$toolsets = Select-Xml -Path $_.FullName -XPath '/vs:Project/vs:PropertyGroup[@Label="Configuration"]/vs:PlatformToolset' -Namespace $namespaces;
foreach ($_ in $toolsets) {$_.Node.InnerText=$tool};
$toolsets[0].Node.OwnerDocument.Save($toolsets[0].Path);
}